:root {
    --bg-overlay: rgba(0, 0, 0, 0.82);
    --bg-nav: rgba(0, 0, 0, 0.9);
    --bg-panel: rgba(0, 0, 0, 0.96);
    --text-primary: rgba(255, 255, 255, 0.96);
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.42);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.18);
    --border-strong: rgba(255, 255, 255, 0.32);
    --transition: 0.18s ease;
    --font-main: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
    --live: #d10000;
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    font-family: var(--font-main);
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-primary);
    background:
        linear-gradient(var(--bg-overlay), var(--bg-overlay)),
        url('../images/background.jpg') no-repeat center center / cover fixed;
    background-color: #000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 600'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 220px 220px;
}

.main-nav,
.player-bar,
.main-content,
footer,
.station-header {
    position: relative;
    z-index: 1;
}

.main-nav {
    position: sticky;
    top: 0;
    z-index: 120;
    min-height: 48px;
    display: flex;
    align-items: center;
    background: var(--bg-nav);
    border-bottom: 1px solid var(--border-strong);
}

.nav-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: center;
    gap: 0.35rem;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    padding: 0.38rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: none;
    white-space: nowrap;
    transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active {
    background: #fff;
    color: #000;
}

.player-bar {
    position: sticky;
    top: 48px;
    z-index: 110;
    background: rgba(0, 0, 0, 0.88);
    border-bottom: 1px solid var(--border-light);
}

.player-bar-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0.55rem 1rem;
    display: flex;
    justify-content: flex-start;
}

.player-section {
    position: relative;
    width: 100%;
    max-width: 420px;
}




.nt-mini-player {
    position: relative;
    display: grid;
    grid-template-columns: 48px 80px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 8px;
    background: var(--bg-panel);
    border: 1px solid var(--border-strong);
}

.nt-player-toggle {
    width: 48px;
    height: 52px;
    border: 1px solid #fff;
    background: #000;
    color: #fff;
    cursor: pointer;
    padding: 0;
    font-family: var(--font-main);
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    transition: background var(--transition), color var(--transition);
}

.nt-player-toggle:hover {
    background: #fff;
    color: #000;
}

.nt-player-art-wrap {
    position: relative;
    width: 52px;
    height: 52px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-light);
}

.nt-player-art {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.nt-live-badge {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 20px;
    padding: 0 8px;
    background: rgba(0, 0, 0, 0.92);
    color: rgba(255, 255, 255, 0.96);
    font-size: 8px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: none;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    z-index: 3;
}

.nt-live-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 8px rgba(209, 0, 0, 0.7);
    animation: nt-live-pulse 1.1s infinite ease-in-out;
}

.nt-live-badge[hidden] {
    display: none !important;
}

@keyframes nt-live-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 8px rgba(209, 0, 0, 0.7);
    }
    50% {
        opacity: 0.35;
        transform: scale(0.75);
        box-shadow: 0 0 3px rgba(209, 0, 0, 0.35);
    }
}

.nt-player-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-transform: uppercase;
    padding-right: 56px;
}

.nt-player-title {
    font-size: 0.96rem;
    line-height: 1;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.03em;
}

.nt-player-subtitle {
    font-size: 0.53rem;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.68);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.06em;
}

.nt-player-track,
.nt-player-artist {
    display: none;
}

.station-header {
    padding: 1rem 1rem 0.5rem;
}

.station-header-inner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
}


.station-heading {
    width: 100%;
    text-align: center;
}

.station-heading h1 {
    font-size: clamp(1.55rem, 4.5vw, 2.35rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    color: #fff;
}

.station-tagline {
    margin-top: 0.2rem;
    font-size: clamp(0.68rem, 2vw, 0.82rem);
    color: rgba(255, 255, 255, 0.72);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: none;
}


.station-header-inner {
    position: relative;
    min-height: 92px;
}

.station-header-inner--center {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 92px;
}

.nt-history-header {
    position: absolute;
    top: 0;
    left: 1rem;
    width: 360px;
    background: #000;
    border: 1px solid var(--border-light);
    padding: 0.6rem 0.5rem;
}

.nt-history-list-header {
    list-style: none;
    font-size: 0.6rem;
    color: var(--text-secondary);
    line-height: 1.25;
}

.nt-history-item-header {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.12rem;
    white-space: nowrap;
    overflow: hidden;
}

.nt-history-item-time-header {
    flex-shrink: 0;
    width: 42px;
    font-size: 0.55rem;
    color: var(--text-muted);
}

.nt-history-item-main-header {
    flex: 1;
    overflow: hidden;
}

.nt-history-item-title-header {
    font-weight: 700;
}

.nt-history-item-artist-header {
    opacity: 0.75;
    font-size: 0.95em;
}

.nt-history-item--empty {
    color: var(--text-muted);
    font-style: italic;
}


.main-content {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem 1rem 1rem;
}

.hero-spacer {
    width: 100%;
    max-width: 1240px;
    min-height: 260px;
}

/* SCHEDULE */
.schedule-page {
    width: 100%;
    max-width: 1100px;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0.3rem 1rem 1rem;
}


.schedule-raw {
    width: 100%;
    max-width: 920px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;          /* space between days */
}

.schedule-day {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding-bottom: 0.8rem;
}

.schedule-day-name {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;                           
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.3;
    text-align: left;
}

.schedule-day-slots {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;                     /* space between slots */
    min-width: 0;
}

.schedule-slot {
    display: flex;
    align-items: baseline;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;               
    line-height: 1.45;
    white-space: nowrap;
}

.schedule-slot time {
    width: 92px;                      
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.44);
    font-size: 0.80rem;              
    }

/* ABOUT */
.about-page {
    width: 100%;
    max-width: 980px;
    justify-content: flex-start;
    padding: 0.3rem 1rem 1rem;
}

.about-wrap {
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.about-block {
    display: flex;
    flex-direction: column;
    gap: 0.32rem;
}

.about-block h2 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.64);
}

.about-block p,
.about-list {
    font-size: 0.74rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.8);
}

.about-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
}

.about-list li::before {
    content: "— ";
    color: rgba(255, 255, 255, 0.35);
}

/* CHAT */
.chat-page {
    width: 100%;
    max-width: 1100px;
    justify-content: flex-start;
    padding: 0.3rem 1rem 1rem;
}

.chat-wrap {
    width: 100%;
    max-width: 920px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.chat-frame {
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: rgba(0, 0, 0, 0.5);
}

.chat-frame iframe {
    display: block;
    width: 100%;
    height: 72vh;
    min-height: 620px;
    border: 0;
    background: transparent;
}


/* Player bar no overlap */
.player-bar {
    z-index: 9999;
}

.hero-spacer {
    min-height: 260px;
}


/* FOOTER */
footer {
    width: 100%;
    margin-top: auto;
    padding: 0.45rem 0.8rem 0.5rem;
    background: rgba(0, 0, 0, 0.86);
    border-top: 1px solid var(--border-subtle);
}

.footer-content {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    text-align: center;
}

.social-icons {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
}

.social-icon {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background var(--transition), border-color var(--transition), transform var(--transition);
}

.social-icon:hover {
    background: #fff;
    border-color: #fff;
    transform: translateY(-1px);
}

.social-icon i {
    display: block;
    font-size: 0.86rem;
    line-height: 1;
    color: #fff;
}

.social-icon:hover i {
    color: #000;
}

.copyright {
    width: 100%;
    text-align: center;
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.46);
    letter-spacing: 0.04em;
    text-transform: none;
}

.tech-badge {
    width: 100%;
    text-align: center;
    font-size: 0.52rem;
    color: rgba(255, 255, 255, 0.26);
    letter-spacing: 0.05em;
    text-transform: none;
}

@media (max-width: 768px) {
    body {
        background:
            linear-gradient(rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.84)),
            url('../images/background.jpg') no-repeat center center / cover;
        background-attachment: scroll;
    }

    .station-header-inner {
        min-height: auto;
    }

    .station-header-inner--center {
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .station-heading {
        width: 100%;
        text-align: center;
    }

    .nt-history-header {
        position: static;
        width: 100%;
        max-width: 420px;
        margin-top: 0.75rem;
    }

    .player-bar-inner,
    .nav-container {
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .player-section {
        max-width: 100%;
    }

    .nt-mini-player {
        grid-template-columns: 44px 46px minmax(0, 1fr);
        gap: 7px;
        padding: 7px;
    }

    .nt-player-toggle {
        width: 44px;
        height: 46px;
        font-size: 15px;
    }

    .nt-player-art-wrap {
        width: 46px;
        height: 46px;
    }

    .nt-player-title {
        font-size: 0.84rem;
    }

    .nt-player-subtitle {
        font-size: 0.48rem;
    }

    .nt-player-track,
    .nt-player-artist {
        font-size: 0.54rem;
    }

    .schedule-day {
        grid-template-columns: 52px 1fr;
        gap: 0.6rem;
    }

    .schedule-slot {
        font-size: 0.78rem;
        white-space: normal;
    }

    .schedule-slot time {
        width: 76px;
    }

    .chat-page {
        padding: 0.25rem 0.8rem 0.9rem;
    }
}

@media (max-width: 540px) {
    .nav-container {
        gap: 0.18rem;
        padding: 0 0.45rem;
    }

    .main-nav a {
        font-size: 0.72rem;
        padding: 0.3rem 0.5rem;
    }

    .player-bar-inner {
        padding: 0.45rem 0.65rem;
    }

    .nt-mini-player {
        grid-template-columns: 40px 42px minmax(0, 1fr);
        gap: 6px;
        padding: 6px;
        align-items: center;
    }

    .nt-player-toggle {
        width: 40px;
        height: 42px;
        font-size: 13px;
    }

    .nt-player-art-wrap {
        width: 42px;
        height: 42px;
    }

    .nt-player-meta {
        gap: 2px;
        padding-right: 46px;
    }

    .nt-player-title {
        font-size: 0.76rem;
        line-height: 1;
    }

    .nt-player-subtitle {
        display: block;
        font-size: 0.46rem;
        line-height: 1.1;
        color: rgba(255, 255, 255, 0.68);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nt-player-track,
    .nt-player-artist {
        display: none;
    }

    .nt-live-badge {
        right: 6px;
        height: 18px;
        padding: 0 7px;
        font-size: 7px;
        gap: 6px;
    }

    .nt-live-badge::before {
        width: 6px;
        height: 6px;
    }

    .schedule-day {
        grid-template-columns: 1fr;
        gap: 0.18rem;
    }

    .schedule-day-name {
        width: auto;
    }

    .about-wrap {
        max-width: 100%;
    }

    .chat-frame iframe {
        height: 66vh;
        min-height: 500px;
    }
}
