/* World AI Music Awards - Shared Layout & Responsive Styles */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    font-size: 16px;
    overflow-y: scroll;
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    padding: 18px 0 42px 0;
    background-color: #0b0e0d;
    color: #dde4e0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 95%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 28px 36px 28px;
    background: #0b0e0d;
}

/* === TOP NAVIGATION === */
.top-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0 0 14px 0;
    margin: 0 0 26px 0;
    gap: 10px;
    width: 100%;
}

.top-nav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    font-size: 12px;
}

.lang-selector {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
}

.lang-selector a {
    color: #bac6bf;
    text-decoration: none;
    padding: 0 4px;
    transition: color 0.2s ease;
}

.lang-selector a:hover {
    color: #1fe05a;
}

.lang-selector .lang-active {
    color: #1fe05a;
    padding: 0 4px;
    cursor: default;
}

.lang-selector .lang-sep {
    color: rgba(255, 255, 255, 0.2);
    user-select: none;
}

.nav-brand-note {
    color: #bac6bf;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.4px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.nav-links .nav-active {
    color: #1fe05a;
}

.nav-links .nav-sep {
    color: rgba(255, 255, 255, 0.2);
    user-select: none;
}

.nav-radio-btn {
    color: #1fe05a;
    border: 1px solid rgba(31, 224, 90, 0.45);
    background: transparent;
    border-radius: 6px;
    padding: 4px 11px;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav-radio-btn:hover {
    border-color: #1fe05a;
    background: rgba(31, 224, 90, 0.08);
}

.nav-links a.nav-plain-link {
    color: #cdd7d1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-links a.nav-plain-link:hover {
    color: #1fe05a;
}

/* === HERO WITH CERTIFICATES MARQUEE === */
.header-hero {
    text-align: center;
    margin-bottom: 24px;
}

.header-logo-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    width: 100%;
    margin: 0 auto 14px auto;
}

.hero-logo {
    display: block;
    width: 164px;
    height: 164px;
    flex: 0 0 164px;
    object-fit: contain;
    margin: 0;
}

.badge-marquee-side {
    flex: 1 1 0;
    min-width: 0;
    height: 112px;
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

.badge-marquee-mobile {
    display: none;
    width: 100%;
    height: 68px;
    position: relative;
    overflow: hidden;
    margin: 4px 0 14px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.marquee-slot {
    position: absolute;
    top: 50%;
    left: 0;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #131816;
    overflow: hidden;
    cursor: pointer;
    will-change: transform;
    user-select: none;
    transition: border-color 0.2s ease;
}

.marquee-slot:hover {
    border-color: #1fe05a;
}

.marquee-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.header-hero h1 {
    margin: 0 0 8px 0;
    color: #f3f6f4;
    font-size: clamp(1.38rem, 3.2vw, 1.85rem);
    font-weight: 700;
    letter-spacing: 0.9px;
    line-height: 1.2;
    white-space: nowrap;
}

.hero-slogan {
    margin: 0 0 4px 0;
    color: #1fe05a;
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-wrap: balance;
}

.hero-slogan-sub {
    margin: 0 0 12px 0;
    color: #bac6bf;
    font-size: 0.86rem;
    font-style: italic;
    text-wrap: balance;
}

.hero-subtitle-line {
    color: #cdd7d1;
    font-size: 0.96rem;
    font-weight: 500;
    max-width: 640px;
    margin: 0 auto;
    text-wrap: balance;
}

.hero-subtitle-line--spaced {
    margin-top: 10px;
}

.hero-subtitle-line strong {
    color: #f3f6f4;
}

/* === CARD BASE (#131816) === */
.card {
    width: 100%;
    background: #131816;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px 24px;
    margin: 18px auto;
}

.card-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #bac6bf;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #1fe05a;
    display: inline-block;
    flex-shrink: 0;
}

/* === COUNTDOWN BOX === */
.countdown-card {
    text-align: center;
}

.countdown-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(68px, 120px));
    justify-content: center;
    gap: 12px;
    margin: 10px 0 14px 0;
}

.cd-cell {
    background: #0b0e0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 8px;
}

.cd-num {
    display: block;
    color: #f3f6f4;
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.cd-lbl {
    display: block;
    margin-top: 4px;
    color: #bac6bf;
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.countdown-date {
    color: #dde4e0;
    font-size: 0.84rem;
    font-weight: 500;
    margin: 0 0 12px 0;
}

.countdown-date strong {
    color: #f3f6f4;
}

.card .countdown-note {
    color: #bac6bf;
    font-size: 0.88rem;
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* === EDITORIAL CARDS === */
.two-col-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 18px auto;
}

.two-col-grid .card {
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card h2 {
    margin: 0 0 12px 0;
    color: #f3f6f4;
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.15px;
    line-height: 1.3;
    text-wrap: balance;
}

@media (min-width: 769px) {
    .two-col-grid .card h2 {
        white-space: nowrap;
    }
}

.card p {
    margin: 0 0 12px 0;
    color: #dde4e0;
    font-size: 0.93rem;
    line-height: 1.6;
    text-wrap: pretty;
}

.card p:last-child {
    margin-bottom: 0;
}

.card p strong {
    color: #f3f6f4;
}

.editorial-quote {
    margin: 12px 0 0 0;
    padding: 12px 14px;
    background: #0b0e0d;
    border-left: 2px solid #1fe05a;
    border-radius: 0 8px 8px 0;
    color: #dde4e0;
    font-size: 0.88rem;
    line-height: 1.55;
    text-wrap: pretty;
}

.editorial-quote strong {
    color: #f3f6f4;
    display: block;
    margin-top: 4px;
}

.card-actions-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 16px;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    color: #e4ebe7;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.btn-outline:hover {
    border-color: rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.03);
}

.card-bottom-note {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #bac6bf;
    font-size: 0.84rem;
}

.card-bottom-note strong {
    color: #f3f6f4;
}

.card-bottom-note a {
    color: #1fe05a;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.card-bottom-note a:hover {
    color: #7df3a0;
}

/* === LIVE ARCHIVE & FLAGS === */
.proof-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.proof-badge {
    font-size: 0.76rem;
    font-weight: 600;
    color: #1fe05a;
    border: 1px solid rgba(31, 224, 90, 0.35);
    border-radius: 999px;
    padding: 4px 10px;
    letter-spacing: 0.3px;
}

.kpi-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 14px 0 18px 0;
}

.kpi-box {
    background: #0b0e0d;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 14px 12px;
    text-align: center;
}

.kpi-value {
    display: block;
    color: #f3f6f4;
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.15;
    font-variant-numeric: tabular-nums;
}

.kpi-label {
    display: block;
    margin-top: 5px;
    color: #bac6bf;
    font-size: 0.8rem;
}

.countries-label {
    color: #bac6bf;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin: 0 0 10px 0;
}

.countries-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.country-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #0b0e0d;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.82rem;
    color: #dde4e0;
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.country-chip:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.03);
}

.flag-img {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    display: block;
}

.flag-fallback {
    font-size: 0.82rem;
    font-weight: 700;
    color: #bac6bf;
    line-height: 1;
}

.country-count {
    color: #bac6bf;
    font-size: 0.76rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.proof-cta-center {
    margin-top: 20px;
    padding-top: 20px;
    padding-bottom: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.btn-hall-compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border: 1px solid #1fe05a;
    border-radius: 10px;
    color: #1fe05a;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: background-color 0.2s ease;
}

.btn-hall-compact:hover {
    background: rgba(31, 224, 90, 0.08);
}

.card .proof-footnote {
    color: #9aa79f;
    font-size: 0.78rem;
    margin: 22px 0 0 0;
}

/* === COMPACT RADIO PLAYER === */
.player-console {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 24px;
}

.player-meta-col {
    min-width: 0;
    text-align: left;
}

.player-status-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #bac6bf;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.player-track-title {
    color: #f3f6f4;
    font-size: 1.05rem;
    font-weight: 700;
    margin-top: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes heartPulseIdle {
    0%, 48%, 100% {
        border-color: rgba(31, 224, 90, 0.6);
        box-shadow: 0 0 0 0 rgba(31, 224, 90, 0);
        transform: scale(1);
    }
    14% {
        border-color: #1fe05a;
        box-shadow: 0 0 14px rgba(31, 224, 90, 0.42);
        transform: scale(1.015);
    }
    24% {
        border-color: #22d3ee;
        box-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
        transform: scale(1);
    }
    34% {
        border-color: #e5b84b;
        box-shadow: 0 0 15px rgba(229, 184, 75, 0.42);
        transform: scale(1.012);
    }
}

@keyframes heartPulseLive {
    0%, 48%, 100% {
        border-color: rgba(255, 0, 60, 0.7);
        box-shadow: 0 0 0 0 rgba(255, 0, 60, 0);
        transform: scale(1);
    }
    14% {
        border-color: #ff003c;
        box-shadow: 0 0 14px rgba(255, 0, 60, 0.45);
        transform: scale(1.015);
    }
    24% {
        border-color: #ff6b6b;
        box-shadow: 0 0 8px rgba(255, 107, 107, 0.32);
        transform: scale(1);
    }
    34% {
        border-color: #e5b84b;
        box-shadow: 0 0 14px rgba(229, 184, 75, 0.38);
        transform: scale(1.012);
    }
}

.player-toggle-btn {
    background: transparent;
    border: 1.5px solid #1fe05a;
    color: #f3f6f4;
    border-radius: 8px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.35px;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    animation: heartPulseIdle 1.9s infinite ease-in-out;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.player-toggle-btn:hover {
    background: rgba(31, 224, 90, 0.08);
}

.player-toggle-btn.is-connecting {
    animation: none;
    color: #e5b84b;
    border-color: #e5b84b;
}

.player-toggle-btn.is-playing {
    color: #ff4d6d;
    animation: heartPulseLive 1.6s infinite ease-in-out;
}

.player-toggle-btn.is-playing:hover {
    background: rgba(255, 0, 60, 0.08);
}

/* === FOOTER === */
.site-footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    color: #bac6bf;
    font-size: 0.82rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 10px;
}

.footer-links a {
    color: #cdd7d1;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding-bottom: 1px;
}

.footer-links a:hover {
    color: #1fe05a;
    border-bottom-color: #1fe05a;
}

/* === RESPONSIVE MOBILE === */
@media (max-width: 768px) {
    body {
        padding: 8px 0 28px 0;
    }
    .container {
        width: 100%;
        padding: 12px 14px 28px 14px;
    }
    .top-nav {
        gap: 10px;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }
    .nav-brand-note {
        font-size: 10.5px;
        letter-spacing: 0.25px;
    }
    .nav-links {
        gap: 6px 10px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }
    .nav-links .nav-sep {
        display: none;
    }
    .nav-radio-btn {
        padding: 4px 10px;
        font-size: 11.5px;
        white-space: nowrap;
    }
    .badge-marquee-side {
        display: none;
    }
    .badge-marquee-mobile {
        display: block;
        margin: 2px 0 12px 0;
    }
    .header-logo-showcase {
        margin-bottom: 10px;
    }
    .hero-logo {
        width: 136px;
        height: 136px;
        flex: 0 0 136px;
    }
    .header-hero h1 {
        white-space: nowrap;
        font-size: clamp(1.14rem, 5.3vw, 1.48rem);
        letter-spacing: 0.4px;
        text-wrap: balance;
    }
    .hero-slogan {
        font-size: 0.94rem;
        padding: 0 4px;
    }
    .hero-slogan-sub {
        font-size: 0.82rem;
    }
    .hero-subtitle-line {
        font-size: 0.88rem;
        line-height: 1.5;
        padding: 0 2px;
    }
    .card {
        padding: 16px 15px;
        margin: 14px auto;
    }
    .card .countdown-note,
    .card .proof-footnote,
    .card-bottom-note {
        text-wrap: balance;
    }
    .countdown-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
    }
    .cd-cell {
        padding: 10px 4px;
    }
    .cd-num {
        font-size: 1.32rem;
    }
    .cd-lbl {
        font-size: 0.65rem;
        letter-spacing: 0.35px;
    }
    .player-console {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 12px;
        padding: 15px 15px;
    }
    .player-meta-col {
        text-align: center;
    }
    .player-status-row {
        justify-content: center;
    }
    .player-track-title {
        white-space: normal;
        font-size: 0.98rem;
        text-wrap: balance;
    }
    .player-toggle-btn {
        width: 100%;
        white-space: normal;
        line-height: 1.3;
        padding: 10px 12px;
        font-size: 0.78rem;
    }
    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        margin: 14px auto;
    }
    .two-col-grid .card h2 {
        font-size: 1.02rem;
    }
    .card-actions-pair {
        gap: 8px;
    }
    .btn-outline {
        font-size: 0.8rem;
        padding: 10px 8px;
    }
    .proof-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    .kpi-row {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }
    .kpi-box:last-child {
        grid-column: 1 / -1;
    }
    .kpi-box {
        padding: 12px 10px;
    }
    .kpi-value {
        font-size: 1.38rem;
    }
    .kpi-label {
        font-size: 0.76rem;
        text-wrap: balance;
    }
    .countries-label {
        text-align: center;
        font-size: 0.78rem;
        text-wrap: balance;
    }
    .countries-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }
    .country-chip {
        width: 100%;
        min-width: 0;
        padding: 7px 9px;
        font-size: 0.78rem;
    }
    .country-chip span:nth-child(2) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .country-count {
        margin-left: auto;
        flex-shrink: 0;
    }
    .btn-hall-compact {
        width: 100%;
        max-width: 310px;
        padding: 11px 16px;
        font-size: 0.84rem;
    }
    .site-footer {
        font-size: 0.78rem;
        text-wrap: balance;
    }
    .footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
        max-width: 320px;
        margin: 12px auto 0 auto;
    }
    .footer-links a {
        border-bottom: none;
        text-decoration: underline;
        text-decoration-color: rgba(255, 255, 255, 0.2);
        text-underline-offset: 3px;
    }
}
