/**
 * TOP 100 Djanes – World-Clubs.com look & feel.
 * Matches main site: Orbitron, violet/magenta neon, dark background.
 */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500&display=swap');

:root {
    --bg-color: #0a0a0f;
    --primary-color: #9400d3;
    --secondary-color: #ff00ff;
    --glow-color: rgba(148, 0, 211, 0.7);
    --text-color: #e0e0e0;
    --text-glow: #f0f0f0;
    --surface: rgba(15, 15, 25, 0.85);
    --surface-2: rgba(20, 5, 40, 0.6);
    --border-subtle: rgba(148, 0, 211, 0.4);
    --font-display: 'Orbitron', "Hiragino Sans", sans-serif;
    --font-body: 'Space Grotesk', "Hiragino Sans", sans-serif;
    /* Aliases for account/vote pages */
    --vote-surface: var(--surface);
    --vote-surface-2: var(--surface-2);
    --vote-border: var(--border-subtle);
    --vote-cyan: var(--secondary-color);
    --vote-accent: #ff4444;
    --vote-text-muted: rgba(224, 224, 224, 0.5);
}

* { box-sizing: border-box; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.5;
    min-height: 100vh;
}

body .djane-page { position: relative; z-index: 1; padding: 20px; min-height: 78vh; padding-top: 0; }

/* ============================
   Header
   ============================ */
header[role="banner"] {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 4px 20px;
    border-bottom: 1px solid var(--primary-color);
    background: var(--bg-color, #0a0a0f);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    max-height: 84px;
    z-index: 1000;
}
.djane-page > :not(header) { margin-top: 0; }
.page-with-sidebars, .ad-slot-footer, footer { padding-top: 0; }
body .djane-page > .page-with-sidebars { 
padding-top: 28px;
}
/* push content below fixed header */
body { padding-top: 0; }
.djane-page::before { content: ''; display: block; height: var(--header-h, 88px); }
header[role="banner"] .logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}
header[role="banner"] .site-logo {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}
header[role="banner"] .site-logo-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 0 0 12px var(--glow-color), 0 0 24px rgba(255, 0, 255, 0.3);
    letter-spacing: 1px;
    white-space: nowrap;
}
header[role="banner"] nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    align-items: center;
}
header[role="banner"] nav a {
    color: var(--text-glow);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    transition: color 0.2s, text-shadow 0.2s;
}
header[role="banner"] nav a.nav-current {
    color: var(--secondary-color);
    text-shadow: 0 0 8px var(--secondary-color);
    pointer-events: none;
    position: relative;
}
header[role="banner"] nav a.nav-current::after {
    content: '';
    display: block;
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 1px;
}
/* Hide page h1 on desktop — shown only on mobile where there's no visible nav context */
@media (min-width: 901px) {
    .djane-page main > h1:first-child { display: none; }
}
header[role="banner"] nav a:hover {
    color: var(--secondary-color);
    text-shadow: 0 0 8px var(--secondary-color), 0 0 16px var(--glow-color);
}
.lang-selector {
    position: relative;
    margin-left: 0.5rem;
}
.lang-btn {
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    color: var(--text-glow);
    font-family: var(--font-display);
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    cursor: pointer;
    letter-spacing: 1px;
    transition: border-color 0.2s;
}
.lang-btn:hover { border-color: var(--secondary-color); }
.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    min-width: 120px;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}
.lang-selector:hover .lang-dropdown,
.lang-selector:focus-within .lang-dropdown { display: block; }
.lang-dropdown a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.85rem;
    font-family: var(--font-body);
    transition: background 0.15s;
}
.lang-dropdown a:hover { background: var(--surface-2); color: var(--secondary-color); }
.lang-dropdown a.active { color: var(--secondary-color); font-weight: 500; }

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 1rem;
}

/* ============================
   Typography
   ============================ */
h1, h2, h3 { margin-top: 0; font-weight: 700; font-family: var(--font-display); }
h1 { font-size: 1.75rem; color: var(--text-glow); }
h2 { font-size: 1.35rem; color: var(--secondary-color); text-shadow: 0 0 10px var(--glow-color); }
h3 { font-size: 1.1rem; color: var(--text-glow); }
a { color: var(--secondary-color); text-decoration: none; }
a:hover { color: var(--primary-color); text-shadow: 0 0 8px var(--glow-color); }

.section-title { text-align: center; margin-bottom: 30px; font-size: 2rem; font-family: var(--font-display); color: var(--text-glow); }

/* ============================
   Buttons
   ============================ */
.btn-vote, .btn {
    display: inline-block;
    background: transparent;
    color: var(--secondary-color);
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--secondary-color);
    border-radius: 6px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.1s;
}
.btn-vote:hover, .btn:hover {
    background: rgba(255, 0, 255, 0.15);
    box-shadow: 0 0 12px var(--secondary-color), 0 0 20px var(--glow-color);
    transform: scale(1.02);
    color: var(--secondary-color);
}
.btn-vote:active, .btn:active { transform: scale(0.98); }
.btn-primary {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #fff;
    box-shadow: 0 0 15px var(--secondary-color), 0 0 25px var(--glow-color);
}

/* Vote NOW button (gradient) */
.vote-now {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 6px;
    font-family: var(--font-display);
    font-weight: bold;
    cursor: pointer;
    font-size: 1.1rem;
    letter-spacing: 1px;
    box-shadow: 0 0 12px var(--glow-color);
    transition: box-shadow 0.2s, transform 0.1s;
}
.vote-now:hover {
    box-shadow: 0 0 18px var(--secondary-color), 0 0 28px var(--glow-color);
    transform: scale(1.05);
    color: #fff;
}
.vote-now:active { transform: scale(0.98); }
.vote-now:disabled { opacity: 0.6; cursor: not-allowed; }

/* ============================
   Section headers
   ============================ */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--border-subtle);
    padding-bottom: 0.5rem;
}
.section-header h2 { margin: 0; }
.view-all {
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    white-space: nowrap;
}
.view-all:hover { text-shadow: 0 0 8px var(--glow-color); }

/* ============================
   Homepage Hero
   ============================ */
.home-hero {
    background: linear-gradient(135deg, rgba(148, 0, 211, 0.25) 0%, rgba(255, 0, 255, 0.08) 100%), var(--surface-2);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    margin-bottom: 3rem;
    box-shadow: 0 0 20px var(--glow-color), inset 0 0 10px rgba(148, 0, 211, 0.1);
}
.home-hero h1 { font-size: 2.2rem; margin-bottom: 0.75rem; color: var(--text-glow); font-family: var(--font-display); }
.home-hero p { font-size: 1.1rem; color: rgba(224, 224, 224, 0.85); margin-bottom: 1.5rem; }

/* Featured DJ quick-vote cards in hero */
.hero-featured-djs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}
.hero-vote-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-color), rgba(255, 0, 255, 0.6));
    padding: 0.5rem 1.25rem 0.5rem 0.5rem;
    border-radius: 50px;
    text-decoration: none;
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 0 15px var(--glow-color);
    transition: box-shadow 0.2s, transform 0.15s;
}
.hero-vote-card:hover {
    box-shadow: 0 0 22px var(--secondary-color), 0 0 35px var(--glow-color);
    transform: scale(1.05);
    color: #fff;
}
.hero-vote-card img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
}
.hero-vote-label { white-space: nowrap; }

/* ============================
   News Grid (homepage)
   ============================ */
.section-news { margin-bottom: 3rem; }
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.25rem;
}
.news-card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.news-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 0 12px var(--glow-color);
    transform: translateY(-3px);
}
.news-card a { display: block; text-decoration: none; color: inherit; }
.news-card-img {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-color: var(--surface-2);
}
.news-card-body { padding: 1rem; }
.news-card-body h3 { font-size: 0.95rem; margin: 0 0 0.4rem; color: var(--text-glow); line-height: 1.3; }
.news-card-body .excerpt { font-size: 0.85rem; color: #aaa; margin: 0 0 0.5rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card-body .meta { font-size: 0.8rem; color: rgba(224, 224, 224, 0.5); }

/* ============================
   Ranking Table (homepage)
   ============================ */
.section-ranking { margin-bottom: 2rem; }
.region-selector {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.region-selector label {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: rgba(224, 224, 224, 0.8);
    font-weight: bold;
    text-transform: uppercase;
}
.region-selector select {
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    color: var(--text-color);
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
.region-selector select:focus { border-color: var(--secondary-color); box-shadow: 0 0 8px var(--glow-color); }

.ranking-table { max-width: 800px; }
.ranking-row {
    display: grid;
    grid-template-columns: 3rem 56px 1fr auto auto;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    margin-bottom: 0.4rem;
    text-decoration: none;
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.ranking-row:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--glow-color);
    color: var(--text-glow);
    background: rgba(148, 0, 211, 0.08);
}
.ranking-pos {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--secondary-color);
    text-align: center;
}
.ranking-photo img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-subtle);
}
.ranking-name {
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ranking-country {
    font-size: 0.85rem;
    color: rgba(224, 224, 224, 0.6);
    white-space: nowrap;
}
.ranking-votes {
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--secondary-color);
    white-space: nowrap;
    font-weight: 700;
}

/* ============================
   Bottom links
   ============================ */
.bottom-links {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-color);
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.promo-banner {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--surface-2);
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    color: var(--secondary-color);
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.promo-banner:hover {
    background: rgba(255, 0, 255, 0.2);
    color: var(--text-glow);
    text-decoration: none;
    box-shadow: 0 0 15px var(--glow-color);
}

/* ============================
   Cards grid (DJ list, generic)
   ============================ */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.75rem;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}
.card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px var(--glow-color);
    transform: translateY(-4px);
}
.card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.card .card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.card h2, .card h3 { margin: 0 0 0.4rem; font-size: 1rem; color: var(--text-glow); }
.card .meta { color: rgba(224, 224, 224, 0.6); font-size: 0.85rem; margin: 0; }
.card .excerpt { margin: 0 0 0.75rem; flex: 1; color: #bbb; font-size: 0.9rem; }

/* DJ Cards */
.dj-card { position: relative; }
.dj-card .dj-img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-subtle);
    border-radius: 8px 8px 0 0;
}
.dj-card .dj-info { padding: 0.5rem; text-align: center; }
.dj-card .dj-info h3 { font-size: 0.8rem; margin: 0 0 0.15rem; white-space: normal; word-break: break-word; line-height: 1.3; text-align: center; }
.dj-card .rank-emoji { position: absolute; top: 0px; left: 0px; z-index: 2; line-height: 1; }
.dj-card .crown-icon { font-size: 1.6rem; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 8px rgba(255, 215, 0, 0.9)); }
.dj-card .star-icon { font-size: 1.3rem; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 6px rgba(255, 215, 0, 0.7)); }
.dj-card .dj-info .meta { font-size: 0.7rem; margin: 0; line-height: 1.3; }
.dj-card .dj-info .meta-genre { color: rgba(224, 224, 224, 0.4); font-size: 0.65rem; }
.dj-card .rank-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(10, 10, 15, 0.9);
    color: var(--secondary-color);
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    border: 1px solid var(--secondary-color);
    box-shadow: 0 0 10px var(--glow-color);
    backdrop-filter: blur(4px);
}

/* ============================
   DJ List - Sticky filter bar
   ============================ */
.djlist-sticky-bar {
    position: sticky;
    top: var(--header-h, 88px);
    z-index: 200;
    background: var(--bg-color, #0a0a0f);
    padding: 0.75rem 0 0.5rem;
    border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
}
.djlist-sticky-bar .filters { margin-bottom: 0.5rem; }

/* ============================
   DJ List - Search & Filters
   ============================ */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    align-items: center;
    background: var(--surface);
    padding: 1rem 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
}
.filters-group { display: flex; align-items: center; gap: 0.4rem; }
.filters label { font-weight: bold; color: rgba(224, 224, 224, 0.8); font-size: 0.8rem; text-transform: uppercase; font-family: var(--font-display); }
.filters select, .filters input[type="text"], .filters input[type="search"] {
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    color: var(--text-color);
    padding: 0.45rem 0.65rem;
    border-radius: 6px;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.filters select:focus, .filters input:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 8px var(--glow-color);
}
.filters button {
    background: var(--primary-color);
    color: #fff;
    border: 1px solid var(--primary-color);
    padding: 0.45rem 1.25rem;
    border-radius: 6px;
    font-family: var(--font-display);
    font-weight: bold;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.filters button:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 12px var(--glow-color);
}

/* Letter filter row */
.letter-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}
.letter-filter a, .letter-filter span {
    display: inline-block;
    padding: 0.3rem 0.55rem;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.letter-filter a {
    color: var(--text-glow);
    background: var(--surface);
    border: 1px solid var(--border-subtle);
}
.letter-filter a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}
.letter-filter .active {
    background: var(--secondary-color);
    color: #fff;
    border-color: var(--secondary-color);
}

/* ============================
   DJ Profile
   ============================ */
.dj-profile {
    background: var(--surface);
    border: 2px solid var(--primary-color);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    margin-top: 4px;
    box-shadow: 0 0 15px var(--glow-color), inset 0 0 5px rgba(148, 0, 211, 0.1);
}
.dj-profile-header-bg {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.dj-profile-header-bg::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0; height: 120px;
    background: linear-gradient(to top, var(--surface), transparent);
}
.dj-profile .hero {
    text-align: center;
    padding: 0 2rem 2rem;
    position: relative;
    margin-top: -100px;
    z-index: 2;
}
.dj-profile .hero img.profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 4px solid var(--surface);
    box-shadow: 0 0 15px var(--secondary-color), 0 0 25px var(--glow-color);
    background: var(--surface-2);
}
.dj-profile .hero h1 { font-size: 2.2rem; margin-bottom: 0.25rem; font-family: var(--font-display); color: var(--text-glow); }
.dj-profile .hero .real-name { font-size: 1rem; color: rgba(224, 224, 224, 0.6); margin-bottom: 0.5rem; }
.dj-profile .hero .meta { font-size: 1rem; color: rgba(224, 224, 224, 0.7); margin-bottom: 1rem; }

/* Vote score badge (like djanetop's score number) */
.dj-profile .vote-score {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    margin-bottom: 1rem;
    box-shadow: 0 0 15px var(--glow-color);
}

.dj-profile .rank-badges { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin: 1rem 0; }
.dj-profile .rank-badges span {
    background: none;
    color: #00e5ff;
    border: 1px solid rgba(0,229,255,0.4);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    font-family: var(--font-display);
    text-shadow: 0 0 10px rgba(0,229,255,0.6), 0 0 20px rgba(0,229,255,0.3);
}

/* Social links row */
.dj-social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1.25rem 0;
    flex-wrap: wrap;
}
.dj-social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.8rem;
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    color: var(--text-color);
    font-size: 0.8rem;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.dj-social-links a:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    box-shadow: 0 0 8px var(--glow-color);
}

.dj-profile-content { padding: 0 2rem 2rem; }

/* Genre tags */
.genre-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; margin: 0.75rem 0; }
.genre-tags span {
    background: rgba(148, 0, 211, 0.12);
    color: var(--secondary-color);
    border: 1px solid var(--border-subtle);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.dj-profile .bio { margin-top: 1.5rem; line-height: 1.7; color: #ccc; }
.dj-profile .bio p { margin: 0 0 1rem; }
.dj-profile .bio h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }

/* Awards section */
.awards-section { margin-top: 1.5rem; }
.awards-section h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }

/* ============================
   Rankings page
   ============================ */
.rankings-filters { margin-bottom: 2rem; }

/* Vertical alphabet sidebar — hidden on wide screens */
.alpha-sidebar { display: none; }

/* <650px: DJ list filters compact layout + vertical alpha nav */
@media (max-width: 650px) {
    .letter-filter { display: none; }
    .alpha-sidebar {
        display: flex;
        flex-direction: column;
        position: fixed;
        right: 0;
        top: calc(var(--header-h, 60px) + 8px);
        bottom: 0;
        border-radius: 6px 0 0 0;
        z-index: 400;
        background: rgba(10, 10, 15, 0.82);
        border: 1px solid var(--border-subtle);
        border-radius: 6px;
        padding: 3px 1px;
        gap: 0;
        overflow-y: auto;
        scrollbar-width: none;
        justify-content: space-between;
    }
    .alpha-sidebar::-webkit-scrollbar { display: none; }
    .alpha-sidebar a {
        display: block;
        font-size: 0.58rem;
        font-family: var(--font-display);
        text-align: center;
        padding: 1px 5px;
        line-height: 1.5;
        text-decoration: none;
        color: rgba(255,255,255,0.3);
    }
    .alpha-sidebar a.has-djs { color: var(--secondary-color); }
    .alpha-sidebar a.active { color: #fff; font-weight: bold; background: var(--primary-color); border-radius: 3px; }
    .alpha-sidebar a.alpha-all { font-size: 0.75rem; border-bottom: 1px solid var(--border-subtle); margin-bottom: 2px; padding-bottom: 3px; color: var(--secondary-color); }
    .alpha-sidebar a.alpha-all.active { color: #fff; }

    .filters:not(.rankings-filters) {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.5rem;
        padding: 0.75rem;
    }
    /* Search field spans first column, button sits beside it */
    .filters:not(.rankings-filters) .filters-group:nth-child(1) { grid-column: 1; grid-row: 1; }
    .filters:not(.rankings-filters) button { grid-column: 2; grid-row: 1; align-self: end; }
    /* Country + Genre share the second row */
    .filters:not(.rankings-filters) .filters-group:nth-child(2),
    .filters:not(.rankings-filters) .filters-group:nth-child(3) {
        grid-column: span 1;
        grid-row: 2;
    }
    .filters:not(.rankings-filters) .filters-group:nth-child(2) { grid-column: 1; }
    .filters:not(.rankings-filters) .filters-group:nth-child(3) { grid-column: 2; }
    .filters:not(.rankings-filters) .filters-group { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
    .filters:not(.rankings-filters) select,
    .filters:not(.rankings-filters) input[type="search"] { width: 100%; box-sizing: border-box; font-size: 0.82rem; padding: 0.35rem 0.5rem; }
    .filters:not(.rankings-filters) label { font-size: 0.7rem; }
}
.rankings-section { margin-top: 1.5rem; }
.rankings-title { font-size: 1.5rem; margin-bottom: 1rem; color: var(--secondary-color); border-bottom: 1px solid var(--border-subtle); padding-bottom: 0.5rem; }
.rankings-empty { color: rgba(224, 224, 224, 0.8); font-size: 1.1rem; }
.rankings-list { list-style: none; padding: 0; margin: 0; max-width: 800px; }
.rankings-item { margin-bottom: 0.4rem; }
.rankings-item-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.rankings-item-link:hover {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--glow-color);
    color: var(--text-glow);
}
.rankings-rank { font-family: var(--font-display); font-weight: 700; color: var(--secondary-color); min-width: 2.5rem; font-size: 1.1rem; }
.rankings-avatar { flex-shrink: 0; border-radius: 50%; overflow: hidden; border: 1px solid var(--border-subtle); }
.rankings-avatar img { display: block; width: 48px; height: 48px; object-fit: cover; }
.rankings-info { display: flex; flex-direction: column; gap: 0.2rem; flex: 1; }
.rankings-info strong { font-size: 1rem; }
.rankings-meta { font-size: 0.85rem; color: rgba(224, 224, 224, 0.6); }

/* ============================
   Footer
   ============================ */
footer {
    margin-top: 2rem;
    padding: 1.5rem 1rem;
    border-top: 1px solid var(--primary-color);
    text-align: center;
    color: rgba(224, 224, 224, 0.5);
    font-size: 0.85rem;
}
footer a { color: var(--secondary-color); }
footer a:hover { text-shadow: 0 0 8px var(--glow-color); }

/* ============================
   News pages
   ============================ */
.news-list .card { padding: 1rem; }
.news-list .card h3 { margin-bottom: 0.5rem; }
.news-list .excerpt { color: rgba(224, 224, 224, 0.8); font-size: 0.9rem; }
.news-list .tags { margin-top: 0.5rem; font-size: 0.8rem; }
.news-list .tags a { margin-right: 0.5rem; }

.article-card .article-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    border-bottom: 1px solid var(--border-subtle);
}
.article-card a { padding: 0; }

.news-item {
    max-width: 800px;
    margin: 0 auto;
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px var(--glow-color);
}
.news-item .article-featured {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}
.news-item h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.news-item .meta { color: var(--secondary-color); font-weight: bold; margin-bottom: 2rem; border-bottom: 1px solid var(--border-subtle); padding-bottom: 1rem; }
.news-item .article-body { font-size: 1.05rem; line-height: 1.8; color: var(--text-color); }
.news-item .article-body p { margin: 0 0 1.5rem; }

/* ============================
   Admin / CMS
   ============================ */
.admin-table { width: 100%; border-collapse: collapse; margin: 1rem 0; }
.admin-table th, .admin-table td { padding: 0.5rem; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.cms-form label { display: block; margin-top: 0.75rem; color: var(--text-color); }
.cms-form input[type="text"], .cms-form input[type="url"], .cms-form input[type="datetime-local"], .cms-form select { width: 100%; max-width: 400px; background: var(--surface-2); border: 1px solid var(--border-subtle); color: var(--text-color); border-radius: 6px; padding: 0.5rem; }
.cms-form textarea { width: 100%; max-width: 600px; min-height: 100px; background: var(--surface-2); border: 1px solid var(--border-subtle); color: var(--text-color); border-radius: 6px; padding: 0.5rem; }
.message { color: var(--secondary-color); }

/* ============================
   Promo Page
   ============================ */
.promo-banners-map ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.promo-banners-map li {
    background: var(--surface-2);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--primary-color);
    flex: 1;
    min-width: 200px;
    text-align: center;
}
.promo-banners-map strong { display: block; color: var(--secondary-color); font-size: 1.1rem; margin-bottom: 0.5rem; font-family: var(--font-display); }
.promo-order-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.order-block {
    background: var(--surface);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 10px var(--glow-color);
}
.order-block h3 { color: var(--secondary-color); border-bottom: 1px solid var(--border-subtle); padding-bottom: 0.5rem; margin-bottom: 1rem; font-size: 1.1rem; font-family: var(--font-display); }
.promo-form { flex: 1; display: flex; flex-direction: column; }
.promo-form label { display: block; margin-top: 0.75rem; font-weight: bold; color: rgba(224, 224, 224, 0.9); font-size: 0.85rem; }
.promo-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.6rem;
    margin-top: 0.25rem;
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.promo-form input:focus { outline: none; border-color: var(--secondary-color); box-shadow: 0 0 8px var(--glow-color); }
.promo-form .total-price { margin-top: auto; padding-top: 1.25rem; font-size: 1.1rem; color: var(--text-glow); }
.promo-form button {
    margin-top: 1rem;
    background: var(--primary-color);
    color: #fff;
    font-weight: bold;
    padding: 0.7rem 2rem;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-size: 1rem;
    font-family: var(--font-display);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.1s;
    width: 100%;
}
.promo-form button:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    box-shadow: 0 0 12px var(--glow-color);
    transform: scale(1.02);
}
.promo-form button:active { transform: scale(0.98); }

/* ============================
   Auth Forms
   ============================ */
.auth-form {
    position: relative;
    max-width: 400px;
    margin: 2rem auto;
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px var(--glow-color);
}
.auth-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.5rem;
    line-height: 1;
    color: rgba(224,224,224,0.6);
    text-decoration: none;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
}
.auth-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.auth-form label { display: block; margin-bottom: 1rem; font-weight: bold; color: var(--text-color); }
.auth-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem;
    margin-top: 0.5rem;
    background: var(--surface-2);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    color: var(--text-color);
    font-size: 1rem;
}
.auth-form input:focus { border-color: var(--secondary-color); box-shadow: 0 0 8px var(--glow-color); outline: none; }
.auth-form button {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: #fff;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
}
.auth-form button:hover { background: var(--secondary-color); border-color: var(--secondary-color); box-shadow: 0 0 12px var(--glow-color); }
.auth-links { text-align: center; margin-top: 1rem; }
.auth-links a { font-size: 0.9rem; }

/* Ad slots */
.ad-slot-header { flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ad-slot-header .ad-unit img { max-height: 76px; width: auto; max-width: 100%; object-fit: contain; }
.ad-slot-footer { margin: 0.5rem 0; text-align: center; }
.ad-unit img { max-height: 90px; width: auto; max-width: 100%; object-fit: contain; }
.ad-cycle { position: relative; }
.ad-cycle .ad-unit { opacity: 0; position: absolute; top: 0; left: 0; right: 0; transition: opacity 0.6s ease; pointer-events: none; }
.ad-cycle .ad-unit.ad-active { opacity: 1; position: relative; pointer-events: auto; }
.page-with-sidebars { display: flex; min-height: 0; }
.page-with-sidebars > main { flex: 1; min-width: 0; }
.ad-slot-left, .ad-slot-right {
    width: 160px; flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center; gap: 1rem;
    padding: 1rem 0.5rem;
    position: sticky; top: var(--header-h, 88px); align-self: flex-start; max-height: calc(100vh - var(--header-h, 70px)); overflow-y: auto;
}
.ad-slot-left .ad-unit img,
.ad-slot-right .ad-unit img { max-height: none; max-width: 100%; width: 140px; }
.ad-slot-left:empty, .ad-slot-right:empty { display: none; }
@media (max-width: 1100px) {
    .ad-slot-left, .ad-slot-right { display: none; }
    .page-with-sidebars { display: block; }
}

/* ============================
   Hamburger / Mobile Nav Toggle
   ============================ */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 110;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
}
.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-glow);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
    transform-origin: center;
}
/* Animate bars to X when open */
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: var(--secondary-color);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--secondary-color);
}

/* ============================
   Responsive
   ============================ */
/* ≤900px: hamburger + collapsing nav */
@media (max-width: 900px) {
    header[role="banner"] {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 6px 16px;
        position: fixed;
        gap: 0;
    }
    .nav-toggle { display: flex; }
    header[role="banner"] nav {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
        background: var(--surface);
        border: 1px solid var(--border-subtle);
        border-radius: 8px;
        padding: 0 1rem;
        margin-top: 0.5rem;
        order: 3;
    }
    header[role="banner"] nav.nav-open {
        max-height: 500px;
        opacity: 1;
        padding: 1rem;
    }
    header[role="banner"] nav a {
        padding: 0.6rem 0;
        width: 100%;
        border-bottom: 1px solid var(--border-subtle);
        font-size: 0.95rem;
    }
    header[role="banner"] nav a:last-of-type { border-bottom: none; }
    header[role="banner"] nav .lang-selector {
        margin-left: 0;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top: 1px solid var(--border-subtle);
        width: 100%;
    }
    .cards { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
    .news-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .home-hero { padding: 2rem 1rem; }
    .home-hero h1 { font-size: 1.6rem; }
    .hero-featured-djs { gap: 0.75rem; }
    .hero-vote-card { font-size: 0.75rem; padding: 0.4rem 1rem 0.4rem 0.4rem; }
    .hero-vote-card img { width: 36px; height: 36px; }
    .ranking-row {
        grid-template-columns: 2.5rem 44px 1fr auto;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
    }
    .ranking-country { display: none; }
    .ranking-photo img { width: 44px; height: 44px; }
    .section-header { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .dj-profile .hero h1 { font-size: 1.6rem; }
    .dj-profile .hero img.profile-avatar { width: 140px; height: 140px; }
    .dj-profile-content { padding: 0 1rem 1.5rem; }
}

/* <500px: compact header, ad spans full width on its own row */
@media (max-width: 499px) {
    header[role="banner"] {
        padding: 6px 12px;
        gap: 0;
        width: 100%;
    }
    .ad-slot-header {
        display: flex;
        order: 3;
        flex: none;
        width: calc(100% + 24px);
        margin-left: -12px;
        margin-right: -12px;
        justify-content: center;
        padding: 0.8rem 0;
        max-height: 76px;
        overflow: hidden;
        background: var(--bg-color, #0a0a0f);
        margin-top: 4px;
    }
    .ad-slot-header .ad-unit img { max-height: 74px; }
    header[role="banner"] nav { order: 4; }
    .djlist-sticky-bar .filters
    {
        padding: 0;
        line-height: 1rem;
    }

    }
}

@media (max-width: 650px) {
    body .djane-page { padding-left: 0; padding-right: 24px; }
    body .djane-page main { padding-left: 0; }
    .cards { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
}
@media (max-width: 480px) {
    body .djane-page { padding: 0; padding-right: 24px; }
    .cards { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .dj-card .dj-img { height: 130px; }
    .dj-card .dj-info { padding: 0.4rem; }
    .dj-card .dj-info h3 { font-size: 0.7rem; }
    .dj-card .dj-info .meta-genre { display: none; }
    .ranking-row { font-size: 0.85rem; }
    .ranking-pos { font-size: 0.9rem; }
    .ranking-votes { font-size: 0.75rem; }
}

/* ============================
   Enhanced DJ Profile
   ============================ */

/* Reveal animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax header */
.dj-profile-header-bg {
    height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.dj-profile-header-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--surface) 0%, transparent 30%);
}
.header-particles {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1px 1px at 20% 30%, rgba(255,0,255,0.4), transparent),
        radial-gradient(1px 1px at 80% 20%, rgba(148,0,211,0.3), transparent),
        radial-gradient(1.5px 1.5px at 50% 60%, rgba(255,0,255,0.25), transparent),
        radial-gradient(1px 1px at 70% 80%, rgba(148,0,211,0.35), transparent);
    background-size: 200px 200px, 150px 150px, 250px 250px, 180px 180px;
    animation: particle-drift 20s linear infinite;
    pointer-events: none;
}
@keyframes particle-drift {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50px); }
}

/* Avatar with animated ring */
.profile-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}
.dj-profile .hero img.profile-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--surface);
    box-shadow: 0 0 20px var(--secondary-color), 0 0 40px var(--glow-color);
    background: var(--surface-2);
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
}
.dj-profile .hero img.profile-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--secondary-color), 0 0 60px var(--glow-color);
}
.avatar-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--secondary-color);
    border-right-color: var(--primary-color);
    animation: ring-spin 4s linear infinite;
    z-index: 1;
}
@keyframes ring-spin {
    to { transform: rotate(360deg); }
}

/* Hero spacing */
.dj-profile .hero {
    text-align: center;
    padding: 0 2rem 2rem;
    position: relative;
    margin-top: -120px;
    z-index: 2;
}

/* Catch copy */
.catch-copy {
    font-size: 1.1rem;
    color: #fff;
    font-style: italic;
    margin: 0.5rem 0 1rem;
    text-shadow: 0 0 10px rgba(255,0,255,0.2);
}

/* Rank badges with glow */
.rank-badge-glow {
    background: rgba(148, 0, 211, 0.15);
    color: var(--secondary-color);
    border: 1px solid var(--border-subtle);
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    font-family: var(--font-display);
    transition: box-shadow 0.3s, transform 0.2s;
}
.rank-badge-glow:hover {
    box-shadow: 0 0 12px var(--glow-color);
    transform: translateY(-2px);
}
.live-ranking-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.3rem 1.2rem;
    margin: 0.3rem 0 0.5rem;
}
.live-rank-text {
    color: #00e5ff;
    font-size: 0.95rem;
    font-family: var(--font-display);
    text-shadow: 0 0 10px rgba(0,229,255,0.6), 0 0 20px rgba(0,229,255,0.3);
}
.rank-badge-award {
    background: none;
    color: #00e5ff;
    border: none;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: bold;
    font-family: var(--font-display);
    text-shadow: 0 0 10px rgba(0,229,255,0.6), 0 0 20px rgba(0,229,255,0.3);
    transition: text-shadow 0.3s, transform 0.2s;
}
.rank-badge-award:hover {
    text-shadow: 0 0 14px rgba(0,229,255,0.8), 0 0 28px rgba(0,229,255,0.4);
    transform: translateY(-2px);
}

/* Vote NOW pulse */
.vote-now-pulse {
    animation: vote-pulse 2s ease-in-out infinite;
    display: inline-block;
    text-decoration: none;
    color: #fff;
}
@keyframes vote-pulse {
    0%, 100% { box-shadow: 0 0 12px var(--glow-color); }
    50% { box-shadow: 0 0 24px var(--secondary-color), 0 0 40px var(--glow-color); }
}

.hero-actions { margin-top: 1rem; }
.hero-actions form { display: inline; }

/* Social links with SVG icons */
.dj-social-links a svg {
    flex-shrink: 0;
    vertical-align: middle;
}

/* ============================
   Profile sections
   ============================ */
.profile-section {
    padding: 0 2rem 2rem;
}
.profile-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}

/* Gallery Swiper */
.profile-gallery {
    padding: 0 2rem 2rem;
}
.profile-gallery h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-subtle);
}
.profile-swiper {
    border-radius: 10px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}
.profile-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    max-height: 500px;
}
.profile-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 500px;
}
.profile-swiper .swiper-button-prev,
.profile-swiper .swiper-button-next {
    color: var(--secondary-color);
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.8));
    transition: transform 0.2s;
}
.profile-swiper .swiper-button-prev:hover,
.profile-swiper .swiper-button-next:hover {
    transform: scale(1.15);
}
.profile-swiper .swiper-pagination-bullet {
    background: var(--secondary-color);
    opacity: 0.5;
}
.profile-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: var(--primary-color);
    box-shadow: 0 0 6px var(--glow-color);
}

/* Track embed */
.profile-track .track-embed {
    border-radius: 8px;
    overflow: hidden;
}
.profile-track .track-embed iframe {
    display: block;
    border-radius: 8px;
}

/* YouTube grid */
.yt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.yt-card {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}
.yt-card:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 0 15px var(--glow-color);
    transform: translateY(-3px);
}
.yt-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #000;
}
.yt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.yt-card:hover .yt-thumb img {
    transform: scale(1.05);
}
.yt-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
    background: rgba(0,0,0,0.3);
    transition: background 0.2s;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}
.yt-card:hover .yt-play {
    background: rgba(148,0,211,0.3);
}

/* YouTube lightbox */
.yt-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.yt-lightbox[hidden] { display: none; }
.yt-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(8px);
}
.yt-lightbox-content {
    position: relative;
    width: 90vw;
    max-width: 900px;
    aspect-ratio: 16/9;
}
.yt-lightbox-close {
    position: absolute;
    top: -2.5rem;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1;
}
.yt-lightbox-close:hover { color: var(--secondary-color); }
.yt-lightbox-player {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
}
.yt-lightbox-player iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Bio text */
.profile-bio .bio-text {
    line-height: 1.8;
    color: #fff;
    max-width: 700px;
    margin: 0 auto;
}

/* Bottom nav */
.profile-bottom-nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* ============================
   Profile Responsive
   ============================ */
@media (max-width: 768px) {
    .dj-profile-header-bg { height: 220px; }
    .dj-profile .hero { margin-top: -80px; padding: 0 1rem 1.5rem; }
    .dj-profile .hero img.profile-avatar { width: 140px; height: 140px; }
    .dj-profile .hero h1 { font-size: 1.6rem; }
    .profile-gallery, .profile-section { padding: 0 1rem 1.5rem; }
    .profile-swiper .swiper-slide { min-height: 200px; }
    .yt-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .yt-lightbox-content { width: 95vw; }
}
@media (max-width: 480px) {
    .dj-profile-header-bg { height: 180px; }
    .dj-profile .hero { margin-top: -60px; }
    .dj-profile .hero img.profile-avatar { width: 110px; height: 110px; }
    .avatar-ring { inset: -6px; }
    .yt-grid { grid-template-columns: 1fr; }
    .rank-badges { gap: 0.5rem; }
    .rank-badge-glow, .rank-badge-award { font-size: 0.8rem; padding: 0.3rem 0.7rem; }
    .live-rank-text { font-size: 0.8rem; }
}

/* ============================
   Vote Button States
   ============================ */

/* Loading spinner — CSS-only rotating ring inside the button */
.vote-now.vote-loading {
    pointer-events: none;
    opacity: 0.8;
    position: relative;
    min-width: 120px;
    min-height: 44px;
}
.vote-now.vote-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: vote-spin 0.6s linear infinite;
    vertical-align: middle;
}
@keyframes vote-spin {
    to { transform: rotate(360deg); }
}

/* Success state — green glow with checkmark */
.vote-now.vote-success {
    background: linear-gradient(135deg, #1a8a3e, #22c55e);
    box-shadow: 0 0 18px rgba(34, 197, 94, 0.6), 0 0 30px rgba(34, 197, 94, 0.3);
    color: #fff;
    pointer-events: none;
    transform: scale(1.05);
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s;
}

/* Error state — red flash with shake */
.vote-now.vote-error {
    background: linear-gradient(135deg, #b91c1c, #ef4444);
    box-shadow: 0 0 18px rgba(239, 68, 68, 0.6), 0 0 30px rgba(239, 68, 68, 0.3);
    color: #fff;
    pointer-events: none;
    animation: vote-shake 0.4s ease-in-out;
    transition: background 0.3s, box-shadow 0.3s;
}
@keyframes vote-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* ============================
   Accessibility
   ============================ */
.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--primary-color);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 0 0 6px 6px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    z-index: 9999;
    transition: top 0.2s;
    text-decoration: none;
}
.skip-link:focus {
    top: 0;
    outline: none;
}

/* Focus outlines for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
