/* Modern Zonitex Styles - Apple Music Inspired */

:root {
    --black: #000000;
    --black-light: #1a1a1a;
    --black-lighter: #2a2a2a;
    --green: #00ff87;
    --green-soft: #7fffd4;
    --green-dim: rgba(0,255,135,0.1);
    --green-glow: rgba(0,255,135,0.3);
    --white: #ffffff;
    --gray-100: #f5f5f7;
    --gray-200: #e8e8ed;
    --gray-400: #86868b;
    --gray-600: #6e6e73;
    --gray-800: #424245;
    --border-color: rgba(255,255,255,0.1);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}
html { width: 100%; }
body { width: 100%; margin: 0; }
/* Constrain only media so big images don't push layout wider than viewport. */
img, picture > source, video, iframe {
    max-width: 100%;
    height: auto;
}

body {
    font-family: var(--font-sans);
    background: var(--black);
    color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    display: none;
}

/* Sidebar Menu - Collapsible with Icons */
.sidebar-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 64px;
    height: 100vh;
    background: var(--black);
    border-right: 1px solid var(--border-color);
    z-index: 999;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.sidebar-menu.expanded {
    width: 280px;
}

/* Sidebar Header */
.sidebar-header {
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 0;
    margin-top: 22px;
    flex-shrink: 0;
}

.sidebar-icon-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--white);
}

.sidebar-icon-btn:hover {
    background: transparent;
    color: var(--green);
}

.sidebar-icon-btn svg {
    width: 28px;
    height: 28px;
}


/* Search Section in Sidebar */
.sidebar-search {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.sidebar-menu.expanded .sidebar-search {
    opacity: 1;
    visibility: visible;
    height: auto;
    padding: 16px;
}

.sidebar-search input {
    width: 100%;
    height: 40px;
    background: var(--black-lighter);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0 16px;
    font-size: 14px;
    color: var(--white);
    font-family: var(--font-sans);
}

.sidebar-search input:focus {
    outline: none;
    border-color: var(--green);
}

.sidebar-search input::placeholder {
    color: var(--gray-600);
}

.countries-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 16px 0;
}

.sidebar-menu:not(.expanded) .countries-wrapper {
    padding-top: 8px;
}

.countries-wrapper::-webkit-scrollbar {
    width: 6px;
}

.countries-wrapper::-webkit-scrollbar-track {
    background: transparent;
}

.countries-wrapper::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.countries-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 8px;
    margin-top:10px;
}

.country-item,
a.country-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray-400);
    font-weight: 500;
    white-space: nowrap;
    min-height: 48px;
    text-decoration: none;
}

.country-item:hover,
a.country-item:hover {
    background: rgba(255,255,255,0.05);
    color: var(--white);
}

.country-item.active,
a.country-item.active {
    background: var(--green-dim);
    color: var(--green);
    font-weight: 600;
}

.country-flag {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: transparent;
}

.country-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.country-name {
    font-size: 14px;
    flex: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-menu.expanded .country-name {
    opacity: 1;
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin-left: 64px;
    transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-menu.expanded ~ .app-container {
    margin-left: 280px;
}

/* Header */
.app-header {
    position: fixed;
    top: 0;
    left: 64px;
    right: 0;
    height: 70px;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 32px;
    z-index: 900;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-menu.expanded ~ .app-container .app-header {
    left: 280px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex-shrink: 1;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex-shrink: 1;
}

.header-search-wrapper {
    min-width: 0;
}

/* The header has fixed slots: header-left (logo + source-toggle) and header-right (search).
   If a stale deployed index.php still renders source-toggle inside header-right,
   the console [STALE CODE] warning will surface it. Fix via re-deploying the PHP file. */

.header-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search-input {
    width: 300px;
    height: 40px;
    background: var(--black-lighter);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0 45px 0 16px;
    font-size: 14px;
    color: var(--white);
    font-family: var(--font-sans);
    transition: var(--transition);
}

.header-search-input:focus {
    outline: none;
    border-color: var(--green);
    width: 400px;
}

.header-search-input::placeholder {
    color: var(--gray-600);
}

.header-search-icon {
    position: absolute;
    right: 12px;
    width: 20px;
    height: 20px;
    color: var(--gray-400);
    pointer-events: none;
}

.header-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--black-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.header-search-section {
    padding: 8px 0;
}

.header-search-section-title {
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.header-search-item,
a.header-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.header-search-item:hover,
a.header-search-item:hover {
    background: var(--black-lighter);
}

.header-search-item-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.header-search-item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.header-search-item-info {
    flex: 1;
    min-width: 0;
}

.header-search-item-title {
    font-weight: 600;
    color: var(--white);
    font-size: 14px;
    margin-bottom: 4px;
}

.header-search-item-meta {
    font-size: 12px;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.header-search-badge {
    padding: 2px 8px;
    background: var(--green-dim);
    color: var(--green);
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.header-search-no-results {
    padding: 24px;
    text-align: center;
    color: var(--gray-400);
    font-size: 14px;
}

/* Global search dropdown sections (left search) */
.search-section-title {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-top: 1px solid var(--border-color);
}

.social-share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.social-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Share modal animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

.social-share-btn svg {
    width: 20px;
    height: 20px;
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--white);
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    color: var(--green);
}

.mobile-menu-btn svg {
    width: 24px;
    height: 24px;
}

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

.logo-text {
    font-size: 20px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

/* Main Content */
.main-content {
    margin-top: 70px;
    padding: 48px 32px;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    flex: 1;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 48px 32px 32px;
    margin-top: 60px;
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 1) 100%);
    backdrop-filter: blur(20px);
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 3fr 1.5fr;
    gap: 48px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-brand .logo-text {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--green) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-note {
    color: var(--gray-300);
    font-size: 14px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: start;
}

.footer-links a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    padding: 8px 0;
    border-bottom: 1px solid transparent;
}

.footer-links a:hover {
    color: var(--green);
    border-bottom-color: var(--green);
    transform: translateX(4px);
}

.footer-copyright {
    text-align: center;
    padding-top: 32px;
    margin-top: 32px;
    border-top: 1px solid var(--border-color);
    color: var(--gray-500);
    font-size: 12px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-social a {
    color: var(--gray-300);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-social a:hover {
    color: var(--green);
    transform: translateX(4px);
}

/* SEO content blocks */
.seo-block {
    max-width: 1400px;
    margin: 24px auto 0;
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--black-light);
    color: var(--gray-200);
    line-height: 1.7;
}

.seo-block h2, .seo-block h3 {
    color: var(--white);
    margin-bottom: 10px;
}

.seo-block a { color: var(--green); }

/* Per-country content block (admin-editable, renders under country.php chart) */
.country-content-block {
    max-width: 1400px;
    margin: 32px auto 0;
    padding: 24px 28px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--black-light);
    color: var(--gray-200);
    line-height: 1.7;
}
.country-content-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 12px;
}
.country-content-body p { margin: 0 0 12px; }
.country-content-body p:last-child { margin-bottom: 0; }
.country-content-body h2,
.country-content-body h3 {
    color: var(--white);
    margin: 16px 0 8px;
}
.country-content-body a { color: var(--green); }
.country-content-body ul,
.country-content-body ol { margin: 0 0 12px 22px; }
body.light-mode .country-content-block {
    background: #dfe2e8;
    color: #1a1a1a;
    border-color: var(--border-color);
}
body.light-mode .country-content-title,
body.light-mode .country-content-body h2,
body.light-mode .country-content-body h3 { color: #1a1a1a; }
@media (max-width: 768px) {
    .country-content-block {
        margin: 24px 0 0;
        padding: 16px 16px;
        border-radius: 14px;
    }
    .country-content-title { font-size: 18px; }
}

/* Dashboard */
.dashboard-header {
    margin-bottom: 64px;
}

.dashboard-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.dashboard-header-text {
    flex: 1;
}

.dashboard-header-image {
    flex-shrink: 0;
    width: 500px;
    height: 300px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-header-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-header h1 {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-soft) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-subtitle {
    font-size: 18px;
    color: var(--gray-400);
    max-width: 700px;
    line-height: 1.6;
}

/* Stats Grid Modern */
.stats-grid-modern {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.stat-card-modern {
    background: var(--black-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    transition: var(--transition);
}

.stat-card-modern:hover {
    border-color: var(--green-dim);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,255,135,0.1);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.card-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.badge-fire {
    background: rgba(255,107,107,0.15);
    color: #ff6b6b;
}

.badge-crown {
    background: var(--green-dim);
    color: var(--green);
}

.view-all-btn {
    padding: 6px 14px;
    background: transparent;
    border: 1px solid var(--green);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    cursor: pointer;
    transition: var(--transition);
}

.view-all-btn:hover {
    background: var(--green);
    color: var(--black);
    transform: translateY(-2px);
}

/* Mini filters (Dashboard cards) */
.mini-filter {
    display: inline-flex;
    background: var(--black-lighter);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
}

.mini-filter-btn {
    background: transparent;
    border: none;
    color: var(--gray-400);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.mini-filter-btn:hover {
    color: var(--white);
    background: rgba(255,255,255,0.06);
}

.mini-filter-btn.active {
    background: var(--green);
    color: var(--black);
}

.stat-list-modern {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.stat-item,
a.stat-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--black-lighter);
    border-radius: 12px;
    transition: var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.stat-item:hover,
a.stat-item:hover {
    background: rgba(255,255,255,0.05);
    transform: translateX(4px);
}

.stat-item-rank {
    width: 32px;
    height: 32px;
    background: var(--green-dim);
    color: var(--green);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.stat-item-info {
    flex: 1;
    min-width: 0;
}

.stat-item-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--white);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stat-item-artist {
    font-size: 13px;
    color: var(--gray-400);
    margin-top: 2px;
}

.mini-trend {
    margin-left: 8px;
    font-weight: 900;
}

.mini-streams {
    margin-left: 8px;
    color: var(--green);
    font-weight: 600;
    font-size: 12px;
}

.stat-item-artist .artist-link {
    color: var(--gray-400);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s;
}
.stat-item-artist .artist-link:hover {
    color: var(--green);
    text-decoration: underline;
}

.trend-up { color: var(--green); }
.trend-down { color: #ff4444; }
.trend-same { color: var(--gray-600); }

/* Chart table +/- column badges */
.change-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-weight: 700;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.change-badge.up { color: var(--green); }        /* rank went up -> green */
.change-badge.down { color: #ff4444; }           /* rank went down -> red */
.change-badge.same { color: var(--gray-600); }
body.light-mode .change-badge.up { color: #008a47; }
body.light-mode .change-badge.down { color: #d12b2b; }
body.light-mode .change-badge.same { color: #7a7d85; }

.streams-change {
    font-size: 11px;
    font-weight: 600;
    margin-top: 2px;
    opacity: 0.9;
}
.streams-change.up { color: var(--green); }
.streams-change.down { color: #ff4444; }

/* ===== Light (day) mode ===== */
body.light-mode {
    --black: #eceef2;              /* page background — soft neutral gray, not pure white */
    --black-light: #dfe2e8;        /* card / frame background — noticeably darker than page */
    --black-lighter: #d2d6de;      /* slightly deeper for nested items */
    --white: #1a1a1a;
    --gray-400: #5c5f66;
    --gray-600: #7a7d85;
    --border-color: rgba(0, 0, 0, 0.14);
    --green-dim: rgba(0, 200, 100, 0.08);
    background: #eceef2;
    color: #1a1a1a;
}
body.light-mode .app-header {
    background: rgba(236, 238, 242, 0.9);
    border-bottom: 1px solid var(--border-color);
}
body.light-mode .sidebar-menu {
    background: #e4e7ec;
    border-right: 1px solid var(--border-color);
}
body.light-mode .stat-card-modern,
body.light-mode .chart-table-modern,
body.light-mode .country-detail,
body.light-mode .artist-detail {
    background: #dfe2e8;           /* frames are darker gray so they stand out from page */
    border-color: var(--border-color);
    color: #1a1a1a;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
body.light-mode .stat-item,
body.light-mode .rail-item {
    background: #e8ebef;           /* list rows slightly lighter than frame */
    color: #1a1a1a;
}
body.light-mode .stat-item:hover,
body.light-mode .rail-item:hover {
    background: #d7dbe1;
}
body.light-mode .stat-item-title,
body.light-mode .rail-title,
body.light-mode h1, body.light-mode h2, body.light-mode h3,
body.light-mode .logo-text {
    color: #1a1a1a;
}
body.light-mode .stat-item-artist,
body.light-mode .rail-meta,
body.light-mode .artist-meta {
    color: #6e6e73;
}
body.light-mode table,
body.light-mode th,
body.light-mode td {
    color: #1a1a1a;
    border-color: var(--border-color);
}
body.light-mode thead th {
    background: #d7dbe1;
    color: #4a4d54;
}
body.light-mode .header-search-input,
body.light-mode #countrySearch,
body.light-mode .search-input,
body.light-mode input[type="text"] {
    background: #dfe2e8;
    color: #1a1a1a;
    border: 1px solid var(--border-color);
}
body.light-mode .mini-filter,
body.light-mode .source-toggle {
    background: #dfe2e8;
    border-color: var(--border-color);
}
body.light-mode .mini-filter-btn,
body.light-mode .source-toggle button {
    color: #6e6e73;
}
body.light-mode .mini-filter-btn.active,
body.light-mode .source-toggle button.active {
    background: var(--green);
    color: #000;
}
body.light-mode .country-item,
body.light-mode .detail-tab {
    color: #1a1a1a;
}
body.light-mode .country-item:hover {
    background: #d7dbe1;
}
body.light-mode .country-item.active {
    background: var(--green-dim);
    color: var(--green);
}
body.light-mode .back-btn-rectangular,
body.light-mode .back-btn-modern {
    background: #dfe2e8;
    color: #1a1a1a;
    border: 1px solid var(--border-color);
}
body.light-mode .site-footer {
    background: #dfe2e8;
    color: #4a4d54;
    border-top: 1px solid var(--border-color);
}
body.light-mode .footer-links a,
body.light-mode .footer-social a {
    color: #1a1a1a;
}
body.light-mode .artist-stat-item-modern,
body.light-mode .stat-card {
    background: #e8ebef;
    border: 1px solid var(--border-color);
    color: #1a1a1a;
}

/* Theme toggle button (sun/moon) */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    transition: all 0.2s;
}
.theme-toggle:hover {
    background: var(--black-light);
    border-color: var(--green);
    color: var(--green);
}
.theme-toggle svg {
    width: 18px;
    height: 18px;
}
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
body.light-mode .theme-toggle .icon-sun { display: block; }
body.light-mode .theme-toggle .icon-moon { display: none; }
@media (max-width: 768px) {
    .theme-toggle {
        width: 32px;
        height: 32px;
        margin-right: 6px;
    }
    .theme-toggle svg { width: 16px; height: 16px; }
}

/* When Apple Music is the active source, kworb doesn't expose per-track
   "daily streams" — hide that column/stat to avoid showing dashes. */
body.theme-apple .daily-only { display: none !important; }

/* ===== Apple Music theme ===== */
body.theme-apple {
    --green: #FA243C;
    --green-soft: #ff6b7f;
    --green-dim: rgba(250, 36, 60, 0.1);
}
body.theme-apple .gradient-text {
    background: linear-gradient(135deg, #FA243C 0%, #ff6b7f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Source toggle buttons (Spotify / Apple Music) — sits right next to the logo */
.source-toggle {
    display: inline-flex;
    gap: 6px;
    background: var(--black-light);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 6px;
    margin-left: 16px;
    margin-right: 0;
}
.source-toggle button {
    background: transparent;
    color: var(--gray-400);
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    white-space: nowrap;
    letter-spacing: 0.01em;
}
.source-toggle button.active {
    background: var(--green);
    color: #000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.source-toggle button:hover:not(.active) {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}
.source-toggle svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}
/* Apple Music button when active uses the Apple Music red */
.source-toggle button[data-source-toggle="apple"].active {
    background: #FA243C;
    color: #fff;
}

/* Header logo — home-page specific variant shrinks slightly on mobile */
.logo-img {
    width: auto;
    height: 38px;
    max-width: 150px;
}
.logo.logo-home .logo-img {
    height: 36px;
}

/* Mobile-specific source-toggle / logo rules live in the main mobile @media
   block lower in this file (search for "MOBILE HEADER (two-row layout)"). */
@media (max-width: 768px) {
    .logo.logo-home .logo-img { height: 26px; max-width: 90px; }
    .logo:not(.logo-home) .logo-img { height: 30px; max-width: 110px; }
}

/* Detail Views */
.detail-header-modern {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;

    margin-top: -10px; /* Üst kısma daha yakın */
    padding-top: 10px;
}

@media (max-width: 768px) {
    .detail-header-modern {
        margin-top: -20px; /* Mobilde daha yukarı */
        padding-top: 20px;
    }
}

.back-btn-modern {
    width: 40px;
    height: 40px;
    background: var(--black-lighter);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--white);
}

.back-btn-modern:hover {
    background: var(--green);
    color: var(--black);
    border-color: var(--green);
}

/* Dikdörtgen back butonu (artist sayfası için) */
.back-btn-rectangular {
    padding: 10px 16px;
    background: var(--black-lighter);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--white);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 20px;
}

.back-btn-rectangular:hover {
    background: var(--green);
    color: var(--black);
    border-color: var(--green);
}

.back-btn-rectangular svg {
    flex-shrink: 0;
}

.detail-title-modern {
    display: flex;
    align-items: center;
    gap: 20px;
}

.detail-flag-large {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

.detail-flag-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.detail-title-modern h1 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 4px;
}

.detail-subtitle {
    font-size: 14px;
    color: var(--gray-400);
}

.detail-tabs-modern {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    padding: 6px;
    background: var(--black-lighter);
    border-radius: 14px;
    width: fit-content;
}

.detail-tab {
    padding: 10px 24px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
}

.detail-tab:hover {
    color: var(--white);
    background: rgba(255,255,255,0.05);
}

.detail-tab.active {
    background: var(--green);
    color: var(--black);
}

/* Chart Table Modern */
.chart-table-modern {
    background: var(--black-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
}

/* Country page layout + right rail */
.country-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.country-main {
    min-width: 0;
}

.right-rail {
    position: relative;
    min-width: 0;
}

.rail-card {
    background: var(--black-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
}

.rail-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.rail-card-header h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--white);
}

.rail-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--green-dim);
    color: var(--green);
    font-size: 11px;
    font-weight: 700;
}

.rail-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rail-item,
a.rail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--black-lighter);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.rail-item:hover {
    background: rgba(255,255,255,0.05);
    transform: translateX(2px);
}

.rail-rank {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--green-dim);
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 12px;
    flex-shrink: 0;
}

.rail-info {
    min-width: 0;
    flex: 1;
}

.rail-title {
    font-weight: 700;
    font-size: 13px;
    color: var(--white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rail-meta {
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 2px;
}

.rail-note {
    margin-top: 12px;
    font-size: 12px;
    color: var(--gray-400);
    line-height: 1.4;
}

/* Ad placeholders removed — any stray .ad-* element from older includes is
   force-hidden so it can never leak into the layout. */
.ad-slot,
.ad-label,
.ad-placeholder,
.ad-placeholder-text,
.ad-img,
.ad-inline,
.ad-row,
.ad-rail-sticky,
.ad-anchor,
.ad-close { display: none !important; }

.chart-table-modern table {
    width: 100%;
    border-collapse: collapse;
}

.chart-table-modern thead {
    background: var(--black-lighter);
}

.chart-table-modern th {
    padding: 16px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.chart-table-modern td {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}

.chart-table-modern tbody tr {
    transition: var(--transition);
}

.chart-table-modern tbody tr:hover {
    background: rgba(255,255,255,0.02);
}

.col-pos {
    width: 60px;
    font-weight: 700;
    color: var(--gray-600);
}

.track-info {
    font-weight: 600;
    color: var(--white);
}

.artist-name-cell {
    color: var(--green) !important;
    font-weight: 500;
}

.share-btn, .share-btn-table {
    width: 36px;
    height: 36px;
    background: var(--green-dim);
    border: 1px solid var(--green);
    border-radius: 8px;
    color: var(--green);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.share-btn:hover, .share-btn-table:hover {
    background: var(--green);
    color: var(--black);
    transform: scale(1.1);
}

/* Artist Header Content */
.artist-header-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.artist-image-small {
    width: 120px;
    height: 120px;
    min-width: 120px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--black-lighter);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.artist-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.artist-image-small svg {
    width: 56px;
    height: 56px;
    color: var(--gray-400);
}

/* Hide columns on mobile */
.chart-table-modern th.hide-mobile,
.chart-table-modern td.hide-mobile {
    display: table-cell;
}
@media (max-width: 768px) {
    .chart-table-modern th.hide-mobile,
    .chart-table-modern td.hide-mobile {
        display: none;
    }
}

.artist-name-wrapper {
    flex: 1;
    min-width: 0;
}

.artist-name-wrapper h1 {
    font-size: 32px;
    font-weight: 900;
    margin: 0 0 4px 0;
    color: var(--white);
    line-height: 1.2;
}

.artist-meta {
    font-size: 14px;
    color: var(--gray-400);
    margin: 0;
}

@media (max-width: 768px) {
    .artist-header-content {
        gap: 12px;
    }
    
    .artist-image-small {
        width: 96px;
        height: 96px;
        min-width: 96px;
    }
    
    .artist-name-wrapper h1 {
        font-size: 24px;
    }
    
    .back-btn-rectangular {
        padding: 8px 12px;
        font-size: 13px;
        margin-bottom: 16px;
    }
}

/* Artist Stats Modern */
.artist-stats-modern {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}

.artist-stat-item-modern {
    background: var(--black-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
}

.artist-stat-value {
    font-size: 32px;
    font-weight: 900;
    color: var(--green);
    margin-bottom: 8px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    line-height: 1.2;
}

.artist-stat-label {
    font-size: 13px;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

@media (max-width: 768px) {
    .artist-stats-modern {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .artist-stat-value {
        font-size: 28px;
        word-break: break-word;
        white-space: normal;
    }
}

/* Utilities */
.hidden {
    display: none !important;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 40px auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.peak-badge {
    padding: 4px 8px;
    background: var(--green-dim);
    color: var(--green);
    border-radius: 6px;
    font-weight: 700;
    font-size: 12px;
}

.share-btn-artist {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--green);
    color: var(--black);
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
    margin-left: 16px;
}

.share-btn-artist:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--green-glow);
}

/* Homepage Intro Section */
.homepage-intro {
    margin-top: 48px;
    padding: 40px;
    background: var(--black-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
}

.homepage-intro-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 16px;
}

.homepage-intro-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-400);
}

.homepage-intro-text p {
    margin-bottom: 12px;
}

.homepage-intro-text p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .stats-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .artist-stats-modern {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header h1 {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    /* Artist table için özel mobil stilleri */
    /* Önce tüm td'leri sıfırla */
    .chart-table-modern #artistTableBody td {
        width: auto !important;
        min-width: auto !important;
        max-width: none !important;
    }
    
    /* Sonra spesifik sütunları ayarla */
    #artistTableBody td.col-pos,
    .chart-table-modern #artistTableBody td:first-child {
        width: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
        padding: 8px 2px 8px 4px !important;
        font-size: 12px !important;
        box-sizing: border-box !important;
    }
    
    #artistTableBody td.col-track-artist,
    .chart-table-modern #artistTableBody td:nth-child(2) {
        padding-left: 2px !important;
        min-width: 100px !important;
    }
    
    #artistTableBody td.col-streams-total,
    .chart-table-modern #artistTableBody td:nth-child(3) {
        width: 180px !important;
        min-width: 180px !important;
        max-width: 200px !important;
        padding: 12px 12px !important;
    }
    
    #artistTableBody td.col-share,
    .chart-table-modern #artistTableBody td:last-child {
        width: 55px !important;
        min-width: 55px !important;
        max-width: 60px !important;
        padding: 8px 4px !important;
        display: flex !important;
        justify-content: flex-end !important;
    }
    
    #artistTableBody .streams-value,
    .chart-table-modern #artistTableBody .streams-value {
        font-weight: 600 !important;
        font-size: 14px !important;
        color: var(--white) !important;
        line-height: 1.4 !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
    }
    
    #artistTableBody .total-value,
    .chart-table-modern #artistTableBody .total-value {
        font-size: 12px !important;
        color: var(--gray-400) !important;
        line-height: 1.4 !important;
        white-space: nowrap !important;
        word-break: keep-all !important;
    }
    
    .sidebar-menu {
        left: -280px;
        width: 280px;
        z-index: 1000;
    }
    
    .sidebar-menu.expanded {
        left: 0;
    }
    
    .app-container {
        margin-left: 0;
    }
    
    .sidebar-menu.expanded ~ .app-container {
        margin-left: 0;
    }
    
    /* === MOBILE HEADER (two-row layout) ===
       Row 1: hamburger + logo + Spotify/Apple toggle (right-aligned)
       Row 2: search bar (full width)
       Critical: explicitly reset justify-content to flex-start, otherwise the
       desktop space-between rule pushes the two rows to top & bottom of the
       header container leaving a big gap in the middle. */
    .app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        padding: 8px 12px;
        height: auto;
        min-height: 0;
        flex-direction: column;
        justify-content: flex-start;   /* override desktop space-between */
        align-items: stretch;
        gap: 6px;
    }

    .app-header .header-left {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        width: 100%;
        min-width: 0;
        flex-wrap: nowrap;
    }
    .app-header .header-right {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-width: 0;
        gap: 0;
        margin: 0;
    }

    .main-content {
        margin-top: 96px;       /* matches actual mobile header height */
        padding: 16px 16px;     /* equal left/right breathing room */
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }

    .dashboard-header h1 {
        font-size: 32px;
        line-height: 1.15;
    }

    .header-search {
        max-width: 180px;
    }

    .search-input {
        font-size: 14px;
    }

    .logo-text {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
        flex-shrink: 0;
    }

    /* Search bar fills the second row */
    .header-search-wrapper {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        position: relative;
    }
    .header-search-input {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: 38px;
        font-size: 13px;
    }
    .header-search-input:focus {
        width: 100%;
    }
    .header-search-icon {
        right: 12px;
    }
    /* Dropdown should anchor to the search input, not the header */
    .header-search-results {
        left: 0;
        right: 0;
        width: 100%;
    }

    /* The Spotify/Apple toggle compresses but stays visible on row 1 */
    .source-toggle {
        flex-shrink: 0;
        margin-left: auto;       /* push to right of row 1 */
        padding: 3px;
        gap: 2px;
    }
    .source-toggle button {
        padding: 6px 9px;
        gap: 4px;
        font-size: 12px;
    }
    .source-toggle .source-label { display: none; }   /* icon-only on mobile */
    .source-toggle svg { width: 18px; height: 18px; }
    
    .dashboard-header-content {
        flex-direction: column;
        justify-content: flex-start;   /* prevent space-between gap */
        align-items: stretch;
        gap: 16px;
    }
    .dashboard-header-text {
        width: 100%;
    }

    .dashboard-header-image {
        width: 100%;
        max-width: 100%;
        height: 200px;
    }

    /* Defensive: ensure content blocks fill available width and don't drift right */
    .dashboard,
    .dashboard-header,
    .stats-grid-modern,
    .stat-card-modern,
    .country-detail,
    .artist-detail,
    .country-layout {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        box-sizing: border-box;
    }
    .stats-grid-modern {
        grid-template-columns: 1fr !important;  /* single column on mobile */
        gap: 16px;
    }

    /* Card padding cut down so content doesn't get pushed past viewport edge.
       Also constrain max-width to inherited parent so the card never exceeds
       (viewport - main-content padding). */
    .stat-card-modern {
        padding: 16px;
        border-radius: 14px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
    .stat-card-modern:hover {
        transform: none;     /* don't shift on touch */
    }
    /* Larger spacing between stat-items so they read as separate rows */
    .stat-list-modern {
        gap: 12px;
    }

    /* Card header: stack vertically on mobile so title + filters + View All
       all fit. Filters scroll horizontally if they still overflow. */
    .card-header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
        margin-bottom: 16px;
    }
    .card-header h3 {
        font-size: 17px;
        line-height: 1.2;
    }
    .card-header > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: nowrap;
        min-width: 0;
    }
    .mini-filter {
        flex: 1 1 auto;
        overflow-x: auto;
        scrollbar-width: none;
        padding: 3px;
        gap: 2px;
        min-width: 0;
    }
    .mini-filter::-webkit-scrollbar { display: none; }
    .mini-filter-btn {
        padding: 6px 10px;
        font-size: 11px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .view-all-btn {
        flex-shrink: 0;
        padding: 6px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    /* Stat list rows tighter on mobile */
    .stat-item,
    a.stat-item {
        padding: 12px;
        gap: 12px;
    }
    .stat-item-rank {
        font-size: 14px;
        flex-shrink: 0;
    }
    .stat-item-info {
        min-width: 0;
        flex: 1 1 auto;
    }
    .stat-item-title {
        font-size: 14px;
    }
    .stat-item-artist {
        font-size: 12px;
        flex-wrap: wrap;
    }
    .share-btn {
        flex-shrink: 0;
    }
    
    /* Mobil chart tablosu - tüm veriler görünür */
    .chart-table-modern {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
        display: block;
        -webkit-overflow-scrolling: touch;
    }
    
    .chart-table-modern table {
        width: 100%;
        table-layout: fixed;
    }
    
    .chart-table-modern th,
    .chart-table-modern td {
        padding: 10px 4px;
        font-size: 12px;
        vertical-align: top;
    }
    
    .chart-table-modern .col-pos {
        padding-right: 2px !important;
    }
    
    .chart-table-modern .col-track-artist {
        padding-left: 2px !important;
    }
    
    .chart-table-modern th {
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.02em;
    }
    
    /* Mobil için birleştirilmiş sütunlar */
    .chart-table-modern .col-pos-change {
        width: 60px;
        min-width: 60px;
    }
    
    .chart-table-modern .col-pos {
        width: 28px;
        min-width: 28px;
        max-width: 28px;
        padding: 8px 2px 8px 4px;
        font-size: 12px;
    }
    
    .chart-table-modern .col-track-artist {
        width: auto;
        min-width: 100px;
        flex: 1;
        padding-left: 2px !important;
    }
    
    .chart-table-modern .col-streams-total {
        width: 180px;
        min-width: 180px;
        max-width: 200px;
        padding: 12px 12px;
    }
    
    .chart-table-modern .col-streams {
        width: 90px;
        min-width: 90px;
    }
    
    .chart-table-modern .col-total {
        width: 120px;
        min-width: 120px;
        text-align: right;
        font-weight: 600;
        color: var(--green);
    }
    
    .chart-table-modern .col-peak {
        width: 50px;
        min-width: 50px;
        text-align: center;
    }
    
    .chart-table-modern .col-days {
        width: 50px;
        min-width: 50px;
        text-align: center;
    }
    
    .chart-table-modern .col-share {
        width: 55px;
        min-width: 55px;
        max-width: 60px;
        text-align: center;
        padding: 8px 4px;
    }
    
    /* Streams ve Total birleştirilmiş hücre */
    .streams-total-cell {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 8px 0;
        justify-content: center;
    }
    
    .streams-value {
        font-weight: 600;
        font-size: 14px;
        color: var(--white);
        line-height: 1.4;
        white-space: nowrap;
        word-break: keep-all;
    }
    
    .total-value {
        font-size: 12px;
        color: var(--gray-400);
        line-height: 1.4;
        white-space: nowrap;
        word-break: keep-all;
    }
    
    /* Pos ve Change birleştirilmiş hücre */
    .pos-change-cell {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px; /* Daha az boşluk */
        min-height: 50px;
    }
    
    .pos-number {
        font-weight: 700;
        font-size: 16px;
        color: var(--gray-600);
        line-height: 1;
    }
    
    .change-indicator-mobile {
        font-size: 10px;
        line-height: 1;
    }
    .change-indicator-mobile.up { color: var(--green); }
    .change-indicator-mobile.down { color: #ff4444; }
    .change-indicator-mobile.same { color: var(--gray-600); }
    
    /* Track ve Artist birleştirilmiş hücre */
    .track-artist-cell {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .track-title-mobile {
        font-weight: 600;
        font-size: 13px;
        color: var(--white);
        line-height: 1.3;
    }
    
    .artist-name-mobile {
        font-size: 11px;
        color: var(--green);
        font-weight: 500;
        line-height: 1.2;
    }
    
    /* Share butonunu mobilde küçült */
    .chart-table-modern .share-btn-table {
        padding: 6px;
        font-size: 10px;
        width: 32px;
        height: 32px;
    }
    
    /* Footer mobil görünüm */
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-social {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    /* Top Artists mobil görünürlük */
    .stat-list-modern {
        display: block !important;
    }
    
    .stat-item {
        display: flex !important;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 12px;
    }
    
    .stat-item .stat-rank {
        min-width: 30px;
        font-size: 16px;
    }
    
    .stat-item .stat-info {
        flex: 1;
        min-width: 0;
    }
    
    .stat-item .stat-value {
        font-size: 13px;
        white-space: nowrap;
    }

    .country-layout {
        grid-template-columns: 1fr;
    }

    /* Menu overlay for mobile */
    .menu-overlay {
        display: block;
    }
    
    .sidebar-menu.expanded ~ .menu-overlay {
        opacity: 1;
        visibility: visible;
    }
}

/* Page content styles */
.page-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 32px;
    color: var(--white);
}

.content-section {
    line-height: 1.8;
    color: var(--gray-200);
    font-size: 16px;
}

.content-section p {
    margin-bottom: 20px;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-top: 32px;
    margin-bottom: 16px;
}

.content-section ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.content-section ul li {
    margin-bottom: 12px;
}

.back-link {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.back-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--white);
}

.back-btn-link {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--black-lighter);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
}

.back-btn-link:hover {
    background: var(--green);
    color: var(--black);
    border-color: var(--green);
    transform: translateX(-4px);
}

.back-btn-link svg {
    flex-shrink: 0;
}

.back-btn-link span {
    display: inline-block;
}

.contact-link {
    color: var(--green);
    text-decoration: none;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--green-soft);
    text-decoration: underline;
}

.social-links {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--green);
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(0,255,135,0.05);
    border: 1px solid rgba(0,255,135,0.2);
    transition: var(--transition);
    margin-bottom: 12px;
}

.social-link:hover {
    background: rgba(0,255,135,0.1);
    border-color: var(--green);
    transform: translateX(4px);
}

.social-link svg {
    flex-shrink: 0;
}

.social-link span {
    display: inline-block;
}

