/*
Theme Name: Radio Frequency
Description: Modern Radio 2026 WordPress Theme
Author: Your Name
Version: 1.0
Text Domain: radiofreq
*/

/* CSS Variables for consistent theming */
:root {
    --primary-color: #ffcc00;
    --primary-hover: #e6b800;
    --bg-color: #ffffff;
    --surface-color: #f8f9fa;
    --text-main: #111111;
    --text-muted: #666666;
    --border-color: #eeeeee;
    --live-red: #ff3b30; /* NEW */
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* PLYR CUSTOMIZATION VARIABLES */
    --plyr-color-main: var(--primary-color);
    --plyr-video-controls-background: linear-gradient(rgba(0,0,0,0), rgba(17,17,17,0.8));
    --plyr-control-radius: 50px;
    --plyr-font-family: inherit;
}
/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; 
    width: 100%;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px; 
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-bottom: calc(120px + env(safe-area-inset-bottom)); 
}

body.no-scroll {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1, h2, h3 {
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 2rem;
}

/* --- THE NEW CONTAINER APPROACH --- */
.container {
    width: 100%;
    padding-left: max(5%, calc((100% - 1400px) / 2));
    padding-right: max(5%, calc((100% - 1400px) / 2));
}

section {
    padding: 1rem 0;
    width: 100%;
}

section:last-of-type {
    padding-bottom: 6rem; 
}

/* --- Header --- */
header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    position: relative;
    z-index: 1002; 
}

.logo span {
    color: var(--primary-color);
}

/* Navigation */
.nav-links {
    display: flex;
    gap: 0.25rem; 
    align-items: center;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 0.4rem; 
    font-weight: 800; 
    font-size: 0.95rem;
    color: var(--text-main); 
    padding: 0.5rem 1rem;
    border-radius: 50px; 
    transition: var(--transition);
    white-space: nowrap; 
}

.nav-links a svg {
    width: 16px;
    height: 16px;
    opacity: 0.7;
    transition: var(--transition);
}

.nav-links a:hover {
    background-color: #f1f3f5; 
}

.nav-links a:hover svg {
    opacity: 1;
}

.nav-links a.active {
    background-color: #e2e5e9; 
}

.nav-links a.active svg {
    opacity: 1;
}

/* Fix Desktop Menu Layout */
.nav-links ul.primary-menu {
    display: flex;
    flex-direction: row;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 20px; /* Adjust this to change the space between links */
    align-items: center;
}

/* Ensure the links inside the list act correctly */
.nav-links ul.primary-menu li {
    margin: 0;
    padding: 0;
}

/* Active state for desktop menu links ONLY */
/* We explicitly ignore the mobile menu and the play button */
#site-header a.active-nav-item:not(.mobile-nav-overlay a):not(.btn-listen) {
    background-color: #f1f3f5; 
    color: var(--text-main);
    padding: 0.5rem 1rem;     
    border-radius: 50px;       
    transition: background-color 0.3s ease; 
}

/* Fix Mobile Menu Layout (Stacks vertically) */
.mobile-nav-overlay ul.mobile-menu {
    display: flex;
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.btn-listen {
    background-color: var(--primary-color);
    color: var(--text-main);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-family: inherit; 
    font-size: 0.95rem;   
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    white-space: nowrap; 
    cursor: pointer;
    border: none;
    width: 130px; 
}

.btn-listen .btn-text {
    display: inline-block;
    width: 38px; 
    text-align: left;
}

.btn-listen:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-listen svg {
    width: 16px;
    height: 16px;
}

/* --- Mobile Menu Styles --- */
.hamburger {
    display: none; 
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002; 
    padding: 0;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform-origin: left center;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg); }

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-color); 
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none; 
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-nav-overlay.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.mobile-nav-overlay a:not(.btn-listen) {
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 900;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    transition: var(--transition);
}

.mobile-nav-overlay a:not(.btn-listen):hover {
    transform: scale(1.05);
}

.mobile-nav-overlay .btn-listen {
    background-color: var(--text-main);
    color: var(--primary-color);
    margin-top: 2rem;
    font-size: 1.25rem;
    padding: 1rem 2rem;
    width: auto; 
}

.mobile-nav-overlay .btn-listen svg {
    width: 20px;
    height: 20px;
}



/* --- Hero Section --- */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
    background-color: var(--primary-color);
    background-image: radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.2) 0%, transparent 70%);
}

.hero-graphics-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none; 
}

.kinetic-text-graphic {
    font-size: clamp(6rem, 24vw, 22rem);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.02em;
    color: transparent;
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.08); 
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    user-select: none;
}

.frequency-wave {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' viewbox='0 0 1600 800' preserveAspectRatio='none'%3E%3Cpath d='M-200,400 C100,100 400,700 700,400 C1000,100 1300,700 1600,400 C1900,100 2200,700 2500,400' stroke='%23ffffff' stroke-width='4' fill='none' stroke-dasharray='15 15' opacity='0.4'/%3E%3Cpath d='M-200,400 C0,600 200,200 400,400 C600,600 800,200 1000,400 C1200,600 1400,200 1600,400 C1800,600 2000,200 2200,400' stroke='%23111111' stroke-width='2' fill='none' opacity='0.08'/%3E%3C/svg%3E");
    background-size: cover;
    background-position: center;
}

.hero-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 10; 
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #111111;
    color: #ffffff;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 204, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 204, 0, 0); }
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: #111111;
}

.hero-description {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(17, 17, 17, 0.8);
    max-width: 700px;
    margin-bottom: 3rem;
    line-height: 1.6;
    font-weight: 500;
}

.btn-hero {
    background-color: #111111;
    color: var(--primary-color);
    padding: 1.25rem 2.5rem;
    border-radius: 50px;
    font-family: inherit; 
    font-weight: 800;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: none;
    cursor: pointer;
    width: 180px; 
}

.btn-hero .btn-text {
    display: inline-block;
    width: 44px;
    text-align: left;
}

.btn-hero:hover {
    background-color: #222222;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

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

/* --- Global Hover States for Cards --- */
.track-card, .news-card, .reel-card, .show-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s ease;
    will-change: transform;
}

/* --- Recently Played --- */
.scroller {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scrollbar-width: none; 
    -webkit-overflow-scrolling: touch;
    padding-top: 1rem;
    padding-bottom: 2rem;
    margin-top: -1rem;
}

.scroller::-webkit-scrollbar {
    display: none; 
}

.track-item {
    flex: 0 0 200px; 
    width: 200px;
}

.track-item:hover .track-card {
    transform: translateY(-8px);
}

.track-img-wrap {
    width: 200px;
    height: 200px;
    margin-bottom: 1rem;
}

.track-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md); 
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
}

.track-item:hover .track-img {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

.track-title {
    font-weight: 700;
    font-size: 1.1rem;
}

.track-artist {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- Local News --- */
.news-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.news-item {
    display: block;
    flex: 1 1 calc(33.333% - 1.34rem);
    min-width: 320px; 
    height: auto;
}

.news-card {
    background: var(--surface-color);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid transparent; 
}

.news-item:hover .news-card {
    transform: translateY(-8px); 
    border-color: var(--border-color);
    box-shadow: 0 16px 32px rgba(0,0,0,0.06);
}

.news-img {
    height: 200px;
    width: 100%;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.news-content {
    padding: 1.5rem;
    flex-grow: 1; 
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.news-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* --- New Music (Reels Style) --- */
.reels-container {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    snap-type: x mandatory;
    scrollbar-width: none;
    padding-top: 1rem;
    padding-bottom: 2.5rem;
    margin-top: -1rem;
}

.reel-item {
    flex: 0 0 280px; 
    width: 280px;
    scroll-snap-align: start;
}

.reel-card {
    height: 500px;
    border-radius: var(--radius-lg);
    position: relative;
    cursor: pointer;
    background: #000;
}

.reel-item:hover .reel-card {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0,0,0,0.15);
}

.reel-video-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    opacity: 0.8;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.reel-item:hover .reel-video-placeholder {
    opacity: 1;
    transform: scale(1.03);
}

.reel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1.5rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: white;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.reel-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--text-main);
    font-size: 1.5rem;
}

.reel-item:hover .reel-play {
    opacity: 1;
}

.reel-title {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 0.25rem;
}

/* --- Our Shows --- */
.shows-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.show-item {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 300px;
    height: auto;
}

.show-card {
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    height: 100%;
}

.show-item:hover .show-card {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    background: var(--surface-color);
    box-shadow: 0 16px 32px rgba(0,0,0,0.05);
}

.show-time {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    min-width: 100px;
}

/* --- Footer --- */
footer {
    background-color: var(--text-main);
    color: white;
    padding: 4rem 0 4rem; 
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.footer-logo span { color: var(--primary-color); }

/* --- Floating Pill Player --- */
.sticky-player {
    position: fixed;
    bottom: calc(1.5rem + env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: rgba(17, 17, 17, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    z-index: 9999;
    padding: 0.6rem 1rem;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    transition: var(--transition);
}

.player-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.player-cover {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.player-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.player-song {
    color: white;
    font-weight: 800;
    font-size: 0.95rem;
    line-height: 1.2;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-artist {
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
}

.btn-player-toggle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    flex-shrink: 0;
}

.btn-player-toggle:hover {
    transform: scale(1.05);
    background-color: var(--primary-hover);
}

.btn-player-toggle svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* ==========================================================================
   Playlist Section Styles
   ========================================================================== */

.playlist-header-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.playlist-header-wrap h2 {
    margin-bottom: 0;
    line-height: 1.1;
}

.playlist-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.control-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modern-select-wrap {
    position: relative;
}

.modern-input {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--surface-color);
    border: 2px solid var(--border-color);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.8rem 2.5rem 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    min-width: 180px;
}

.modern-input:hover {
    border-color: #d1d1d1;
}

.modern-input:focus {
    border-color: var(--primary-color);
    background-color: var(--bg-color);
    box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.15);
}

/* Custom Dropdown Arrow */
.modern-select-wrap::after {
    content: "";
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Date picker specific fix */
input[type="date"].modern-input::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0; 
    position: absolute;
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

input[type="date"].modern-input + .modern-select-wrap::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='4' rx='2' ry='2'/%3E%3Cline x1='16' x2='16' y1='2' y2='6'/%3E%3Cline x1='8' x2='8' y1='2' y2='6'/%3E%3Cline x1='3' x2='21' y1='10' y2='10'/%3E%3C/svg%3E");
}

/* --- Track List Results --- */
.playlist-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.playlist-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem;
    background-color: var(--surface-color);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    will-change: transform, box-shadow, border-color;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.playlist-row:hover {
    transform: translateY(-4px);
    border-color: var(--border-color);
    background-color: var(--bg-color);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.playlist-time {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-color);
    min-width: 65px;
    text-align: right;
}

.playlist-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.playlist-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.playlist-title {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-main);
}

.playlist-artist {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.playlist-actions {
    display: flex;
    gap: 0.8rem;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.playlist-row:hover .playlist-actions {
    opacity: 1;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--border-color);
    transition: all 0.2s;
}

.action-btn svg {
    width: 18px;
    height: 18px;
}

.action-btn:hover {
    background-color: var(--primary-color);
    transform: scale(1.05);
}

/* ==========================================================================
   Schedule Section Styles
   ========================================================================== */

.schedule-header-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.schedule-header-wrap h2 {
    margin-bottom: 0;
    line-height: 1.1;
}

.schedule-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Form Controls (Overlaps with Playlist but includes schedule-specific tweaks) */
.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.control-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modern-select-wrap {
    position: relative;
}

.schedule-controls .modern-input {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--surface-color);
    border: 2px solid var(--border-color);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.8rem 2.5rem 0.8rem 1.2rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    min-width: 220px;
}

.schedule-controls .modern-input:hover {
    border-color: #d1d1d1;
}

.schedule-controls .modern-input:focus {
    border-color: var(--primary-color);
    background-color: var(--bg-color);
    box-shadow: 0 0 0 4px rgba(255, 204, 0, 0.15);
}

.schedule-controls .modern-select-wrap::after {
    content: "";
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111111' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* --- Schedule Row UI --- */
.schedule-results {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.show-row {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    padding: 2rem;
    background-color: var(--surface-color);
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    will-change: transform, box-shadow, border-color;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.show-row:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
    background-color: var(--bg-color);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

.show-time-block {
    min-width: 140px;
    text-align: right;
    border-right: 2px solid var(--border-color);
    padding-right: 2.5rem;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
}

.show-row:hover .show-time-block {
    border-color: var(--primary-color);
}

.show-time-block h3 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 0.2rem;
    line-height: 1;
}

.show-time-block p {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.show-presenter-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border: 4px solid var(--bg-color);
}

.show-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.show-title {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.show-presenter {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.show-description {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 600px;
}

/* ==========================================================================
   Global Header & Nav Updates (Overriding previous styles)
   ========================================================================== */

header {
    transition: background-color 0.3s ease, border-color 0.3s ease;
    z-index: 100000;
}

header.menu-open {
    background-color: var(--primary-color) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
}

header.menu-open .logo span {
    color: var(--text-main); 
}

header.menu-open .btn-listen {
    background-color: var(--text-main);
    color: var(--primary-color);
}

.mobile-nav-overlay {
    inset: 0;
    z-index: 99999;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   Single Post Styles
   ========================================================================== */

main.container {
    position: relative;
    z-index: 1;
}

.single-post-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 2.5rem;
}

.post-tag {
    display: inline-block;
    background: var(--primary-color);
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.author-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.author-text {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1rem;
}

.post-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.share-buttons {
    display: flex;
    gap: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--surface-color);
    color: var(--text-main);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.share-btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

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

.post-hero-img {
    width: 100%;
    height: clamp(300px, 50vh, 500px);
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.post-content {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #222;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem 0;
    color: var(--text-main);
}

.post-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.post-content blockquote {
    position: relative;
    padding: 1rem 0 1rem 3.5rem;
    margin: 3.5rem 0;
    font-size: 1.45rem;
    line-height: 1.5;
    font-weight: 700;
    color: var(--text-main);
    border: none;
    background: transparent;
    z-index: 1;
}

.post-content blockquote::before {
    content: '"';
    position: absolute;
    top: -1rem;
    left: 0;
    font-size: 6rem;
    color: var(--primary-color);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: -1;
    user-select: none;
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.post-content li {
    margin-bottom: 0.5rem;
}
/* ==========================================================================
   YouTube Lightbox
   ========================================================================== */

      .yt-lightbox-overlay {
            position: fixed; top: 0; left: 0; width: 100%; height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 99999;
            display: flex; justify-content: center; align-items: center;
        }
        .yt-lightbox-content {
            position: relative;
            width: 90%; max-width: 900px;
        }
        .yt-lightbox-close {
            position: absolute; top: -40px; right: 0;
            color: #fff; font-size: 35px; font-weight: bold;
            cursor: pointer; transition: color 0.3s;
        }
        .yt-lightbox-close:hover { color: #ccc; }
        .yt-video-container {
            position: relative;
            padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
            height: 0; overflow: hidden;
            background: #000; border-radius: 8px;
        }
        .yt-video-container iframe {
            position: absolute; top: 0; left: 0;
            width: 100%; height: 100%;
        }

/* ==========================================================================
   Recently Played
   ========================================================================== */

        /* 1. The Anchor: This keeps the absolute pill confined to the image area */
.track-img-wrap {
    position: relative; 
    display: block; 
    
    /* Make sure the wrapper has the border radius */
    border-radius: 12px; /* Change this to whatever your current radius is */
    overflow: hidden; 

    /* THE FIX: These properties force the browser to respect the border-radius during hover animations */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.track-img-wrap .track-img {
    display: block;
    width: 100%;
    height: auto;
    
    /* Optional: ensures the image takes the radius of the wrapper if needed */
    border-radius: inherit; 
}



/* 2. The Pill: Anchored to the top right of the photo */
.track-time-pill {
    position: absolute;
    top: 8px; /* Distance from the top of the photo */
    right: 8px; /* Distance from the right of the photo */
    
    /* Your requested colors */
    background-color: var(--primary-color);
    color: var(--text-main);
    
    /* Pill shape */
    border-radius: 999px; 
    padding: 4px 10px;
    
    /* Typography and layering */
    font-size: 12px;
    font-weight: 700;
    z-index: 10; /* Guarantees it floats above the image */
}

/* ==========================================================================
   Live Stream Page Layout
   ========================================================================== */

   /* Creates a responsive 16:9 box that prevents the bottom from cutting off */
/* 1. Basic responsive width, NO overflow:hidden here! */
.live-video-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* 2. Put the rounded corners and ratio directly on the Plyr container */
.live-video-wrapper .plyr {
    border-radius: 12px;
    overflow: hidden;
    /* This overrides theme heights that squash the player */
    height: auto !important; 
}

/* 3. Nuke any default WordPress margins pushing the video down (fixes the black bar) */
.live-video-wrapper .plyr video {
    margin: 0 !important;
    padding: 0 !important;
    top: 0 !important;
}

/* Force Plyr controls to sit ABOVE everything else */
.plyr__controls {
    z-index: 10 !important; 
}


.stream-container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Video Player Area */
.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    border-radius: var(--radius-lg);
    overflow: hidden; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    margin-bottom: 2rem;
}

/* Customizing Plyr Overrides */
.plyr {
    width: 100%;
    height: 100%;
}

.plyr--video .plyr__control--overlaid {
    color: var(--text-main);
    padding: 1.5rem;
}

.plyr--video .plyr__control--overlaid:hover,
.plyr--video .plyr__control--overlaid:focus {
    background: var(--primary-hover);
}

.live-badge-overlay {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    pointer-events: none;
}

.live-badge-overlay::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--live-red);
    border-radius: 50%;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(255, 59, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

/* Stream Meta Info */
.stream-title {
    font-size: clamp(2rem, 3vw, 2.5rem);
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.stream-presenter {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.stream-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

@media (max-width: 768px) {
    .post-content blockquote { padding: 1rem 0 1rem 2.5rem; font-size: 1.25rem; }
    .post-content blockquote::before { font-size: 4.5rem; top: -0.5rem; }
}

/* Schedule Responsive Adjustments */
@media (max-width: 768px) {
    .schedule-header-wrap { flex-direction: column; align-items: flex-start; }
    .schedule-controls { width: 100%; flex-direction: column; }
    .schedule-controls .modern-input { width: 100%; }
    
    .show-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }
    .show-time-block {
        border-right: none;
        border-bottom: 2px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 1.5rem;
        text-align: center;
        width: 100%;
    }
}



@media (max-width: 768px) {
    #playlist { min-height: 70vh; }
    .playlist-header-wrap { flex-direction: column; align-items: flex-start; }
    .playlist-controls { width: 100%; flex-direction: column; }
    .modern-input { width: 100%; }
    .playlist-actions { opacity: 1; } 
}

@media (max-width: 400px) {
    .playlist-row { gap: 1rem; padding: 1rem 0.5rem; }
    .playlist-img { width: 50px; height: 50px; }
    .playlist-time { font-size: 0.9rem; min-width: 50px; }
}

@media (max-width: 1024px) {
    .nav-links, .header-right .btn-listen { display: none; }
    .hamburger { display: flex; }
}

@media (max-width: 768px) {
    .hero { padding: 5rem 0; }
    .hero h1 { text-align: center; }
    .live-badge { margin-bottom: 1.5rem; }
    section { padding: 4rem 0; }
    .player-song { max-width: 150px; } 
}

@media (max-width: 400px) {
    .player-song { max-width: 110px; }
}