/* =========================================================
   THEME VARIABLES
   ========================================================= */

:root {
    --color-bg: #050505;
    --color-bg-alt: #101010;
    --color-text: #f5f5f5;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-header-bg: rgba(0, 0, 0, 0.6);
    --color-primary: #ffffff;
    --color-primary-text: #000000;
    --color-accent: #ff2a2a;

    /* Schedule-specific */
    --schedule-card-max-width: 760px;
    --schedule-card-padding: 28px;
    --schedule-arrow-size: 3rem;
    --schedule-arrow-offset-top: 1.4rem;

    /* Transitions */
    --transition-speed: 0.3s;
    --transition-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    transition: background-color 0.6s ease, color 0.6s ease;
}

body[data-theme="day"] {
    --color-bg: #f4f7f5;
    --color-bg-alt: #ffffff;
    --color-text: #2a3a31;
    --color-border: rgba(0, 0, 0, 0.08);
    --color-header-bg: rgba(255,255,255,0.4);
    --color-primary: #4b635a;
    --color-primary-text: #ffffff;
}

body[data-theme="night"] {
    --color-bg: #050505;
    --color-bg-alt: #101010;
    --color-text: #f5f5f5;
    --color-border: rgba(255, 255, 255, 0.08);
    --color-header-bg: rgba(0, 0, 0, 0.6);
    --color-primary: #ffffff;
    --color-primary-text: #000000;
}

/* =========================================================
   FOUNDATION
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: fixed;
    inset-inline: 0;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(0.25px);
    -webkit-backdrop-filter: blur(0.25px);
    background: transparent;
    transition: background-color 0.3s ease;
}

body[data-theme="day"] .site-header {
    background: transparent;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 0;
}

.site-header__logo-text {
    font-family: "Playfair Display", serif;
    font-size: 3.35rem;
    font-weight: 600;
    transition: transform 0.3s var(--transition-ease);
}

.site-header__logo {
    color: var(--color-text);
    text-decoration: none;
    display: inline-block;
}

.site-header__logo:hover .site-header__logo-text {
    transform: scale(1.02);
}

.site-header__nav {
    display: none;
}

.site-header__link {
    color: var(--color-text);
    text-decoration: none;
    opacity: 0.85;
    font-size: 0.92rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: opacity 0.2s ease;
    position: relative;
}

.site-header__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s var(--transition-ease);
}

.site-header__link:hover {
    opacity: 1;
}

.site-header__link:hover::after {
    width: 100%;
}

.theme-toggle {
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

/* Theme override (persistent pill) */

.theme-override {
    position: fixed;
    bottom: 1.25rem;
    right: 2rem;
    z-index: 9999;
    padding: 0.45rem 0.7rem;
    border-radius: 6px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: 1px solid var(--color-border);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}

.theme-override:hover {
    background: rgba(0,0,0,0.65);
}

body[data-theme="day"] .theme-override {
    background: rgba(255,255,255,0.8);
    color: #333;
    border-color: rgba(0,0,0,0.2);
}

body[data-theme="day"] .theme-override:hover {
    background: rgba(255,255,255,0.95);
}

/* Site header - hide current show */
.site-header__current-show {
    display: none !important;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    padding-top: 4.5rem;
    min-height: calc(100vh - 4.5rem);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    overflow: hidden;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__video-wrapper {
    position: absolute;
    inset: 0;
}

.hero__image-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero__fallback-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: opacity 0.6s ease;
    opacity: 0;
}

.hero__fallback-image.loaded {
    opacity: 1;
}

#youtube-player {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vw;
    height: 67.5vw;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: auto;   /* <-- FIX */
}

/* Hero overlay */

.hero__overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.35);
    transition: background 0.5s ease;
}

body[data-theme="day"] .hero__overlay {
    background: rgba(0, 0, 0, 0);
}

body[data-theme="night"] .hero__overlay {
    background: rgba(0, 0, 0, 0.8);
}

.hero__content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.8s var(--transition-ease);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__content-inner {
    max-width: 580px;
}

.hero__eyebrow {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    opacity: 0.8;
    margin-bottom: 0.75rem;
}

.hero__title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    margin: 0 0 1rem;
}

.hero__subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    max-width: 34rem;
    margin-bottom: 1.8rem;
    opacity: 0.9;
}

/* Hero live indicator */

.hero__live-indicator {
    position: absolute;
    top: 1.8rem;
    right: 2rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.6rem 1rem;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    transition: opacity 0.3s ease;
}

/* Tap to listen overlay (positioned over Now Playing box) */

/* Tap to listen overlay CSS moved to line ~810 with schedule__current-info */

body[data-theme="day"] .tap-to-listen-overlay {
    background: rgba(255, 255, 255, 0.9);
}

/* =========================================================
   NOW PLAYING & NEXT UP WIDGETS (Bottom of Hero)
   ========================================================= */

/* Now Playing Widget - Centered at bottom of hero */
/*  .now-playing-widget {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 98;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.2rem 2rem;
    border-radius: 1rem;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 300px;
    max-width: 400px;
    font-size: 0.9rem;
    animation: slideInUp 0.5s var(--transition-ease);
    color: #2a3a31;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: bottom 0.3s var(--transition-ease), transform 0.3s var(--transition-ease);
}

.now-playing-widget__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 0.1em;
    color: #4b635a;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.now-playing-widget__show {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #2a3a31;
}

.now-playing-widget__dj {
    font-size: 0.9rem;
    opacity: 0.8;
    color: #4b635a;
}

/* Next Up Widget - Right side at bottom of hero */
.next-up-widget {
    position: fixed;
    bottom: 5rem;
    right: 2rem;
    z-index: 98;
    background: var(--color-bg-alt);      /* adapts in both themes */
    padding: 0.9rem 1.15rem;
    border-radius: 0.85rem;
    backdrop-filter: blur(12px);
    border: 1px solid var(--color-border);
    min-width: 200px;
    max-width: 280px;
    font-size: 0.9rem;
    animation: slideInRight 0.5s var(--transition-ease);
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: bottom 0.3s var(--transition-ease), opacity 0.3s var(--transition-ease);
}

.next-up-widget {
    transition:
        background-color 0.6s ease,
        border-color 0.6s ease,
        color 0.6s ease,
        box-shadow 0.6s ease,
        opacity 0.6s ease;
}

/* When scrolled to schedule, widgets stop at top */
body.scrolled-to-schedule .now-playing-widget,
body.scrolled-to-schedule .next-up-widget {
    position: absolute;
    bottom: auto;
    top: 2rem;
}

body.scrolled-to-schedule .now-playing-widget {
    left: 50%;
    transform: translateX(-50%);
}

body.scrolled-to-schedule .next-up-widget {
    right: 2rem;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.next-up__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 0.1em;
    color: var(--color-text);
    opacity: 0.7;
    font-weight: 600;
}

.next-up__show {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 0.3rem;
    color: var(--color-text);
}

.next-up__time {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0.2rem;
    color: #4b635a;
} */

/* =========================================================
   NOW PLAYING / ONAIR
   ========================================================= */

.now-playing {
    border-radius: 0.75rem;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem 1.1rem;
    margin-bottom: 1.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.now-playing__label {
    margin: 0 0 0.25rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.8;
}

.now-playing__time {
    margin: 0 0 0.3rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.now-playing__show {
    margin: 0 0 0.25rem;
    font-weight: 600;
}

.now-playing__dj {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* On-air center */

.onair-center {
    text-align: center;
    padding: 2.5rem 0;
    animation: fadeIn 0.6s ease;
}

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

.onair-center__inner {
    max-width: 600px;
    margin: 0 auto;
}

.onair-center__label {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    opacity: 0.8;
    margin-bottom: 0.6rem;
}

.onair-center__show {
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    margin-bottom: 0.4rem;
}

.onair-center__description {
    font-size: 1rem;
    opacity: 0.85;
    max-width: 480px;
    margin: 0 auto;
}

/* Off-air message */

.offair-hero {
    display: flex;
    justify-content: center;
    text-align: center;
    margin-top: 1rem;
    padding: 1rem 0;
}

.offair-hero .onair-center__label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text);
    opacity: 0.9;
    margin-bottom: 0.4rem;
}

.offair-hero .onair-center__show {
    font-family: "Inter", sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 1.15rem;
    color: var(--color-text);
    margin-bottom: 0.35rem;
}

.offair-hero .onair-center__description {
    color: var(--color-text);
    opacity: 0.8;
    font-size: 1rem;
}


/* Normalize visual height of floating widgets */
.schedule__current-info,
.next-up-widget {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.schedule__current-info,
.next-up-widget {
    /* padding-top: 1.5rem;
    padding-bottom: 1.5rem; */

    /* Ensures equal top/bottom visual weight */
    display: flex;
    flex-direction: column;
    justify-content: center;

    /* Consistent appearance */
    /* min-height: 120px; adjust if needed */
    border-radius: 1rem;
    backdrop-filter: blur(12px);
}

/* Important: don't force height/min-height here */
.next-up-widget {
    height: auto;
    min-height: 0;
}


/* =========================================================
   Live indicator
   ========================================================= */

.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.live-dot {
    width: 10px;
    height: 10px;
    background: #ff2a2a;
    border-radius: 50%;
    animation: livePulse 1.15s infinite ease-in-out;
    box-shadow: 0 0 0 rgba(255, 42, 42, 0.6);
}

.live-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #ff2a2a;
}

@keyframes livePulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 42, 42, 0.5);
    }
    50% {
        transform: scale(1.35);
        box-shadow: 0 0 6px 4px rgba(255, 42, 42, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 42, 42, 0.5);
    }
}

/* =========================================================
   SCHEDULE – ONE CARD CAROUSEL
   ========================================================= */

.schedule {
    background-color: var(--color-bg);
    padding: 3rem 0 3.25rem;
}

.schedule__header {
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

/* Current Show Info in Schedule Header */
.schedule__current-info {
    position: fixed;
    bottom: 5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 98;
    max-width: var(--schedule-card-max-width);
    width: calc(100% - 2.5rem);
    margin: 0;
    padding: 1.5rem 4rem 1.5rem 2rem;
    background: var(--color-bg-alt);
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    min-height: 100px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

/* When scrolled past schedule, move to inline position */
body.scrolled-to-schedule .schedule__current-info {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 0 auto;
    width: 100%;
}

/* Tap to Listen Overlay - positioned absolutely within parent */
.tap-to-listen-overlay {
    position: absolute;
    inset: 0;
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    backdrop-filter: blur(12px);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border-radius: 1rem;
    padding: 1.5rem 4rem 1.5rem 2rem;
    gap: 1.5rem;
    transition: opacity 0.3s ease, visibility 0.3s ease, background-color 0.6s ease, border-color 0.6s ease, color 0.6s ease;
}

/* When scrolled, overlay stays within parent */
body.scrolled-to-schedule .tap-to-listen-overlay {
    position: absolute;
    inset: 0;
}

.tap-to-listen-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.tap-to-listen-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    background: transparent;
    transition: all 0.3s ease, background-color 0.6s ease, border-color 0.6s ease;
}

.tap-to-listen-overlay:hover .tap-to-listen-icon {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.tap-to-listen-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--color-text);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.6s ease;
    margin-left: 2px;
}

.tap-to-listen-overlay:hover .tap-to-listen-icon svg {
    stroke: var(--color-primary-text);
}

.tap-to-listen-content {
    text-align: left;
    color: var(--color-text);
    flex-shrink: 0;
    transition: color 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tap-to-listen-text {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: 0;
    color: var(--color-text);
    line-height: 1.3;
    white-space: nowrap;
}

.tap-to-listen-subtext {
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.5;
    white-space: nowrap;
}


.schedule__current-content {
    text-align: center;
    flex: 1;
    padding-right: 0;
}

.schedule-search-input {
    flex: 1;
    padding: 1rem 1.2rem;
    margin-right: 1rem;
}

.schedule__current-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.7;
    margin-bottom: 0.5rem;
    color: var(--color-accent);
    font-weight: 600;
}

.schedule__current-show {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.schedule__current-details {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.5;
}

.schedule__icon-toggle {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border);
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.schedule__icon-toggle:hover {
    background: var(--color-primary);
    color: var(--color-primary-text);
    border-color: var(--color-primary);
}

.schedule-search-input {
    width: 100%;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-bg-alt);
    color: var(--color-text);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.3s ease;
}

.schedule-search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

body[data-theme="day"] .schedule-search-input:focus {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.schedule-search-input::placeholder {
    color: var(--color-text);
    opacity: 0.5;
}

.schedule-carousel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    position: relative;
}

.schedule-carousel.is-transitioning {
    pointer-events: none;
}

.schedule-carousel__viewport {
    flex: 0 1 var(--schedule-card-max-width);
    max-width: 100%;
    position: relative;
    overflow: hidden;
}

.schedule__days {
    width: 100%;
    position: relative;
}

.schedule__day {
    background-color: var(--color-bg-alt);
    border-radius: 1rem;
    border: 1px solid var(--color-border);
    padding: var(--schedule-card-padding);
    margin: 0 auto;
    display: none;
    touch-action: pan-y;
    transition: all var(--transition-speed) var(--transition-ease);
}

.schedule__day.is-active {
    display: block;
}

/* Slide animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.schedule__day.slide-in-left {
    animation: slideInLeft 0.4s var(--transition-ease);
}

.schedule__day.slide-in-right {
    animation: slideInRight 0.4s var(--transition-ease);
}

.schedule__empty {
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.schedule__day-title {
    font-family: "Playfair Display", serif;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 1rem;
}

.schedule__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.1rem;
}

.schedule__item {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0.75rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--color-border);
    /* transition: all 0.2s ease; */ /* Commented out - will use when items are linked */
}

/* Commented out - will use when items are linked
.schedule__item:hover {
    padding-left: 0.5rem;
    border-left: 2px solid var(--color-primary);
}
*/

.schedule__item:first-child {
    border-top: none;
    padding-top: 1.2rem;
}

.schedule__item--current {
    border-radius: 0.75rem;
    padding: 1.2rem 0.7rem 0.7rem 0.7rem;
    margin: -0.3rem;
    background: rgba(255,255,255,0.02);
}

@keyframes highlightPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 var(--color-primary);
    }
    50% {
        box-shadow: 0 0 15px 2px rgba(255, 255, 255, 0.2);
    }
}

body[data-theme="day"] .schedule__item--current {
    background: rgba(0,0,0,0.02);
}

.schedule__item--next-show {
    opacity: 0.85;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.7rem;
    border-radius: 0.5rem;
    margin: 0 -0.3rem;
}

body[data-theme="day"] .schedule__item--next-show {
    background: rgba(0, 0, 0, 0.02);
}

.schedule__time {
    font-size: 1rem;
    line-height: 1.4;
    opacity: 0.9;
    white-space: nowrap;
}

.schedule__show {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.schedule__dj {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.85;
}

.schedule__description {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.8;
}

/* Arrows */

.schedule-carousel__arrow {
    border-radius: 999px;
    width: var(--schedule-arrow-size);
    height: var(--schedule-arrow-size);
    min-width: var(--schedule-arrow-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    margin-top: 0;
    align-self: flex-start;
    transform: translateY(6px);
    transition: all 0.2s var(--transition-ease);
}

.schedule-carousel__arrow:hover:not([disabled]) {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(5px) scale(1.1);
}

.schedule-carousel__arrow:active:not([disabled]) {
    transform: translateY(6px) scale(0.95);
}

.schedule-carousel__arrow[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
}

body[data-theme="day"] .schedule-carousel__arrow {
    background: rgba(255, 255, 255, 0.85);
    color: #222;
    border-color: rgba(0, 0, 0, 0.2);
}

body[data-theme="day"] .schedule-carousel__arrow:hover:not([disabled]) {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    border-top: 1px solid var(--color-border);
    padding: 1.6rem 0;
    background-color: var(--color-bg);
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.6rem;
}

.site-footer__text {
    margin: 0;
    font-size: 0.85rem;
    opacity: 0.75;
}

.site-footer a {
    color: inherit;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.site-footer a:hover {
    opacity: 1;
}

/* =========================================================
   LOADING STATES
   ========================================================= */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spinner 0.6s linear infinite;
}

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

/* =========================================================
   MOBILE RESPONSIVE (Widgets)
   ========================================================= */

@media (max-width: 768px) {
    /* Prevent horizontal overflow on mobile */
    html, body {
        overflow-x: hidden;
        max-width: 100vw;
    }
    
    /* Mobile Video Toggle Button */
    .video-view-toggle {
        display: flex !important;
        position: fixed;
        bottom: 1rem;
        left: 1rem;
        z-index: 99;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        color: #fff;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .video-view-toggle:active {
        transform: scale(0.95);
    }
    
    .video-view-toggle .icon-landscape {
        display: none;
    }
    
    .video-view-toggle .icon-portrait {
        display: block;
    }
    
    /* Portrait crop mode (default on mobile) */
    .hero__video-wrapper {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        overflow: hidden;
    }
    
    #youtube-player {
        position: absolute;
        top: 50%;
        left: 50%;
        width: 177.78vh;  /* 16:9 aspect ratio adjusted for portrait crop */
        height: 100vh;
        min-width: 177.78vh;
        min-height: 100vh;
        transform: translate(-50%, -50%);
    }
    
    /* Landscape mode (when toggled) */
    .hero__video-wrapper.landscape-view {
        height: 56.25vw;  /* 16:9 aspect ratio */
        top: 50%;
        transform: translateY(-50%);
    }
    
    .hero__video-wrapper.landscape-view #youtube-player {
        width: 100vw;
        height: 56.25vw;
        min-width: 100vw;
        min-height: 56.25vw;
    }
    
    .hero__video-wrapper.landscape-view ~ .video-view-toggle .icon-portrait {
        display: none;
    }
    
    .hero__video-wrapper.landscape-view ~ .video-view-toggle .icon-landscape {
        display: block;
    }
    
    /* Move LIVE indicator below logo on mobile */
    .hero__live-indicator {
        position: fixed;
        top: auto;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        z-index: 100;
    }
    
    /* Day theme - lighter backgrounds for mobile controls */
    body[data-theme="day"] .video-view-toggle {
        background: rgba(255, 255, 255, 0.9);
        border-color: rgba(0, 0, 0, 0.15);
        color: #2a3a31;
    }
    
    body[data-theme="day"] .video-view-toggle:active {
        background: rgba(255, 255, 255, 1);
    }
    
    body[data-theme="day"] .hero__live-indicator {
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(0, 0, 0, 0.15);
    }
    
    body[data-theme="day"] .hero__live-indicator .live-label {
        color: #d32f2f;
    }
    
    body[data-theme="day"] .hero__live-indicator .live-dot {
        background: #d32f2f;
    }
    
    /* Redesign search box for mobile - less rounded, proper spacing */
    .schedule-search-input {
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
        margin-right: 0;
        border-radius: 0.75rem;
        border: 1.5px solid var(--color-border);
        width: 100%;
        max-width: 100%;
        flex: 1;
        box-sizing: border-box;
    }
    
    .schedule__icon-toggle {
        right: 0.75rem;
        width: 40px;
        height: 40px;
        min-width: 40px;
        position: absolute;
    }
    
    .schedule__icon-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    /* Make schedule__current-info more compact on mobile */
    .schedule__current-info {
        padding: 0.9rem 3.5rem 0.9rem 1.25rem;
    }
    
    .schedule__current-info.search-active {
        padding: 0.9rem 0.75rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        width: auto;
        box-sizing: border-box;
    }
    
    .schedule__current-label {
        font-size: 0.7rem;
        margin-bottom: 0.25rem;
    }
    
    .schedule__current-show {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }
    
    .schedule__current-details {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    /* Hide carousel arrows on mobile - use swipe gestures instead */
    .schedule-carousel__arrow {
        display: none;
    }
    
    /* Improve schedule text sizing for mobile */
    .schedule__day-header {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .schedule__time {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .schedule__show {
        font-size: 1.05rem;
        font-weight: 600;
        line-height: 1.5;
        margin-bottom: 0.25rem;
    }
    
    .schedule__dj {
        font-size: 0.875rem;
        line-height: 1.6;
        opacity: 0.8;
        margin-bottom: 0.25rem;
    }
    
    .schedule__description {
        font-size: 0.875rem;
        line-height: 1.6;
        opacity: 0.75;
    }
    
    /* Improve schedule item spacing on mobile */
    .schedule__item {
        padding-top: 1rem;
        padding-bottom: 0.5rem;
        gap: 1rem;
    }
    
    .schedule__item:first-child {
        padding-top: 1rem;
    }
    
    .schedule__item--current {
        padding: 1rem 0.75rem 0.75rem 0.75rem;
    }
    
    /* Stack widgets vertically on mobile */
    .now-playing-widget {
        left: 1rem;
        right: 1rem;
        transform: none;
        min-width: auto;
        max-width: none;
        bottom: 7rem;
        padding: 1rem 1.5rem;
    }
    
    .next-up-widget {
        left: 1rem;
        right: 1rem;
        min-width: auto;
        max-width: none;
        bottom: 5rem;
        padding: 0.8rem 1rem;
        min-height: auto;
    }
    
    body.scrolled-to-schedule .now-playing-widget {
        left: 1rem;
        right: 1rem;
        transform: none;
    }
    
    body.scrolled-to-schedule .next-up-widget {
        left: 1rem;
        right: 1rem;
    }
    
    /* Make schedule__current-info full width on mobile */
    .schedule__current-info {
        left: 1rem;
        right: 1rem;
        width: auto;
        transform: none;
    }
    
    body.scrolled-to-schedule .schedule__current-info {
        left: auto;
        right: auto;
        width: 100%;
    }
    
    @keyframes slideInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Make schedule__current-info shorter without breaking design */
.schedule__current-info {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Reduce spacing under NOW PLAYING label */
.schedule__current-info .schedule__current-label {
    margin-bottom: 0.3rem !important;
}

/* Reduce spacing under show title */
.schedule__current-info .schedule__current-show {
    margin-bottom: 0.35rem !important;
}

/* Reduce spacing above description */
.schedule__current-info .schedule__current-details {
    margin-top: 0.2rem !important;
}

/* Improve vertical centering */
.schedule__current-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Ensure search mode matches the same height as the Now Playing view */
.schedule__current-info.search-active {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
}

/* Shrink the search input so it matches the height of the Now Playing content */
.schedule__current-info.search-active .schedule-search-input {
    padding-top: 0.9rem !important;
    padding-bottom: 0.9rem !important;
    height: auto !important;
}

/* Reduce the right-side search close button padding */
.schedule__current-info.search-active .schedule__icon-toggle {
    margin-left: 1rem;
}

/* Keep the Now Playing card height stable in both modes */
#schedule-info-container {
    min-height: 120px;  /* adjust to match your preferred height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}