/* =============================================
   MOBILE-RESPONSIVE SCHEDULE & DJ PROFILES
   Optimized for all screen sizes
   ============================================= */

/* ===== BASE SECTION STYLES ===== */
.schedule-section {
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 1400px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

/* ===== SCHEDULE TITLE & DATE ===== */
.schedule-title {
    text-align: center;
    margin: 0 0 10px;
    font-size: clamp(24px, 5vw, 34px); /* Responsive font size */
    font-weight: 800;
    letter-spacing: -0.02em;
    padding: 0 10px;
}

.schedule-date {
    text-align: center;
    margin: 0 0 18px;
    font-size: clamp(14px, 3vw, 16px);
    padding: 0 10px;
}

/* ===== TABLE WRAPPER ===== */
.schedule-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    padding: 12px;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    position: relative;
}

/* Scroll indicator for mobile */
.schedule-table-wrap::after {
    content: '← Swipe to see more →';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(29, 185, 84, 0.9);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

@media (max-width: 820px) {
    .schedule-table-wrap::after {
        opacity: 1;
    }
    
    /* Hide scroll indicator after user scrolls */
    .schedule-table-wrap.scrolled::after {
        opacity: 0;
    }
}

/* ===== SCHEDULE TABLE ===== */
.schedule-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px; /* Minimum width before scrolling */
}

.schedule-table th,
.schedule-table td {
    padding: 14px 12px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.schedule-table thead th {
    font-size: 13px;
    letter-spacing: 0.3px;
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.04);
    position: sticky;
    top: 0;
    backdrop-filter: blur(8px);
    z-index: 10;
}

.schedule-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.schedule-row.is-now {
    box-shadow: inset 4px 0 0 #1db954;
}

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.10);
    white-space: nowrap;
}

.badge.now {
    background: rgba(29, 185, 84, 0.18);
    border-color: rgba(29, 185, 84, 0.35);
    color: #86efac;
}

.schedule-empty {
    text-align: center;
    padding: 18px;
    color: rgba(255, 255, 255, 0.75);
}

.badge-finished {
    background: #6b7280; /* gray */
    opacity: 0.85;
}
.badge-upnext {
    background: #3b82f6; /* blue */
}

/* ===== REMIND BUTTON ===== */
.remind-btn {
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    white-space: nowrap;
}

.reminder-set {
    background-color: #4CAF50 !important;
    color: white !important;
    font-weight: 600;
    cursor: not-allowed;
}

/* ===== NOW PLAYING LABEL ===== */
.now-playing-label {
    position: absolute;
    top: 15px;
    right: 15px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
}

/* ===== TOAST NOTIFICATION SYSTEM ===== */
#toast-container {
    position: fixed !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 999999 !important;
    pointer-events: none !important;
    max-width: 90% !important;
}

.toast-notification {
    background: rgba(29, 185, 84, 0.95) !important;
    color: white !important;
    padding: 14px 24px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-align: center !important;
    white-space: nowrap !important;
    opacity: 0 !important;
    transform: translateY(20px) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}

.toast-notification.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ===== DARK MODE STYLES ===== */
body.live-dark .schedule-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)) !important;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

body.live-dark .schedule-section h2,
body.live-dark .about-section h2 {
    color: rgba(255, 255, 255, 0.92) !important;
}

body.live-dark .schedule-section p {
    color: rgba(255, 255, 255, 0.70) !important;
}

body.live-dark .schedule-title {
    color: rgba(255, 255, 255, 0.92) !important;
}

body.live-dark .schedule-date {
    color: rgba(255, 255, 255, 0.70) !important;
}

body.live-dark .schedule-table-wrap {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.30);
}

body.live-dark .schedule-table td {
    color: rgba(255, 255, 255, 0.90);
}

body.live-dark .remind-btn {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
}

body.live-dark .remind-btn:hover {
    background: rgba(255, 255, 255, 0.18);
}

body.live-dark .reminder-set {
    background: rgba(29, 185, 84, 0.95) !important;
    color: #06140b !important;
}

/* ===== DJ SECTION ===== */
.dj-section {
    padding: 40px 20px;
    margin: 20px auto;
    max-width: 1400px;
}

/* FORCE center for DJ heading + subtitle */
.dj-section-head{
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dj-section-head .dj-subtitle{
  width: 100%;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}


.dj-section h2 {
    margin: 0;
    font-size: clamp(20px, 4.5vw, 30px);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.dj-subtitle {
    margin: 10px 0 0;
    max-width: 560px;
    color: rgba(255, 255, 255, 0.70);
    font-size: clamp(12px, 2.5vw, 14px);
    line-height: 1.4;
    text-align: center;
    width: 100%;
}

.dj-panel {
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

/* ===== DJ GRID (Responsive) ===== */
.team-grid {
    display: flex;
    gap: 18px;
    padding: 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.team-grid::-webkit-scrollbar {
    height: 8px;
}

.team-grid::-webkit-scrollbar-thumb {
    background: rgba(29, 185, 84, 0.6);
    border-radius: 10px;
}

.team-grid::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

/* Prevent cards from shrinking */
.dj-card {
    flex: 0 0 200px; /* Fixed width per DJ card */
}


/* ===== DJ CARD ===== */
.dj-card {
    position: relative;
    overflow: hidden;
    padding: 18px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    text-align: center;
}

.dj-card:hover {
    transform: translateY(-4px);
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
}

body.live-dark .dj-card {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.30);
}

/* ===== DJ AVATAR ===== */
.dj-avatar-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 14px;
}

.dj-avatar,
.dj-avatar-fallback {
    width: clamp(70px, 15vw, 92px);
    height: clamp(70px, 15vw, 92px);
    border-radius: 999px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
    background: rgba(255, 255, 255, 0.06);
}

.dj-avatar {
    object-fit: cover;
    display: block;
    width: 100%;
    height: 100%;
}

.dj-avatar-fallback {
    font-size: clamp(32px, 7vw, 46px);
}

body.live-dark .dj-avatar,
body.live-dark .dj-avatar-fallback {
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35), 0 0 0 6px rgba(29, 185, 84, 0.06);
}

/* ===== DJ INFO ===== */
.dj-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.dj-name {
    margin: 0;
    color: #fff;
    font-size: clamp(14px, 3vw, 16px);
    font-weight: 800;
    letter-spacing: -0.01em;
    word-break: break-word;
    line-height: 1.3;
}

body.live-dark .dj-name {
    color: rgba(255, 255, 255, 0.92) !important;
}

.dj-role {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: clamp(10px, 2vw, 12px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

body.live-dark .dj-role {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.92);
}

.dj-role-muted {
    opacity: 0.7;
}

/* ===== ON AIR BADGE ===== */
.on-air-badge {
    position: absolute;
    top: 0;
    right: 0;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    background: #1db954;
    color: #fff;
    border-bottom-left-radius: 12px;
    border-top-right-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    z-index: 10;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 1.4s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.4);
        opacity: 0.6;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

body.live-dark .about-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)) !important;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}

.dj-empty {
    background: rgba(255, 255, 255, 0.06);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.75);
    padding: 20px;
    text-align: center;
}

/* =============================================
   TABLET BREAKPOINT (768px - 1024px)
   ============================================= */
@media (max-width: 1024px) {
    .schedule-section,
    .dj-section {
        padding: 30px 15px;
        margin: 15px auto;
    }

    .team-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
        padding: 15px;
    }

    .dj-card {
        padding: 16px 14px;
    }
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}

/* =============================================
   TABLET BREAKPOINT (max-width: 820px)
   Keep table layout, make it scrollable
   ============================================= */
@media (max-width: 820px) {
    /* Keep table layout, just make it scrollable */
    .schedule-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .schedule-table {
        min-width: 900px; /* Force horizontal scroll */
    }

    /* Slightly smaller padding */
    .schedule-table th,
    .schedule-table td {
        padding: 12px 10px;
        font-size: 13px;
    }

    /* DJ Grid - 3 columns on tablets */
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        padding: 15px;
    }

    .dj-section {
        padding: 30px 15px;
        margin: 15px auto;
    }

    .dj-panel {
        padding: 12px;
    }

    .dj-card {
        padding: 16px 14px;
    }

    .on-air-badge {
        padding: 5px 10px;
        font-size: 10px;
    }
}

/* =============================================
   SMALL MOBILE (max-width: 600px)
   ============================================= */
@media (max-width: 600px) {
    .schedule-section,
    .dj-section {
        padding: 15px 8px;
        margin: 10px 5px;
    }

    .schedule-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .schedule-date {
        font-size: 13px;
        margin-bottom: 15px;
    }

    .schedule-table-wrap {
        padding: 6px;
        border-radius: 10px;
    }

    .schedule-table {
        min-width: 750px;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .schedule-table thead th {
        font-size: 11px;
        padding: 10px 6px;
    }

    .schedule-table td strong {
        font-size: 13px;
    }

    .col-time { white-space: nowrap; }
    .col-program { min-width: 140px; }
    .col-dj { min-width: 100px; }
    .col-status { min-width: 80px; }
    .col-action { min-width: 110px; }

    .badge { padding: 4px 8px; font-size: 10px; }

    .remind-btn {
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 6px;
    }

    /* ===== DJ COMPACT MOBILE ===== */
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        padding: 8px;
    }

    .dj-panel {
        padding: 8px;
        border-radius: 12px;
    }

    .dj-card {
        padding: 10px 8px;
        border-radius: 12px;
    }

    .dj-section h2 { font-size: 18px; }
    .dj-subtitle { font-size: 11px; }

    .on-air-badge {
        padding: 3px 7px;
        font-size: 8px;
        gap: 3px;
    }

    .pulse-dot { width: 5px; height: 5px; }

    .dj-avatar-wrap { margin-bottom: 8px; }

    .dj-avatar,
    .dj-avatar-fallback {
        width: 52px;
        height: 52px;
    }

    .dj-avatar-fallback { font-size: 24px; }

    .dj-info { gap: 4px; }

    .dj-name { font-size: 12px; }

    .dj-role {
        padding: 3px 8px;
        font-size: 9px;
        margin-top: 2px;
    }

    /* Stars compact */
    .dj-rating { margin-top: 6px; gap: 3px; }
    .star-btn { font-size: 1.05rem; padding: 0; }
    .rating-avg { font-size: 0.68rem; }
    .rating-votes { font-size: 0.6rem; }
    .rating-summary { gap: 0.2rem; }
}

/* =============================================
   EXTRA SMALL MOBILE (max-width: 420px)
   Single column layout for DJs
   ============================================= */
@media (max-width: 420px) {
    .schedule-section,
    .dj-section {
        padding: 10px 5px;
        margin: 6px 3px;
        border-radius: 10px;
    }

    .schedule-title { font-size: 17px; }
    .dj-section h2 { font-size: 16px; }
    .dj-subtitle { font-size: 10px; }

    .schedule-table { min-width: 650px; }

    .schedule-table th,
    .schedule-table td {
        padding: 6px 4px;
        font-size: 11px;
    }

    .schedule-table thead th {
        font-size: 10px;
        padding: 8px 4px;
    }

    .schedule-table td strong { font-size: 12px; }

    .col-program { min-width: 120px; }
    .col-dj { min-width: 90px; }
    .col-action { min-width: 100px; }

    .badge { padding: 3px 6px; font-size: 9px; }
    .remind-btn { padding: 5px 8px; font-size: 10px; }

    /* ===== DJ ULTRA COMPACT ===== */
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
        padding: 6px;
    }

    .dj-panel { padding: 6px; border-radius: 10px; }

    .dj-card {
        padding: 8px 6px;
        border-radius: 10px;
    }

    .dj-avatar-wrap { margin-bottom: 6px; }

    .dj-avatar,
    .dj-avatar-fallback {
        width: 44px;
        height: 44px;
    }

    .dj-avatar-fallback { font-size: 20px; }

    .dj-info { gap: 3px; }
    .dj-name { font-size: 11px; }

    .dj-role {
        padding: 2px 6px;
        font-size: 8px;
        margin-top: 1px;
    }

    .on-air-badge {
        padding: 2px 6px;
        font-size: 7px;
    }

    /* Stars ultra compact */
    .dj-rating { margin-top: 4px; gap: 2px; }
    .star-btn { font-size: 0.95rem; padding: 0; }
    .rating-avg { font-size: 0.62rem; }
    .rating-votes { font-size: 0.55rem; }
    .rating-summary { gap: 0.15rem; }
}

/* =============================================
   LANDSCAPE MOBILE OPTIMIZATION
   ============================================= */
@media (max-width: 900px) and (orientation: landscape) {
    .schedule-section,
    .dj-section {
        padding: 20px 15px;
    }

    .team-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .dj-avatar,
    .dj-avatar-fallback {
        width: 65px;
        height: 65px;
    }

    .dj-avatar-fallback {
        font-size: 30px;
    }

    .dj-card {
        padding: 12px 10px;
    }

    .dj-name {
        font-size: 13px;
    }

    .dj-role {
        padding: 5px 8px;
        font-size: 10px;
    }
}

/* =============================================
   ACCESSIBILITY & TOUCH IMPROVEMENTS
   ============================================= */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    .remind-btn {
        min-height: 44px;
        padding: 12px 20px;
    }

    .dj-card {
        min-height: 200px;
    }
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
    .schedule-section {
        box-shadow: none;
        border: 1px solid #ccc;
    }

    .remind-btn {
        display: none;
    }

    .on-air-badge {
        background: #000;
        color: #fff;
    }
}
/* =============================================
   DJ STAR RATING SYSTEM
   ============================================= */

.dj-rating {
    margin-top: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    animation: starsFadeIn 0.5s ease both;
    animation-delay: 0.15s;
}

.star-group {
    display: flex;
    gap: 0.1rem;
    position: relative;
}

.star-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.55rem;
    color: #3a3a3a;
    padding: 0.05rem 0.1rem;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.2s ease;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.star-btn:hover:not(:disabled) {
    color: #ffd700;
    transform: scale(1.35) rotate(-5deg);
    filter: drop-shadow(0 0 6px rgba(255,215,0,0.7));
}

.star-btn.active { color: #ffd700; filter: drop-shadow(0 0 4px rgba(255,215,0,0.4)); }
.star-btn.rated  { color: #ffd700; cursor: default; filter: drop-shadow(0 0 5px rgba(255,200,0,0.5)); }
.star-btn:disabled:not(.rated) { color: #3a3a3a; cursor: default; transform: none; filter: none; }

@keyframes starPop {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.6) rotate(10deg); }
    55%  { transform: scale(0.85) rotate(-5deg); }
    75%  { transform: scale(1.2) rotate(3deg); }
    100% { transform: scale(1) rotate(0deg); }
}
.star-btn.pop { animation: starPop 0.5s cubic-bezier(0.34,1.56,0.64,1) forwards; }

@keyframes starBurst {
    0%   { opacity:1; transform:scale(0.5); }
    80%  { opacity:0.4; transform:scale(2.2); }
    100% { opacity:0; transform:scale(2.6); }
}
.star-btn::after {
    content:''; position:absolute; inset:0; border-radius:50%;
    background: radial-gradient(circle,rgba(255,215,0,0.6) 0%,transparent 70%);
    opacity:0; pointer-events:none;
}
.star-btn.burst::after { animation: starBurst 0.45s ease-out forwards; }

.rating-summary {
    display: flex; align-items: center; gap: 0.35rem;
    font-size: 0.78rem; color: rgba(255,255,255,0.5);
}
.rating-avg {
    font-weight: 700; font-size: 0.85rem; color: #ffd700;
    text-shadow: 0 0 8px rgba(255,215,0,0.4); transition: all 0.4s ease;
}
@keyframes avgPulse {
    0%{transform:scale(1);} 40%{transform:scale(1.25);} 100%{transform:scale(1);}
}
.rating-avg.updated { animation: avgPulse 0.5s ease forwards; }
.rating-votes { font-size: 0.73rem; color: rgba(255,255,255,0.38); }

@keyframes thankYouFade {
    0%  { opacity:0; transform:translateX(-50%) translateY(4px) scale(0.9); }
    20% { opacity:1; transform:translateX(-50%) translateY(0) scale(1.05); }
    80% { opacity:1; transform:translateX(-50%) translateY(0) scale(1); }
    100%{ opacity:0; transform:translateX(-50%) translateY(-4px) scale(0.95); }
}
.rating-thankyou {
    position:absolute; bottom:-1.8rem; left:50%; transform:translateX(-50%);
    background: linear-gradient(135deg,#ffd700,#ff9500); color:#000;
    font-size:0.68rem; font-weight:700; padding:3px 10px; border-radius:20px;
    white-space:nowrap; pointer-events:none;
    animation: thankYouFade 2s ease forwards; z-index:10;
}

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

/* Touch tap area */
@media (hover: none) and (pointer: coarse) {
    .star-btn {
        min-width: 28px; min-height: 28px;
        display: inline-flex; align-items: center; justify-content: center;
    }
}