/* Radio Modart - Main Stylesheet */

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for Theming */
:root {
    --primary-color: #000000;
    --text-color: #ffffff;
    --accent-color: #ffff00;
    --secondary-color: #333333;
    --background-secondary: #1a1a1a;
    --border-color: #444444;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s ease;
    /* --border-radius is now set dynamically in main.php layout */
}

/* Light Theme Variables */
.light-theme {
    --primary-color: #ffffff;
    --text-color: #333333;
    --accent-color: #ffaa00;
    --secondary-color: #f5f5f5;
    --background-secondary: #f9f9f9;
    --border-color: #e0e0e0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.15);
}

/* Base Typography */
body {
    font-family: var(--font-primary, 'Helvetica Neue', Helvetica, Arial, sans-serif);
    font-size: var(--font-size-base, 16px);
    line-height: var(--line-height-base, 1.6);
    font-weight: var(--font-weight-base, 400);
    letter-spacing: var(--letter-spacing-base, 0);
    background-color: var(--primary-color);
    color: var(--text-color);
    transition: var(--transition);
    margin-bottom: 120px; /* Space for audio player */
    /* Ensure seamless flow between elements */
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--accent-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid var(--accent-color);
    background: transparent;
    color: var(--accent-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

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

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    opacity: 0.9;
}

.btn-secondary {
    color: var(--text-color);
    /* Modern fluent design - no borders */
}

.btn-secondary:hover {
    background: var(--text-color);
    color: var(--primary-color);
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    /* Modern fluent design - no borders */
}

.light-theme .header {
    background: rgba(255, 255, 255, 0.95);
}

.navbar {
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .brand-link {
    display: inline-block;
    transition: var(--transition);
}

.nav-brand .brand-link:hover {
    transform: scale(1.05);
}

.nav-brand .logo {
    height: var(--logo-height-desktop, 40px);
    width: auto;
    transition: var(--transition);
}

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 0;
}

/* Logo responsive sizing */
@media (max-width: 768px) {
    .nav-brand .logo {
        height: var(--logo-height-mobile, 32px);
    }
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

.nav-link.active,
.nav-link:hover {
    color: var(--accent-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.theme-icon {
    transition: var(--transition);
    font-size: 1.1rem;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.light-theme .mobile-menu-toggle:hover {
    background: rgba(0, 0, 0, 0.1);
}

.mobile-menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    transform-origin: center;
}

.mobile-menu-toggle.active span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.mobile-menu-toggle.active span:last-child {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Main Content */
.main-content {
    padding-top: 80px; /* Header height */
    min-height: calc(100vh - 80px);
    /* Ensure seamless connection to footer */
    margin-bottom: 0;
}

/* Sections */
.section {
    padding: 4rem 0;
    background: var(--primary-color); /* Ensure consistent background */
}

/* Page Headers - Consistent across all pages */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--background-secondary) 100%);
    padding: 4rem 0 3rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    margin-top: -80px; /* Negative margin to connect with fixed header */
    padding-top: calc(4rem + 80px); /* Add header height to top padding */
}

.page-title {
    color: var(--accent-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-subtitle {
    color: var(--text-color);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Page Header Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    /* DJ Page Specific Fix - Only for DJ page */
    .page-header-djs {
        padding-top: calc(3rem + 80px);
        padding-bottom: 2rem;
        margin-top: 0;
        position: relative;
        z-index: 1;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 1.75rem;
    }
    
    /* DJ Page Specific Fix - Mobile phones */
    .page-header-djs {
        padding-top: calc(2.5rem + 80px);
        padding-bottom: 1.5rem;
        margin-top: 0;
        position: relative;
        z-index: 1;
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    color: var(--accent-color);
    margin: 0;
}

.view-all {
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--accent-color);
}

/* Hero Section */
.hero {
    padding: 7.2rem 0; /* 20% increase from 6rem */
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    position: relative;
    overflow: hidden;
    min-height: 600px; /* Increased height for better banner display */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, var(--accent-color)20 0%, transparent 70%);
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--text-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.hero-buttons,
.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.live-program {
    margin-top: 3rem;
    padding: 1.5rem;
    background: var(--background-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.live-indicator {
    color: #ff4444;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.program-info h3 {
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.program-info p,
.program-info small {
    margin: 0;
    opacity: 0.8;
}

/* Program Banner Hero Styles - Full Coverage */
.program-banner-full {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.program-banner-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Mobile specific banner handling */
@media (max-width: 768px) {
    .program-banner-full img.desktop-banner {
        display: none;
    }
    
    .program-banner-full img.mobile-banner {
        display: block;
    }
}

@media (min-width: 769px) {
    .program-banner-full img.mobile-banner {
        display: none;
    }
    
    .program-banner-full img.desktop-banner {
        display: block;
    }
}

/* Mobile specific banner handling for custom hero (default banners) */
@media (max-width: 768px) {
    .custom-hero-full img.desktop-banner {
        display: none;
    }
    
    .custom-hero-full img.mobile-banner {
        display: block;
    }
}

@media (min-width: 769px) {
    .custom-hero-full img.mobile-banner {
        display: none;
    }
    
    .custom-hero-full img.desktop-banner {
        display: block;
    }
}



/* Program Hero without Banner */
.program-no-banner {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.program-no-banner .live-indicator {
    background: #ff4444;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: calc(var(--border-radius) * 2.5);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.program-no-banner .program-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0 0 1rem 0;
    background: linear-gradient(45deg, var(--text-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.program-no-banner .program-host {
    font-size: 1.3rem;
    margin: 0 0 0.5rem 0;
    opacity: 0.8;
}

.program-no-banner .program-time {
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
    opacity: 0.7;
    font-weight: 500;
}

.program-no-banner .program-description {
    font-size: 1.2rem;
    margin: 0 0 2rem 0;
    opacity: 0.8;
    line-height: 1.6;
}

/* Program hero section - using custom hero styling */
.program-hero-section {
    text-align: center;
    margin-bottom: 2rem;
}

.program-hero-section .hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0 0 1rem 0;
    background: linear-gradient(45deg, var(--text-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -1px;
}

.program-hero-section .hero-subtitle {
    font-size: 1.3rem;
    margin: 0;
    opacity: 0.8;
    line-height: 1.4;
}

/* Compact program info section */
.program-info-compact {
    text-align: center;
}

/* Live indicator - default badge styles */
.live-indicator-compact {
    font-weight: 600;
    font-size: 1rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Badge style (default) */
.live-indicator-compact.live-indicator-badge,
.live-indicator-compact:not(.live-indicator-text) {
    background: #ff4444;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: calc(var(--border-radius) * 2);
}

/* Text style - uses theme colors */
.live-indicator-compact.live-indicator-text {
    background: none;
    color: var(--accent-color);
    padding: 0;
    border-radius: 0;
    font-weight: 700;
    font-size: 1rem;
}

.live-indicator-above {
    margin-bottom: 0.4rem;
}

.live-indicator-left {
    margin-right: 0.5rem;
    margin-bottom: 0;
}

/* Text style positioning adjustments */
.live-indicator-text.live-indicator-above {
    margin-bottom: 0.3rem;
}

.live-indicator-text.live-indicator-left {
    margin-right: 0.4rem;
}

.program-title-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    margin-bottom: 0.3rem;
}

/* Ensure left-positioned elements stay on the same line */
.program-title-wrapper:has(.live-indicator-left) {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
}

.program-title-compact {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

/* When site title/description are enabled, make program name slightly bigger */
.program-info-compact:has(.program-hero-section) .program-title-compact {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* When site title/description enabled + text style live indicator */
.program-info-compact:has(.program-hero-section) .program-title-wrapper:has(.live-indicator-text) .program-title-compact {
    font-size: 1.1rem;
}

/* When live indicator is on the left, match its size */
.program-title-wrapper:has(.live-indicator-left) .program-title-compact {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* When site title enabled + left positioned, make program name slightly bigger */
.program-info-compact:has(.program-hero-section) .program-title-wrapper:has(.live-indicator-left) .program-title-compact {
    font-size: 1rem;
    font-weight: 700;
}

/* When site title enabled + left positioned + text style */
.program-info-compact:has(.program-hero-section) .program-title-wrapper:has(.live-indicator-left.live-indicator-text) .program-title-compact {
    font-size: 1rem;
}

/* Fallback for browsers without :has() support */
.program-title-left-aligned {
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.program-title-wrapper-left {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: baseline !important;
}

/* When site title/description are disabled, make program info bigger (like main title) */
.program-info-compact:not(:has(.program-hero-section)) .program-title-compact {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.program-info-compact:not(:has(.program-hero-section)) .live-indicator-compact {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
}

.program-info-compact:not(:has(.program-hero-section)) .live-indicator-compact.live-indicator-badge,
.program-info-compact:not(:has(.program-hero-section)) .live-indicator-compact:not(.live-indicator-text) {
    padding: 0.6rem 1.2rem;
    border-radius: calc(var(--border-radius) * 3);
}

.program-info-compact:not(:has(.program-hero-section)) .live-indicator-compact.live-indicator-text {
    font-size: 1.2rem;
}

/* When both no site info AND left positioned, still match sizes but bigger */
.program-info-compact:not(:has(.program-hero-section)) .program-title-wrapper:has(.live-indicator-left) .program-title-compact {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Fallback classes for browsers without :has() support */
.program-info-with-site-title .program-title-compact {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.program-info-with-site-title.program-text-style .program-title-compact {
    font-size: 1.1rem !important;
}

.program-info-with-site-title.program-title-left-aligned {
    font-size: 1rem !important;
    font-weight: 700 !important;
}

.program-info-with-site-title.program-text-style.program-title-left-aligned {
    font-size: 1rem !important;
}

.program-info-no-site-title .program-title-compact {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    margin-bottom: 1rem !important;
}

.program-info-no-site-title .live-indicator-compact {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.2rem !important;
}

.program-info-no-site-title .live-indicator-compact.live-indicator-badge,
.program-info-no-site-title .live-indicator-compact:not(.live-indicator-text) {
    padding: 0.6rem 1.2rem !important;
    border-radius: calc(var(--border-radius) * 3) !important;
}

.program-info-no-site-title .live-indicator-compact.live-indicator-text {
    font-size: 1.2rem !important;
}

.program-info-no-site-title.program-title-left-aligned {
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

.program-meta-compact {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
}

.program-host-compact,
.program-time-compact {
    font-size: 0.95rem;
    opacity: 0.8;
    font-weight: 500;
}

.program-host-compact::after {
    content: "•";
    margin-left: 1rem;
    opacity: 0.6;
}

.program-host-compact:last-child::after {
    display: none;
}

.program-description-compact {
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

/* Ensure proper spacing for program info when buttons are disabled */
.program-info-compact:not(:has(.hero-actions)) {
    padding-bottom: 1rem;
}

/* Alternative method for browsers that don't support :has() */
.program-info-compact {
    padding-bottom: 1rem;
}

.program-info-compact .hero-actions {
    margin-top: 1.5rem;
    padding-bottom: 0;
}

/* Program banner overlay for displaying info over banner images */
.program-banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    padding: 4rem 2rem 2rem;
    z-index: 2;
}

.program-banner-content {
    max-width: 800px;
    margin: 0 auto;
}

/* Override hero styles for banner overlay */
.program-banner-overlay .program-hero-section .hero-title {
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

.program-banner-overlay .program-hero-section .hero-subtitle {
    color: white;
}

.program-banner-overlay .program-title-compact {
    color: white;
}

.program-banner-overlay .program-host-compact,
.program-banner-overlay .program-time-compact {
    color: white;
}

.program-banner-overlay .program-description-compact {
    color: white;
}

/* Custom Hero Styles - Full Cover Like Program Banners */
.custom-hero-full {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.custom-hero-full img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.custom-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.custom-hero-overlay .custom-hero-content {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

.light-theme .custom-hero-overlay .custom-hero-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: var(--text-color);
}

/* Custom Hero without Image - Text Only */
.custom-hero-text {
    position: relative;
    text-align: center;
    padding: 3rem 0;
}

.custom-hero-text .custom-hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}



/* Events Section */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Latest Events - Homepage */
.events-grid-latest {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    background: var(--background-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.event-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

/* Latest Events Card Styles */
.event-card-latest {
    background: var(--background-secondary);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.event-card-latest:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

/* Dynamic Events Layout Styles */
.events-grid-latest {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Specific grid layouts for different event counts */
.events-grid-latest.events-count-1 {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
}

.events-grid-latest.events-count-2 {
    grid-template-columns: repeat(2, 1fr);
}

.events-grid-latest.events-count-3 {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
    gap: 1.5rem;
}

.events-grid-latest.events-count-4 {
    grid-template-columns: repeat(2, 1fr);
}

.events-grid-latest.events-count-6 {
    grid-template-columns: repeat(3, 1fr);
}

/* Maximum width constraint for very wide screens */
@media (min-width: 1400px) {
    .events-grid-latest.events-count-3 {
        grid-template-columns: repeat(3, minmax(300px, 400px));
        justify-content: center;
    }
}

/* Responsive adjustments for specific counts */
@media (max-width: 1200px) {
    .events-grid-latest.events-count-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .events-grid-latest.events-count-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .events-grid-latest.events-count-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .events-grid-latest.events-count-2,
    .events-grid-latest.events-count-3,
    .events-grid-latest.events-count-4,
    .events-grid-latest.events-count-6 {
        grid-template-columns: 1fr;
    }
    
    /* Fix mobile event image cropping - ensure images are not cropped */
    .event-image-latest {
        height: auto; /* Allow container to adapt to image height */
        min-height: 200px; /* Minimum height for consistency */
    }
    
    .event-image-latest img {
        width: 100%;
        height: auto; /* Preserve aspect ratio, no cropping */
        object-fit: contain; /* Show full image without cropping */
        object-position: center; /* Center the image */
        max-height: 300px; /* Prevent extremely tall images */
    }
    
    /* For list style on mobile, also prevent cropping */
    .event-card-latest.list-style .event-image-latest {
        width: 100%; /* Full width on mobile */
        min-width: auto; /* Remove fixed width */
        height: auto; /* Adaptive height */
        max-height: 200px; /* Reasonable max height */
    }
    
    .event-card-latest.list-style {
        flex-direction: column; /* Stack image and content vertically on mobile */
    }
}

/* Responsive grid adjustments for better event display */
@media (min-width: 1200px) {
    .events-grid-latest {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .events-grid-latest {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.events-list-latest {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}



/* Event Card Style Variations */
.event-card-latest.grid-style {
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.event-card-latest.list-style {
    display: flex;
    flex-direction: row;
    min-height: 150px;
    max-width: 100%;
}

.event-card-latest.list-style .event-image-latest {
    width: 200px;
    min-width: 200px;
    height: 150px;
}

.event-card-latest.list-style .event-content-latest {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}



/* Text-only event cards (when images are hidden) */
.event-card-latest.grid-style:not(:has(.event-image-latest)) {
    min-height: 200px;
    justify-content: center;
}

.event-card-latest.list-style:not(:has(.event-image-latest)) {
    min-height: 120px;
}



/* Enhanced content styling for text-only cards */
.event-card-latest:not(:has(.event-image-latest)) .event-content-latest {
    text-align: center;
    padding: 2rem 1.5rem;
}

.event-card-latest.list-style:not(:has(.event-image-latest)) .event-content-latest {
    text-align: left;
    padding: 1.5rem;
}

.event-image-latest {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.event-image-latest img {
    width: 100%;
    height: auto; /* Preserve aspect ratio */
    display: block;
    transition: var(--transition);
}

.event-card-latest:hover .event-image-latest img {
    transform: scale(1.05);
}

.event-content-latest {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: calc(var(--border-radius) * 2.5);
    font-size: 0.8rem;
    font-weight: 600;
}

.event-content {
    padding: 1.5rem;
}

.event-date {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.event-time {
    margin-left: 1rem;
    opacity: 0.8;
}

.event-title {
    margin-bottom: 0.75rem;
}

.event-title a {
    color: var(--text-color);
    transition: var(--transition);
}

.event-title a:hover {
    color: var(--accent-color);
}

.event-description {
    opacity: 0.8;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.event-location {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Program Schedule Section - Consistent with other pages */
.schedule-section {
    background: var(--primary-color);
}

.live-status {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.status-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.status-program {
    font-weight: 500;
    color: var(--accent-color);
    font-size: 1rem;
}

.schedule-tabs {
    margin-top: 2rem;
}

.tab-buttons {
    display: flex;
    background: transparent;
    padding: 0;
    margin: 0 0 2rem 0;
    gap: 0;
    justify-content: stretch;
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-bottom: 1px solid var(--border-color);
}

.tab-buttons::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    text-align: center;
    flex: 1;
    outline: none;
}

.tab-btn:focus {
    outline: none;
    box-shadow: none;
}

.tab-btn:hover {
    color: var(--text-color);
}

.tab-btn.active {
    color: var(--accent-color);
    font-weight: 600;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color);
}

.tab-content {
    background: transparent;
    min-height: 300px;
}

.tab-pane {
    display: none;
    padding: 0;
}

.tab-pane.active {
    display: block;
}

.programs-list {
    display: flex;
    flex-direction: column;
}

.program-item {
    display: flex;
    align-items: flex-start;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.program-item:last-child {
    border-bottom: none;
}

.program-item:hover {
    background: var(--background-secondary);
}

.program-item.current-live {
    background: rgba(255, 255, 0, 0.1);
    border-left: 4px solid var(--accent-color);
}

.program-time {
    font-weight: 600;
    color: var(--accent-color);
    min-width: 120px;
    font-size: 0.9rem;
    line-height: 1.4;
    padding-top: 0.1rem;
}

.program-details {
    flex: 1;
    margin-left: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.program-host {
    font-size: 0.85rem;
    color: var(--text-color);
    font-weight: 600;
    opacity: 0.8;
    margin-bottom: 0.25rem;
    line-height: 1.2;
    min-height: 1rem;
}

.program-title {
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
}

/* When host is empty or hidden, ensure title aligns with time */
.program-host:empty {
    margin-bottom: 0;
    min-height: 0;
}

.program-host:empty + .program-title {
    margin-top: 0.1rem;
}

/* When hosts are disabled via settings, align title with time */
.program-details:not(:has(.program-host)) .program-title {
    margin-top: 0.1rem;
}

/* Fallback for browsers without :has() support */
.program-details.no-host .program-title {
    margin-top: 0.1rem !important;
}

.no-programs {
    padding: 2rem;
    text-align: center;
    color: var(--text-color);
    opacity: 0.6;
    font-style: italic;
}

/* Program Link Styles */
.program-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
}

.program-link:hover {
    transform: translateY(-1px);
}

.program-link:hover .program-item {
    background: var(--background-secondary);
}

.program-link:hover .compact-program {
    background: var(--background-secondary);
}

.current-program-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: var(--transition);
}

.current-program-link:hover {
    transform: translateY(-2px);
}

.current-program-link:hover .current-program-card {
    background: var(--background-secondary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Admin Programs Display Styles */
.display-options-section {
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.display-options-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--accent-color);
}

.display-options-header p {
    margin: 0 0 1rem 0;
    opacity: 0.8;
    font-size: 0.9rem;
}

.style-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.style-option {
    position: relative;
    cursor: pointer;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: var(--transition);
    background: var(--background-secondary);
}

.style-option:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.style-option.active {
    border-color: var(--accent-color);
    background: rgba(255, 255, 0, 0.1);
}

.style-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.option-icon {
    font-size: 2rem;
}

.option-text strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.option-text small {
    color: var(--text-color);
    opacity: 0.7;
    font-size: 0.8rem;
}

/* Admin Tabs Display */
.programs-tabs-container {
    margin-top: 1rem;
}

.admin-tabs .tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.admin-tabs .tab-btn {
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    font-size: 0.9rem;
}

.admin-tabs .tab-btn:hover {
    background: var(--primary-color);
    border-color: var(--accent-color);
}

.admin-tabs .tab-btn.active {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.admin-tabs .count {
    opacity: 0.7;
    font-size: 0.8rem;
}

.admin-tabs .tab-pane {
    display: none;
}

.admin-tabs .tab-pane.active {
    display: block;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1rem;
}

.program-card {
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: var(--transition);
}

.program-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.program-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.program-header h4 {
    margin: 0;
    color: var(--accent-color);
    flex: 1;
}

.program-status {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.featured-badge {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
}

.program-details p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.program-description {
    opacity: 0.8;
    font-style: italic;
}

.program-actions {
    margin-top: 1rem;
    display: flex;
    gap: 0.5rem;
}

/* Admin List Display */
.programs-list-container {
    margin-top: 1rem;
}

.day-section {
    margin-bottom: 2rem;
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: var(--background-secondary);
    border-bottom: 1px solid var(--border-color);
}

.day-header h3 {
    margin: 0;
    color: var(--accent-color);
}

.program-count {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.day-programs {
    padding: 0;
}

.program-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.program-list-item:last-child {
    border-bottom: none;
}

.program-list-item:hover {
    background: var(--background-secondary);
}

.program-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.program-info h4 {
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

.program-info .program-host {
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

/* When hosts are disabled via settings, align title with time in programs page */
.program-info:not(:has(.program-host)) h4 {
    margin-top: 0.1rem;
}

/* Fallback for browsers without :has() support */
.program-info.no-host h4 {
    margin-top: 0.1rem !important;
}

.program-list-item .program-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.program-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.program-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-right: 1rem;
}

.program-list-item .program-actions {
    display: flex;
    gap: 0.25rem;
    margin: 0;
}

/* Admin Compact Display */
.programs-compact-container {
    margin-top: 1rem;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.compact-program-card {
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    transition: var(--transition);
    position: relative;
}

.compact-program-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.compact-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.compact-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
    flex: 1;
    padding-right: 0.5rem;
}

.compact-status {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.featured-star {
    font-size: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-color);
}

.status-dot.status-active {
    background: #4ade80;
}

.status-dot.status-inactive {
    background: #f87171;
}

.compact-details {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.compact-time {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.25rem;
}

.compact-host {
    opacity: 0.8;
    margin-bottom: 0.25rem;
}

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

.compact-info h5 {
    margin: 0 0 0.25rem 0;
    line-height: 1.4;
}

/* When hosts are disabled via settings, align title with time in compact view */
.compact-info:not(:has(.compact-host)) h5 {
    margin-top: 0.1rem;
}

/* Fallback for browsers without :has() support */
.compact-info.no-host h5 {
    margin-top: 0.1rem !important;
}

.compact-days {
    font-size: 0.75rem;
    opacity: 0.7;
}

.compact-actions {
    display: flex;
    gap: 0.25rem;
}

.btn-xs {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    min-height: auto;
}

/* Responsive Design for Admin Views */
@media (max-width: 768px) {
    .style-options {
        grid-template-columns: 1fr;
    }
    
    .programs-grid {
        grid-template-columns: 1fr;
    }
    
    .compact-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .program-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .program-badges {
        margin-right: 0;
    }
    
    .admin-tabs .tab-buttons {
        flex-wrap: wrap;
    }
}

/* Schedule Display Modes */
.schedule-display {
    margin-top: 2rem;
}

/* List View Styles */
.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.day-section {
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.day-section.current-day {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color);
}

.day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: var(--background-secondary);
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.day-name {
    color: var(--text-color);
}

.current-indicator {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
}



/* Compact View Styles */
.schedule-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.schedule-days-1 .schedule-compact {
    grid-template-columns: 1fr;
}

.schedule-days-3 .schedule-compact {
    grid-template-columns: repeat(3, 1fr);
}

.compact-day {
    background: var(--primary-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.compact-day:hover {
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.compact-day.current-day {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 1px var(--accent-color);
}

.compact-day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--background-secondary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.current-badge {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.compact-programs {
    padding: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.compact-program {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 4px;
    transition: var(--transition);
    margin-bottom: 0.25rem;
}

.compact-program:hover {
    background: var(--background-secondary);
}

.compact-program.current-live {
    background: rgba(255, 255, 0, 0.1);
    border: 1px solid var(--accent-color);
}

.compact-time {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    min-width: 50px;
    line-height: 1.4;
    padding-top: 0.05rem;
}

.compact-title {
    font-size: 0.8rem;
    color: var(--text-color);
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    white-space: nowrap;
}

.no-programs-compact {
    padding: 1rem;
    text-align: center;
    color: var(--text-color);
    opacity: 0.6;
    font-style: italic;
    font-size: 0.8rem;
}

/* 1-Day View Enhancements */
.schedule-days-1 .tab-buttons {
    justify-content: center;
    width: 100%;
}

.schedule-days-1 .tab-btn {
    flex: 1;
    text-align: center;
    padding: 1.25rem 1rem;
    font-size: 1rem;
    min-width: 0;
}

.schedule-days-1 .schedule-list .day-section {
    margin-bottom: 1rem;
}

.schedule-days-1 .day-header {
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
}

/* 3-Day View Enhancements */
.schedule-days-3 .tab-buttons {
    justify-content: center;
    width: 100%;
}

.schedule-days-3 .tab-btn {
    flex: 1;
    text-align: center;
    padding: 1.25rem 1rem;
    font-size: 1rem;
    min-width: 0; /* Allow tabs to shrink evenly */
}

.schedule-days-3 .schedule-list .day-section {
    margin-bottom: 1rem;
}

.schedule-days-3 .day-header {
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
}

/* Responsive Design for Schedule Views */
@media (max-width: 768px) {
    .schedule-compact {
        grid-template-columns: 1fr;
    }
    
    .schedule-days-1 .schedule-compact {
        grid-template-columns: 1fr;
    }
    
    .schedule-days-3 .schedule-compact {
        grid-template-columns: 1fr;
    }
    
    .tab-buttons {
        gap: 0;
        justify-content: stretch;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tab-btn {
        min-width: 100px;
        font-size: 0.9rem;
        padding: 0.8rem 1rem;
        flex: 1;
    }
    
    .compact-day-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}



/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-icon {
    font-size: 1.5rem;
    width: 50px;
    text-align: center;
}

.contact-details h4 {
    margin-bottom: 0.25rem;
    color: var(--accent-color);
}

.contact-cta {
    text-align: center;
    padding: 2rem;
    background: var(--background-secondary);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.contact-cta h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.contact-cta p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

/* Audio Player */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.audio-player.hidden {
    transform: translateY(100%);
}

.audio-player.active {
    transform: translateY(0);
}

.light-theme .audio-player {
    background: rgba(255, 255, 255, 0.95);
}

.player-container {
    display: flex;
    align-items: center;
    padding: 1rem 2rem;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.now-playing {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 0;
}

.track-info {
    flex: 1;
    min-width: 0;
}

.track-title {
    font-weight: 600;
    color: var(--accent-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artist {
    font-size: 0.9rem;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.track-artwork {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius);
    overflow: hidden;
    flex-shrink: 0;
}

.track-artwork img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.play-pause-btn {
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.2rem;
}

.play-pause-btn:hover {
    transform: scale(1.1);
}

.play-pause-btn .pause-icon {
    display: none;
}

.play-pause-btn.playing .play-icon {
    display: none;
}

.play-pause-btn.playing .pause-icon {
    display: inline;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-btn {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0.5rem;
    transition: var(--transition);
}

.volume-btn:hover {
    color: var(--accent-color);
}

.volume-slider {
    width: 80px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.quality-selector select {
    background: var(--background-secondary);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.5rem;
    cursor: pointer;
}

.minimize-btn {
    background: none;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: var(--border-radius);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.minimize-btn:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

/* Program Banner */
.program-banner {
    position: fixed;
    bottom: 120px;
    left: 20px;
    max-width: 300px;
    background: var(--background-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    z-index: 999;
    box-shadow: var(--shadow);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.program-banner.show {
    transform: translateX(0);
}

.program-banner a {
    display: block;
    text-decoration: none;
    color: inherit;
}

.program-banner img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.banner-info {
    padding: 1rem;
}

.program-title {
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.program-host {
    font-size: 0.9rem;
    opacity: 0.8;
}

.banner-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--primary-color);
    /* Removed border for fluent design */
    padding: 3rem 0 1rem;
    margin-top: 0; /* Remove any default margin */
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    opacity: 1;
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-links a:hover {
    transform: scale(1.2);
}

.footer-custom-text {
    margin-top: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    /* Removed border for cleaner look */
    opacity: 0.7;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 968px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .live-status {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tab-buttons {
        flex-wrap: nowrap; /* Keep tabs in one row */
        overflow-x: auto; /* Allow horizontal scrolling if needed */
    }
    
    .tab-btn {
        font-size: 0.8rem;
        padding: 0.8rem 0.5rem;
        min-width: 80px; /* Smaller minimum width for mobile */
        flex-shrink: 0; /* Prevent tabs from shrinking too much */
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .events-grid-latest {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .player-container {
        padding: 1rem;
        gap: 1rem;
    }
    
    .now-playing {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .track-artwork {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(15px);
        border-top: 1px solid var(--border-color);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        z-index: 999;
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    
    .light-theme .nav-menu {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        display: block;
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 0.5rem 0;
        gap: 0;
    }
    
    .nav-link {
        display: block;
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: relative;
        transition: all 0.2s ease;
        font-weight: 500;
    }
    
    .light-theme .nav-link {
        border-bottom-color: rgba(0, 0, 0, 0.1);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.05);
        padding-left: 2rem;
        transform: translateX(0);
    }
    
    .light-theme .nav-link:hover {
        background: rgba(0, 0, 0, 0.05);
    }
    
    /* Remove the active underline on mobile and replace with full-width highlight */
    .nav-link.active::after {
        display: none;
    }
    
    .nav-link.active {
        background: rgba(255, 255, 0, 0.1);
        color: var(--accent-color);
        font-weight: 600;
    }
    
    .nav-link.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 4px;
        background: var(--accent-color);
    }
    
    /* Add staggered animation for menu items */
    .nav-menu.active .nav-link {
        animation: slideInFromLeft 0.3s ease forwards;
        opacity: 0;
        transform: translateX(-20px);
    }
    
    .nav-menu.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active .nav-link:nth-child(2) { animation-delay: 0.2s; }
    .nav-menu.active .nav-link:nth-child(3) { animation-delay: 0.3s; }
    .nav-menu.active .nav-link:nth-child(4) { animation-delay: 0.4s; }
    .nav-menu.active .nav-link:nth-child(5) { animation-delay: 0.5s; }
    .nav-menu.active .nav-link:nth-child(6) { animation-delay: 0.6s; }
    
    @keyframes slideInFromLeft {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
    
    /* Add backdrop overlay for mobile menu */
    .nav-menu.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .hero {
        min-height: 400px; /* Smaller height for mobile */
        padding: 4rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons,
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .program-no-banner .program-title {
        font-size: 2.5rem;
    }
    
    .program-hero-section .hero-title {
        font-size: 2.5rem;
    }
    
    .program-hero-section .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .program-title-compact {
        font-size: 1.4rem;
    }
    
    /* When site title/description enabled, keep program name slightly bigger on mobile */
    .program-info-compact:has(.program-hero-section) .program-title-compact {
        font-size: 1rem;
    }
    
    .program-info-compact:has(.program-hero-section) .program-title-wrapper:has(.live-indicator-text) .program-title-compact {
        font-size: 1rem;
    }
    
    .program-info-compact:has(.program-hero-section) .program-title-wrapper:has(.live-indicator-left) .program-title-compact {
        font-size: 0.9rem;
    }
    
    .program-info-compact:has(.program-hero-section) .program-title-wrapper:has(.live-indicator-left.live-indicator-text) .program-title-compact {
        font-size: 0.9rem;
    }
    
    /* When site title/description disabled, maintain bigger size on mobile */
    .program-info-compact:not(:has(.program-hero-section)) .program-title-compact {
        font-size: 2rem;
    }
    
    .program-info-compact:not(:has(.program-hero-section)) .live-indicator-compact {
        font-size: 1rem;
    }
    
    /* Fallback for browsers without :has() support */
    .program-info-with-site-title .program-title-compact {
        font-size: 1rem !important;
    }
    
    .program-info-with-site-title.program-text-style .program-title-compact {
        font-size: 1rem !important;
    }
    
    .program-info-with-site-title.program-title-left-aligned {
        font-size: 0.9rem !important;
    }
    
    .program-info-with-site-title.program-text-style.program-title-left-aligned {
        font-size: 0.9rem !important;
    }
    
    .program-info-no-site-title .program-title-compact {
        font-size: 2rem !important;
    }
    
    .program-info-no-site-title .live-indicator-compact {
        font-size: 1rem !important;
    }
    
    .program-title-wrapper {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    /* On mobile, keep left positioned elements inline (horizontal) */
    .program-title-wrapper:has(.live-indicator-left) {
        flex-direction: row;
        align-items: baseline;
        justify-content: center;
        gap: 0;
    }
    
    .program-title-wrapper:has(.live-indicator-left) .program-title-compact {
        font-size: 0.9rem;
        text-align: center;
    }
    
    .live-indicator-compact {
        font-size: 0.9rem;
    }
    
    /* No site info + left positioned on mobile */
    .program-info-compact:not(:has(.program-hero-section)) .program-title-wrapper:has(.live-indicator-left) .program-title-compact {
        font-size: 1.2rem;
    }
    
    /* Fallback classes for mobile */
    .program-title-left-aligned {
        font-size: 0.9rem !important;
        text-align: left !important;
    }
    
    .program-title-wrapper-left {
        flex-direction: row !important;
        align-items: baseline !important;
        justify-content: center !important;
        gap: 0 !important;
    }
    
    .program-info-no-site-title.program-title-left-aligned {
        font-size: 1.2rem !important;
    }
    
    .live-indicator-left {
        margin-right: 0;
        margin-bottom: 0.2rem;
    }
    
    .program-meta-compact {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .program-host-compact::after {
        display: none;
    }
    
    .program-banner-overlay {
        padding: 2rem 1rem 1.5rem;
    }
    
    .program-no-banner,
    .no-program-hero {
        padding: 1rem;
    }
    
    .section {
        padding: 2rem 0;
    }
}

/* Color input specific styles */
.color-input {
    height: 45px;
    padding: 5px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
}

.color-input::-webkit-color-swatch-wrapper {
    padding: 0;
}

.color-input::-webkit-color-swatch {
    border: none;
    border-radius: 4px;
}
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .events-grid,
    .events-grid-latest {
        grid-template-columns: 1fr;
    }
    
    .current-next-programs {
        gap: 1rem;
    }
    
    .player-container {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .player-controls {
        justify-content: center;
    }
    
    .program-banner {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Print Styles */
@media print {
    .header,
    .audio-player,
    .program-banner,
    .hero-buttons {
        display: none;
    }
    
    .main-content {
        padding-top: 0;
    }
    
    body {
        margin-bottom: 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 4px 6px rgba(0, 0, 0, 0.8);
        --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.9);
    }
    
    .btn {
        border-width: 3px;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
select:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Loading animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Navigation Loading States */
.navigation-loading {
    pointer-events: none;
}

.navigation-loading .main-content {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

#navigationLoader {
    animation: loadingProgress 2s infinite;
}

@keyframes loadingProgress {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(0%); }
    100% { transform: translateX(100%); }
}

/* Enhance audio player persistence */
.audio-player {
    position: fixed !important;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--background-secondary);
    border-top: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Ensure main content doesn't overlap with player */
.main-content {
    padding-bottom: 80px; /* Space for audio player */
}

/* Smooth transitions for content updates */
.main-content {
    transition: opacity 0.2s ease;
}

.navigation-loading .main-content {
    opacity: 0.8;
}

/* DJs Section Styles */
.djs-section {
    background: var(--background-secondary);
    border-top: 1px solid var(--border-color);
}

.djs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.dj-card-home {
    background: var(--primary-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.dj-card-home:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.dj-image-home {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.dj-photo-home {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.dj-card-home:hover .dj-photo-home {
    transform: scale(1.05);
}

.dj-placeholder-home {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
}

.featured-badge-home {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 193, 7, 0.9);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    backdrop-filter: blur(10px);
}

.dj-info-home {
    padding: 1.25rem;
    flex-grow: 1;
}

.dj-name-home {
    color: var(--accent-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.dj-title-home {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.dj-specialties-home {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.specialty-tag-home {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: calc(var(--border-radius) / 2);
    font-size: 0.8rem;
    font-weight: 500;
}

/* Responsive Design for DJs Section */
@media (max-width: 768px) {
    .djs-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .dj-image-home {
        height: 150px;
    }
    
    .dj-info-home {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .djs-grid {
        grid-template-columns: 1fr;
    }
    
    .dj-image-home {
        height: 180px;
    }
    
    /* Enhanced mobile event image handling for very small screens */
    .event-image-latest {
        min-height: 150px; /* Smaller minimum height for small screens */
    }
    
    .event-image-latest img {
        max-height: 250px; /* Reduce max height for very small screens */
    }
    
    .event-content-latest {
        padding: 1rem; /* Reduce padding for small screens */
    }
} /* Modern Fluent Design Updates - Remove Borders */

/* Remove card borders */
.card, .program-card, .event-card, .dj-card {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Remove form borders (frontend only, not admin) - EXCLUDE CONTACT FORM */
.form-control:not(.form-input):not(.form-textarea):not(.form-select), 
.main-content input:not(.form-input):not(.form-textarea):not(.form-select):not(.contact-form input), 
.main-content textarea:not(.form-input):not(.form-textarea):not(.form-select):not(.contact-form textarea), 
.main-content select:not(.form-input):not(.form-textarea):not(.form-select):not(.contact-form select) {
    border: none !important;
    background: var(--background-secondary);
    border-radius: var(--border-radius);
}

/* Ensure contact form inputs are NOT affected by the fluent design border removal */
.contact-form input,
.contact-form textarea,
.contact-form select {
    border: 2px solid var(--border-color) !important;
    background: var(--background-secondary) !important;
    color: var(--text-color) !important;
    width: 100% !important; /* Ensure full width */
    box-sizing: border-box !important; /* Include padding in width */
}

/* Light theme contact form styling */
body.light-theme .contact-form input,
body.light-theme .contact-form textarea,
body.light-theme .contact-form select {
    border: 2px solid #d1d5db !important;
    background: #ffffff !important;
    color: #1f2937 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .contact-form input:hover,
body.light-theme .contact-form textarea:hover {
    border-color: #9ca3af !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

body.light-theme .contact-form input:focus,
body.light-theme .contact-form textarea:focus {
    border-color: var(--accent-color) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(255, 170, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Remove button borders */
.btn, button {
    border: none !important;
}

/* Remove table borders */
.table, .table td, .table th {
    border: none !important;
}

/* Modern Tab styling - no borders, no focus outlines */
.tab-btn {
    border: none !important;
    background: transparent !important;
    outline: none !important;
}

.tab-btn:hover {
    background: transparent !important;
    color: var(--text-color) !important;
}

.tab-btn:focus {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.tab-btn.active {
    background: transparent !important;
    color: var(--accent-color) !important;
}

.tab-content {
    border: none !important;
    background: transparent !important;
}

/* Remove focus outlines globally for all interactive elements */
button:focus,
a:focus,
.nav-link:focus,
.btn:focus,
input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    box-shadow: none !important;
}

/* Remove program item borders */
.program-item {
    border-bottom: none !important;
}

/* Remove modal borders */
.modal-content {
    border: none !important;
}

/* Remove navigation borders */
.nav-link {
    border: none !important;
}

/* Remove accordion borders */
.accordion-item {
    border: none !important;
}

/* Remove list borders */
.list-group-item {
    border: none !important;
}

/* Remove admin panel borders */
.admin-card {
    border: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Remove dropdown borders */
.dropdown-menu {
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Modern fluent hover effects */
.card:hover, .program-card:hover, .event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    border: none !important;
}

/* Remove header/footer borders and gaps */
.header, .footer {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

/* Remove gaps above footer */
body {
    margin-bottom: 80px; /* Only space for audio player */
}

/* Ensure yayın akışı page background matches others */
.schedule-section, .current-program-section, .program-detail-section {
    background: var(--primary-color);
}

/* Remove any section borders */
section, .section {
    border: none !important;
    border-top: none !important;
    border-bottom: none !important;
}

/* Page header borders are handled in main page-header styles above */

/* Homepage Cards View Styles */
.schedule-cards {
    margin-top: 2rem;
}

.schedule-cards .day-section {
    margin-bottom: 2.5rem;
}

.schedule-cards .day-header {
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.schedule-cards .day-header .day-name::before {
    content: "📅 ";
    margin-right: 0.5rem;
}

.schedule-cards .current-indicator {
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: calc(var(--border-radius) * 1.875);
    font-size: 0.75rem;
    font-weight: 600;
}

.schedule-cards .programs-cards-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 1rem;
}

.schedule-cards .programs-cards-grid.cards-per-row-2 {
    grid-template-columns: repeat(2, 1fr);
}

.schedule-cards .programs-cards-grid.cards-per-row-3 {
    grid-template-columns: repeat(3, 1fr);
}

.schedule-cards .program-card {
    position: relative;
    aspect-ratio: 16/10;
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--background-secondary);
    border: 2px solid var(--border-color);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    cursor: pointer;
}

.schedule-cards .program-card:hover {
    transform: translateY(-2px) scale(1.005);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.schedule-cards .program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--accent-color);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    z-index: 1;
}

.schedule-cards .program-card:hover::before {
    opacity: 0.1;
}

.schedule-cards .program-card.current-live {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 255, 0, 0.3);
}

.schedule-cards .program-card.current-live:hover {
    box-shadow: 0 12px 24px rgba(255, 255, 0, 0.35);
}

.schedule-cards .card-banner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.schedule-cards .banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.schedule-cards .program-card:hover .banner-image {
    transform: scale(1.02);
    filter: brightness(0.9);
}

.schedule-cards .banner-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--background-secondary) 100%);
    color: var(--text-color);
    text-align: center;
    padding: 1rem;
}

.schedule-cards .placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.schedule-cards .placeholder-title {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    opacity: 0.9;
}

.schedule-cards .live-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: calc(var(--border-radius) * 2.5);
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    z-index: 10;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 20px rgba(255, 255, 0, 0.4);
    animation: livePulse 3s infinite;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.schedule-cards .program-card:hover .live-badge {
    transform: scale(1.03);
    box-shadow: 0 6px 18px rgba(255, 255, 0, 0.5);
}

@keyframes livePulse {
    0%, 100% { 
        box-shadow: 0 6px 20px rgba(255, 255, 0, 0.4);
    }
    50% { 
        box-shadow: 0 8px 30px rgba(255, 255, 0, 0.7);
    }
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Modern Card Overlay - Hover-Only Information */
.schedule-cards .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.7) 70%,
        rgba(0, 0, 0, 0.9) 100%
    );
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    z-index: 5;
    backdrop-filter: blur(8px);
}

/* Light Theme Card Overlay */
.light-theme .schedule-cards .card-overlay {
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0.9) 70%,
        rgba(255, 255, 255, 0.95) 100%
    );
}

.schedule-cards .program-card:hover .card-overlay {
    opacity: 1;
}

.schedule-cards .card-overlay-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    transform: translateY(8px) scale(0.98);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
}

.schedule-cards .program-card:hover .card-overlay-content {
    transform: translateY(0) scale(1);
}

.schedule-cards .card-overlay .card-time {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    margin-bottom: auto;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Light Theme Time Text */
.light-theme .schedule-cards .card-overlay .card-time {
    color: var(--accent-color);
    text-shadow: none;
}

.schedule-cards .card-overlay .card-title {
    margin: 1rem 0 0.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.2;
    color: white;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

/* Light Theme Title Text */
.light-theme .schedule-cards .card-overlay .card-title {
    color: var(--text-color);
    text-shadow: none;
}

.schedule-cards .card-overlay .card-host {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Light Theme Host Text */
.light-theme .schedule-cards .card-overlay .card-host {
    color: var(--text-secondary);
    text-shadow: none;
}

.schedule-cards .card-overlay .host-icon {
    font-size: 0.8rem;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6));
}

/* Light Theme Host Icon */
.light-theme .schedule-cards .card-overlay .host-icon {
    filter: none;
}

.schedule-cards .card-overlay .card-action {
    margin-top: 1rem;
}

.schedule-cards .card-overlay .card-link {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    border-radius: calc(var(--border-radius) * 1.5);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Light Theme Button */
.light-theme .schedule-cards .card-overlay .card-link {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.15);
    text-shadow: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.schedule-cards .card-overlay .card-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 0, 0.25);
    text-shadow: none;
}

/* Light Theme Button Hover */
.light-theme .schedule-cards .card-overlay .card-link:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 0, 0.25);
    text-shadow: none;
}

.schedule-cards .no-programs-cards {
    grid-column: 1 / -1;
    text-align: center;
    padding: 2.5rem 1.5rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    border: 2px dashed var(--border-color);
}

.schedule-cards .no-programs-cards .no-programs-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.schedule-cards .no-programs-cards p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Homepage Cards Responsive */
@media (max-width: 768px) {
    .schedule-cards .programs-cards-grid.cards-per-row-2,
    .schedule-cards .programs-cards-grid.cards-per-row-3 {
        grid-template-columns: 1fr;
    }
    
    .schedule-cards .program-card {
        aspect-ratio: 16/9;
    }
    
    .schedule-cards .card-overlay {
        padding: 1rem;
    }
    
    .schedule-cards .card-overlay .card-title {
        font-size: 1.1rem;
    }
    
    .schedule-cards .card-overlay .card-time {
        font-size: 0.8rem;
    }
    
    .schedule-cards .card-overlay .card-host {
        font-size: 0.85rem;
    }
    
    .schedule-cards .card-overlay .card-link {
        padding: 0.7rem 1.25rem;
        font-size: 0.8rem;
    }
    
    .schedule-cards .day-header {
        font-size: 1.2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .schedule-cards .card-banner {
        height: 100px;
    }
    
    .schedule-cards .card-content {
        padding: 0.875rem;
    }
    
    .schedule-cards .card-title {
        font-size: 0.95rem;
    }
    
    .schedule-cards .day-header {
        font-size: 1.1rem;
    }
}