/* CSS Design System - Jelajah Musik Nusantara */

/* 1. Global Reset & Theme Variables */
:root {
    /* Fonts */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transition speeds */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout Sizes */
    --header-height: 72px;
    --sidebar-width: 250px;
    --sidebar-collapsed-width: 78px;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

/* Dark Theme Variables (Default) */
.dark-theme {
    --bg-app: linear-gradient(135deg, #090d16 0%, #121026 100%);
    --bg-page: #0b0f19;
    --bg-panel: rgba(11, 15, 25, 0.7);
    --bg-card: rgba(22, 21, 46, 0.45);
    --bg-card-hover: rgba(28, 26, 61, 0.6);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-inverse: #0f172a;

    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-glow: rgba(99, 102, 241, 0.15);
    --accent: #f59e0b;
    --accent-hover: #d97706;

    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.25);

    --glass-blur: blur(12px);
    --map-tile-filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3);

    --success: #10b981;
    --error: #ef4444;
}

/* Light Theme Variables */
.light-theme {
    --bg-app: linear-gradient(135deg, #f1f5f9 0%, #e0e7ff 100%);
    --bg-page: #f8fafc;
    --bg-panel: rgba(255, 255, 255, 0.7);
    --bg-card: rgba(255, 255, 255, 0.6);
    --bg-card-hover: rgba(255, 255, 255, 0.85);
    --text-main: #0f172a;
    --text-muted: #475569;
    --text-inverse: #f8fafc;

    --primary: #4f46e5;
    --primary-hover: #3730a3;
    --primary-glow: rgba(79, 70, 229, 0.12);
    --accent: #d97706;
    --accent-hover: #b45309;

    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 20px rgba(79, 70, 229, 0.15);

    --glass-blur: blur(12px);
    --map-tile-filter: none;

    --success: #059669;
    --error: #dc2626;
}

/* 2. Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
}

body {
    background: var(--bg-app);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background var(--transition-normal), color var(--transition-normal);
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: var(--border-radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
}

/* Header */
.app-header {
    height: var(--header-height);
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background var(--transition-normal), border var(--transition-normal);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-toggle {
    display: none;
    font-size: 20px;
    color: var(--text-main);
    padding: 8px;
    border-radius: 8px;
    transition: background var(--transition-fast);
}

.mobile-toggle:hover {
    background: var(--border);
}

.app-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, #ec4899 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.app-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.app-subtitle {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary);
}

.header-center {
    flex: 1;
    max-width: 500px;
    margin: 0 24px;
    position: relative;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 16px;
    height: 44px;
    transition: border var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box:focus-within {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon {
    color: var(--text-muted);
    margin-right: 12px;
}

.search-box input {
    border: none;
    background: transparent;
    color: var(--text-main);
    width: 100%;
    font-size: 14px;
    font-family: inherit;
}

.clear-search {
    color: var(--text-muted);
    font-size: 16px;
    padding: 4px;
}

.clear-search:hover {
    color: var(--text-main);
}

.search-dropdown {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-height: 350px;
    overflow-y: auto;
    display: none;
    z-index: 60;
    padding: 8px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.search-result-item:hover {
    background: var(--border);
}

.search-result-avatar {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.search-result-info {
    display: flex;
    flex-direction: column;
}

.search-result-title {
    font-size: 14px;
    font-weight: 500;
}

.search-result-desc {
    font-size: 11px;
    color: var(--text-muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background var(--transition-fast), border var(--transition-fast);
}

.theme-toggle:hover {
    background: var(--border);
    border-color: var(--border-hover);
}

.user-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 10px;
}

.badge-icon {
    font-size: 18px;
}

.badge-info {
    display: flex;
    flex-direction: column;
}

.badge-title {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.badge-score {
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-heading);
}

/* 3. App Layout & Sidebar */
.app-workspace {
    display: flex;
    flex: 1;
    position: relative;
    height: calc(100vh - var(--header-height));
    overflow: hidden;
}

.app-sidebar {
    width: var(--sidebar-width);
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: width var(--transition-normal), transform var(--transition-normal);
    z-index: 40;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    padding: 16px;
    gap: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 16px;
    height: 48px;
    padding: 0 16px;
    border-radius: 10px;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 14px;
    transition: color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.nav-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-item:hover {
    color: var(--text-main);
    background: var(--border);
    transform: translateX(4px);
}

.nav-item.active {
    color: white;
    background: linear-gradient(90deg, var(--primary) 0%, rgba(99, 102, 241, 0.7) 100%);
    box-shadow: 0 4px 10px var(--primary-glow);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
}

.sidebar-footer .credit {
    font-weight: 600;
    margin-bottom: 4px;
}

.sidebar-footer .sd-target {
    font-weight: 400;
    color: var(--primary);
}

.sidebar-backdrop {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 35;
}

/* 4. Main Workspace & Layout Transitions */
.app-content {
    flex: 1;
    overflow-y: auto;
    position: relative;
    padding: 32px;
}

.page-section {
    display: none;
    flex-direction: column;
    animation: fadeUp var(--transition-normal) forwards;
}

.page-section.active {
    display: flex;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 5. General Components & Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
    border-radius: 12px;
    padding: 0 20px;
    height: 48px;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--border);
    border-color: var(--border-hover);
}

.btn-lg {
    height: 54px;
    font-size: 15px;
    border-radius: 14px;
    padding: 0 24px;
}

.w-full {
    width: 100%;
}

.mt-4 {
    margin-top: 16px;
}

.mt-6 {
    margin-top: 24px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 12px;
}

.flex {
    display: flex;
}

.gap-4 {
    gap: 16px;
}

.flex-1 {
    flex: 1;
}

.py-3 {
    padding-top: 12px;
    padding-bottom: 12px;
}

.font-semibold {
    font-weight: 600;
}

.font-bold {
    font-weight: 700;
}

.text-left {
    text-align: left;
}

.justify-center {
    justify-content: center;
}

/* 6. Page 1: Beranda / Home */
.hero-section {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 2;
}

.hero-badge {
    background: var(--primary-glow);
    border: 1px solid var(--primary);
    color: var(--text-main);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--text-main) 50%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-visual {
    display: flex;
    justify-content: center;
    position: relative;
    height: 100%;
}

.glass-art-card {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(236, 72, 153, 0.2) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.art-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.15);
}

.ring-1 {
    width: 250px;
    height: 250px;
    animation: counterRotate 15s linear infinite;
}

.ring-2 {
    width: 300px;
    height: 300px;
}

@keyframes counterRotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

.central-icon {
    font-size: 48px;
    color: white;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.floating-bubble {
    position: absolute;
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 6px;
    animation: floatUpDown 6s ease-in-out infinite;
}

.bubble-1 {
    top: -10px;
    left: -20px;
    animation-delay: 0s;
}

.bubble-2 {
    bottom: 0;
    right: -40px;
    animation-delay: 2s;
}

.bubble-3 {
    bottom: -20px;
    left: 10px;
    animation-delay: 4s;
}

@keyframes floatUpDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    padding: 20px;
    transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
}

.icon-cyan {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.icon-purple {
    background: linear-gradient(135deg, #a855f7 0%, #7e22ce 100%);
}

.icon-amber {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
}

.icon-rose {
    background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
}

.stat-details {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.feature-img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    margin-bottom: 20px;
}

.feature-body h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-body p {
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    transition: color var(--transition-fast);
}

.feature-link:hover {
    color: var(--primary-hover);
}

/* 7. Page 2: Peta / Map Layout */
.page-header-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.page-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.map-island-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.island-filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.island-filter-btn:hover {
    background: var(--border);
    color: var(--text-main);
}

.island-filter-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.map-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    height: 520px;
}

.map-container-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 100%;
    position: relative;
}

#indonesia-map {
    width: 100%;
    height: 100%;
    z-index: 10;
}

/* Customize Leaflet Tiles for Dark Mode */
.dark-theme .leaflet-tile-container img {
    filter: var(--map-tile-filter);
}

.leaflet-bar {
    border: 1px solid var(--border) !important;
    box-shadow: var(--shadow-sm) !important;
}

.leaflet-bar a {
    background-color: var(--bg-panel) !important;
    color: var(--text-main) !important;
    border-bottom: 1px solid var(--border) !important;
    transition: background var(--transition-fast) !important;
}

.leaflet-bar a:hover {
    background-color: var(--border) !important;
}

/* Custom Popup Style */
.leaflet-popup-content-wrapper {
    background: var(--bg-panel) !important;
    backdrop-filter: var(--glass-blur) !important;
    -webkit-backdrop-filter: var(--glass-blur) !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    border-radius: var(--border-radius-md) !important;
    box-shadow: var(--shadow-md) !important;
}

.leaflet-popup-tip {
    background: var(--bg-panel) !important;
    border-left: 1px solid var(--border) !important;
    border-bottom: 1px solid var(--border) !important;
}

.popup-container {
    padding: 4px;
}

.popup-province {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 2px;
}

.popup-title {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.popup-detail {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    margin-bottom: 10px;
}

.popup-btn {
    width: 100%;
    height: 32px;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background var(--transition-fast);
}

.popup-btn:hover {
    background: var(--primary-hover);
}

.map-list-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.map-sidebar-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.map-sidebar-search {
    position: relative;
    margin-bottom: 16px;
}

.map-sidebar-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
}

.map-sidebar-search input {
    width: 100%;
    height: 38px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding-left: 36px;
    padding-right: 12px;
    color: var(--text-main);
    font-size: 13px;
}

.map-sidebar-search input:focus {
    border-color: var(--primary);
}

.map-province-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-right: 4px;
}

.map-prov-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    background: var(--bg-page);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}

.map-prov-item:hover {
    border-color: var(--primary);
    background: var(--bg-card-hover);
    transform: translateX(3px);
}

.map-prov-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-prov-name {
    font-size: 13px;
    font-weight: 600;
}

.map-prov-capital {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.map-prov-instrument {
    font-size: 11px;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.map-prov-empty {
    font-size: 11px;
    color: var(--text-muted);
}

/* 8. Page 3: Galeri Musik / Catalog */
.gallery-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.gallery-search {
    position: relative;
    flex: 1;
}

.gallery-search i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.gallery-search input {
    width: 100%;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding-left: 44px;
    padding-right: 16px;
    color: var(--text-main);
    font-size: 14px;
    transition: border var(--transition-fast);
}

.gallery-search input:focus {
    border-color: var(--primary);
}

.gallery-filter-dropdowns {
    display: flex;
    gap: 12px;
}

.filter-select {
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0 16px;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: border var(--transition-fast);
}

.filter-select:focus {
    border-color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.instrument-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 380px;
    position: relative;
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.instrument-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.card-img-box {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.instrument-card:hover .card-img-box img {
    transform: scale(1.08);
}

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.card-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.instrument-card:hover .card-play-overlay {
    opacity: 1;
}

.btn-play-card-audio {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.5);
    transform: scale(0.8);
    transition: transform var(--transition-fast);
}

.btn-play-card-audio:hover {
    transform: scale(1);
    background: var(--primary-hover);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.card-meta {
    font-size: 10px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: auto;
}

.card-origin {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-card-detail {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.btn-card-detail:hover {
    color: var(--primary-hover);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 13px;
}

/* 9. Shared Game Styles (Kuis, Tebak Gambar, Tebak Suara) */
.game-wrapper {
    max-width: 720px;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border);
    overflow: hidden;
    position: relative;
}

.card-glass {
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: var(--shadow-lg);
}

.game-view {
    display: none;
    flex-direction: column;
    padding: 40px;
    text-align: center;
    animation: fadeIn var(--transition-normal) forwards;
}

.game-view.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.game-header-illustration {
    font-size: 64px;
    margin-bottom: 24px;
    animation: floatUpDown 6s ease-in-out infinite;
}

.game-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.game-description {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.game-rules-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    width: 100%;
    margin-bottom: 24px;
}

.rule-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.rule-bullet {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary-glow);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rule-item span:last-child {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Game Playing Mode Header */
.game-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    margin-bottom: 32px;
}

.quiz-progress-text {
    font-size: 13px;
    color: var(--text-muted);
}

.quiz-progress-text strong {
    color: var(--text-main);
}

.timer-wrapper {
    position: relative;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timer-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.timer-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 2.8;
}

.timer-progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2.8;
    stroke-linecap: round;
    transition: stroke-dasharray 1s linear;
}

.timer-text {
    position: absolute;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
}

.quiz-score-badge {
    background: var(--primary-glow);
    border: 1px solid var(--primary);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
}

.quiz-score-badge i {
    color: var(--accent);
}

.question-container {
    margin-bottom: 32px;
}

.question-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.answers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.option-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 24px;
    min-height: 60px;
    color: var(--text-main);
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition-fast);
}

.option-btn:hover:not([disabled]) {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.option-btn.correct {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: var(--success) !important;
    color: var(--success) !important;
    font-weight: 600;
}

.option-btn.incorrect {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: var(--error) !important;
    color: var(--error) !important;
}

.option-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.option-btn.correct .option-indicator {
    border-color: var(--success);
    background: var(--success);
    color: white;
}

.option-btn.incorrect .option-indicator {
    border-color: var(--error);
    background: var(--error);
    color: white;
}

.speed-bonus-ticker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 50px;
    align-self: center;
    margin-top: 10px;
    transition: opacity 0.5s ease;
}

/* Quiz Results Mode */
.result-badge-display {
    position: relative;
    width: 120px;
    height: 120px;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.badge-glow {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, rgba(99, 102, 241, 0) 70%);
    animation: pulseGlow 2.5s infinite;
}

.badge-icon-large {
    font-size: 64px;
    color: var(--accent);
    z-index: 2;
}

.score-card-display {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    padding: 24px;
    margin: 28px 0;
    width: 100%;
    justify-content: space-around;
}

.score-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.score-val {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.score-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

.quiz-review-container {
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 24px;
    padding-right: 8px;
}

.quiz-review-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-align: left;
}

.review-status-icon {
    font-size: 16px;
    margin-top: 2px;
}

.review-status-icon.correct {
    color: var(--success);
}

.review-status-icon.incorrect {
    color: var(--error);
}

.review-details {
    display: flex;
    flex-direction: column;
}

.review-q {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.review-ans {
    font-size: 11px;
    color: var(--text-muted);
}

/* Tebak Gambar visual card */
.visual-quiz-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.visual-question-image-box {
    width: 100%;
    max-width: 400px;
    height: 240px;
    border-radius: var(--border-radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-question-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tebak Suara visualizer card */
.audio-quiz-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.sound-wave-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 80px;
    width: 200px;
}

.wave-bar {
    width: 6px;
    height: 10px;
    background: var(--primary);
    border-radius: 5px;
    transition: height var(--transition-fast);
}

.sound-wave-box.playing .wave-bar {
    animation: waveJump 1.2s ease-in-out infinite;
}

.sound-wave-box.playing .wave-bar:nth-child(2) {
    animation-delay: 0.1s;
}

.sound-wave-box.playing .wave-bar:nth-child(3) {
    animation-delay: 0.2s;
}

.sound-wave-box.playing .wave-bar:nth-child(4) {
    animation-delay: 0.3s;
}

.sound-wave-box.playing .wave-bar:nth-child(5) {
    animation-delay: 0.4s;
}

.sound-wave-box.playing .wave-bar:nth-child(6) {
    animation-delay: 0.3s;
}

.sound-wave-box.playing .wave-bar:nth-child(7) {
    animation-delay: 0.2s;
}

.sound-wave-box.playing .wave-bar:nth-child(8) {
    animation-delay: 0.1s;
}

.sound-wave-box.playing .wave-bar:nth-child(9) {
    animation-delay: 0s;
}

@keyframes waveJump {

    0%,
    100% {
        height: 10px;
    }

    50% {
        height: 70px;
    }
}

.audio-control-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.btn-audio-play {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px var(--primary-glow);
    transition: transform var(--transition-fast), background var(--transition-fast);
}

.btn-audio-play:hover {
    transform: scale(1.05);
    background: var(--primary-hover);
}

.audio-prompt-text {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* 10. Page 7: Tentang Aplikasi / About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.about-info-panel,
.about-details-panel {
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: 36px;
}

.about-logo {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary) 0%, #ec4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    margin-bottom: 24px;
}

.about-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
}

.about-subtitle {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: 20px;
}

.about-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.about-section-header {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.about-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-list li {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.about-list li i {
    color: var(--primary);
    margin-top: 3px;
}

.dev-info-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.info-label {
    color: var(--text-muted);
}

.info-val {
    color: var(--text-main);
}

.disclaimer-box {
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 10px;
    padding: 16px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-muted);
    margin-top: 24px;
}

.disclaimer-box strong {
    color: var(--text-main);
    display: block;
    margin-bottom: 4px;
}

/* 11. Sliding Detail Panel */
.detail-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 480px;
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
    overflow-y: auto;
    padding: 40px 32px 32px 32px;
}

.detail-panel.active {
    transform: translateX(0);
}

.close-detail-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background var(--transition-fast);
}

.close-detail-btn:hover {
    background: var(--border);
}

.detail-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 95;
}

/* Panel Contents Layout */
.panel-hero-image {
    width: 100%;
    height: 220px;
    border-radius: var(--border-radius-md);
    background: var(--bg-page);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel-tag-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.panel-tag {
    background: var(--primary-glow);
    border: 1px solid var(--primary);
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.panel-tag-accent {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid var(--accent);
    color: var(--accent);
}

.panel-title {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 6px;
}

.panel-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.panel-section-title {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    border-bottom: 1px solid var(--border);
    padding-bottom: 6px;
    margin: 20px 0 10px 0;
}

.panel-body-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
}

.panel-fact-box {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: var(--border-radius-sm);
    padding: 14px 16px;
    margin-top: 16px;
}

.panel-fact-box strong {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.panel-audio-row {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}

.btn-panel-play-audio {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background var(--transition-fast), transform var(--transition-fast);
}

.btn-panel-play-audio:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.panel-audio-info {
    display: flex;
    flex-direction: column;
}

.panel-audio-name {
    font-size: 13px;
    font-weight: 600;
}

.panel-audio-license {
    font-size: 10px;
    color: var(--text-muted);
}

.panel-video-box {
    width: 100%;
    margin-top: 12px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    aspect-ratio: 16/9;
}

.panel-video-box iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Skeletons for Loading State */
.detail-header-skeleton {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.skeleton-image {
    width: 100%;
    height: 220px;
    border-radius: var(--border-radius-md);
    background: var(--border);
    animation: pulseSkeleton 1.5s infinite;
}

.skeleton-title {
    width: 60%;
    height: 24px;
    border-radius: 4px;
    background: var(--border);
    animation: pulseSkeleton 1.5s infinite;
}

.skeleton-text {
    width: 100%;
    height: 80px;
    border-radius: 4px;
    background: var(--border);
    animation: pulseSkeleton 1.5s infinite;
}

@keyframes pulseSkeleton {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.6;
    }
}

/* 12. Custom Alert Modal */
.custom-alert {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--bg-panel);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 150;
    transition: transform var(--transition-normal);
}

.custom-alert.active {
    transform: translateX(-50%) translateY(0);
}

.alert-icon {
    font-size: 16px;
    color: var(--primary);
}

.alert-message {
    font-size: 13px;
    font-weight: 500;
}

/* 13. Responsive Breakpoints */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-section {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .hero-visual {
        display: none;
    }

    .map-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .map-container-wrapper {
        height: 400px;
    }

    .map-list-sidebar {
        height: 300px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .app-sidebar {
        position: fixed;
        left: 0;
        top: var(--header-height);
        bottom: 0;
        transform: translateX(-100%);
        width: var(--sidebar-width) !important;
    }

    .app-sidebar.active {
        transform: translateX(0);
    }

    .sidebar-backdrop.active {
        display: block;
    }

    .header-center {
        display: none;
        /* Hide global search on mobile header to save space */
    }

    .page-header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .gallery-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery-filter-dropdowns {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .answers-grid {
        grid-template-columns: 1fr;
    }

    .detail-panel {
        width: 100%;
        max-width: 100%;
        padding-top: 60px;
    }

    .app-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .hero-title {
        font-size: 26px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .gallery-filter-dropdowns {
        grid-template-columns: 1fr;
    }

    .game-view {
        padding: 20px;
    }

    .score-card-display {
        flex-direction: column;
        gap: 16px;
    }

    .score-item {
        border-left: none !important;
        border-right: none !important;
        border-bottom: 1px solid var(--border);
        padding-bottom: 12px;
    }

    .score-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
}

/* Fallback gradien gambar instrumen untuk visual yang cantik */
.instrument-svg-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px;
    text-align: center;
}

.fallback-icon {
    font-size: 40px;
    margin-bottom: 12px;
    animation: pulseGlow 3s ease-in-out infinite;
}

.fallback-label {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}