/**
 * EZ Streaming Module Frontend Stylesheet
 * Premium glassmorphic styling for monthly calendar view and replay archive.
 */

:root {
    --ez-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Dark Theme Palette */
    --ez-bg-dark: #0f172a;
    --ez-card-bg-dark: rgba(30, 41, 59, 0.7);
    --ez-border-dark: rgba(255, 255, 255, 0.06);
    --ez-text-primary-dark: #f8fafc;
    --ez-text-secondary-dark: #94a3b8;
    
    /* Light Theme Palette */
    --ez-bg-light: #f8fafc;
    --ez-card-bg-light: rgba(255, 255, 255, 0.85);
    --ez-border-light: rgba(0, 0, 0, 0.06);
    --ez-text-primary-light: #0f172a;
    --ez-text-secondary-light: #475569;
}

/* Global Reset & Container */
.ez-streaming-container {
    font-family: var(--ez-font-family);
    max-width: 1200px;
    margin: 30px auto;
    padding: 24px;
    border-radius: 16px;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ------------------------------------------------------------------
   THEME STYLES (DARK/LIGHT)
   ------------------------------------------------------------------ */
.ez-streaming-container.ez-dark-theme {
    background-color: var(--ez-bg-dark) !important;
    color: var(--ez-text-primary-dark) !important;
}

/* Force headings inside the dark theme container to stay white/light gray */
.ez-streaming-container.ez-dark-theme h1,
.ez-streaming-container.ez-dark-theme h2,
.ez-streaming-container.ez-dark-theme h3,
.ez-streaming-container.ez-dark-theme h4,
.ez-streaming-container.ez-dark-theme h5,
.ez-streaming-container.ez-dark-theme h6 {
    color: var(--ez-text-primary-dark) !important;
}
.ez-streaming-container.ez-dark-theme .ez-calendar-grid-wrapper {
    border-color: var(--ez-border-dark);
}
.ez-streaming-container.ez-dark-theme .ez-calendar-day-cell {
    background: #0f172a;
}
.ez-streaming-container.ez-dark-theme .ez-calendar-day-cell.ez-inactive-day {
    background: rgba(15, 23, 42, 0.4);
}
.ez-streaming-container.ez-dark-theme .ez-calendar-day-cell.ez-today-cell {
    background: rgba(30, 41, 59, 0.6);
}
.ez-streaming-container.ez-dark-theme .ez-replay-card {
    background: var(--ez-card-bg-dark);
    border: 1px solid var(--ez-border-dark);
}
.ez-streaming-container.ez-dark-theme .ez-tab-btn {
    color: var(--ez-text-secondary-dark) !important;
    background: transparent !important;
    border-bottom: 2px solid transparent !important;
}
.ez-streaming-container.ez-dark-theme .ez-tab-btn:hover {
    color: var(--ez-text-primary-dark) !important;
}
.ez-streaming-container.ez-dark-theme .ez-tab-btn.active {
    color: var(--ez-accent-color) !important;
    border-bottom: 2px solid var(--ez-accent-color) !important;
}
.ez-streaming-container.ez-dark-theme .ez-mobile-agenda-day-title {
    background: rgba(30, 41, 59, 0.4);
    border-bottom: 1px solid var(--ez-border-dark);
    color: #fff;
}
.ez-streaming-container.ez-dark-theme .ez-mobile-agenda-event-card {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.ez-streaming-container.ez-light-theme {
    background-color: var(--ez-bg-light);
    color: var(--ez-text-primary-light);
}
.ez-streaming-container.ez-light-theme .ez-calendar-grid-wrapper {
    border-color: var(--ez-border-light);
    background: rgba(0, 0, 0, 0.02);
}
.ez-streaming-container.ez-light-theme .ez-calendar-days-header {
    background: rgba(0, 0, 0, 0.03);
    color: var(--ez-text-secondary-light);
}
.ez-streaming-container.ez-light-theme .ez-calendar-day-cell {
    background: #ffffff;
}
.ez-streaming-container.ez-light-theme .ez-calendar-day-cell.ez-inactive-day {
    background: rgba(0, 0, 0, 0.02);
    opacity: 0.5;
}
.ez-streaming-container.ez-light-theme .ez-calendar-day-cell.ez-today-cell {
    background: rgba(0, 0, 0, 0.04);
}
.ez-streaming-container.ez-light-theme .ez-replay-card {
    background: var(--ez-card-bg-light);
    border: 1px solid var(--ez-border-light);
}
.ez-streaming-container.ez-light-theme .ez-tab-btn {
    color: var(--ez-text-secondary-light);
    border-bottom: 2px solid transparent;
}
.ez-streaming-container.ez-light-theme .ez-tab-btn:hover {
    color: var(--ez-text-primary-light);
}
.ez-streaming-container.ez-light-theme .ez-mobile-agenda-day-title {
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid var(--ez-border-light);
    color: #000;
}
.ez-streaming-container.ez-light-theme .ez-mobile-agenda-event-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ------------------------------------------------------------------
   STREAMER BANNER PROFILE
   ------------------------------------------------------------------ */
.ez-streamer-banner {
    position: relative;
    border-radius: 14px;
    padding: 35px 30px;
    margin-bottom: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(var(--ez-accent-color-rgb), 0.7) 0%, #090d16 100%) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    border: none !important;
    /* Fix browser subpixel rendering / black border bug on rounded corners with overflow: hidden */
    transform: translateZ(0);
    will-change: transform;
    background-clip: padding-box;
    -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.ez-banner-glass {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Removed backdrop-filter to prevent subpixel black border outline rendering bug in WebKit/Blink */
    z-index: 1;
}
.ez-streamer-profile {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 30px;
}
.ez-avatar-wrap {
    position: relative;
    width: 100px;
    height: 100px;
    flex-shrink: 0;
}
.ez-streamer-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ez-accent-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.ez-streamer-avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, #334155, #0f172a);
    border: 3px solid var(--ez-accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ez-streamer-avatar-placeholder span {
    font-size: 44px;
    width: 44px;
    height: 44px;
    color: #cbd5e1;
}

/* Live Badges */
.ez-live-pulse-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 10px;
    letter-spacing: 1px;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
    animation: ezLivePulse 1.8s infinite;
}
.ez-offline-badge {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: #64748b;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
}
.ez-pulse-text {
    color: #ef4444;
    font-weight: 700;
    animation: ezTextFade 2.5s infinite;
}

@keyframes ezLivePulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
@keyframes ezTextFade {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.ez-streamer-info {
    flex-grow: 1;
}
.ez-streamer-name {
    margin: 0 0 8px 0;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
}
.ez-streamer-bio {
    margin: 0 0 16px 0;
    font-size: 14px;
    color: #e2e8f0;
    line-height: 1.5;
}
.ez-streamer-socials {
    display: flex;
    gap: 12px;
}
.ez-social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    color: #fff !important;
    text-decoration: none;
}
.ez-social-link:hover {
    transform: translateY(-3px);
    background: var(--ez-accent-color);
    box-shadow: 0 4px 12px rgba(var(--ez-accent-color-rgb), 0.3);
}
.ez-social-link span {
    font-size: 20px;
    width: 20px;
    height: 20px;
}
.ez-social-link.ez-youtube:hover { background-color: #ef4444; }
.ez-social-link.ez-facebook:hover { background-color: #1877f2; }
.ez-social-link.ez-twitch:hover { background-color: #9146ff; }
.ez-social-link.ez-tiktok:hover { background-color: #000; border: 1px solid #22d3ee; }

/* ------------------------------------------------------------------
   TABS HEADERS
   ------------------------------------------------------------------ */
.ez-streaming-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ez-tab-btn {
    background: transparent;
    border: none;
    padding: 12px 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    outline: none;
}
.ez-tab-btn span {
    font-size: 20px;
    width: 20px;
    height: 20px;
}
.ez-tab-btn.active {
    color: var(--ez-accent-color) !important;
    border-bottom: 2px solid var(--ez-accent-color) !important;
}

/* Tab panes animations */
.ez-tab-pane {
    display: none;
}
.ez-tab-pane.active {
    display: block;
    animation: ezFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ezFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ------------------------------------------------------------------
   FRONTEND MONTHLY CALENDAR GRID
   ------------------------------------------------------------------ */
.ez-frontend-calendar-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ez-timetable-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 5px;
}
.ez-timetable-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
}

/* Month navigation buttons */
.ez-calendar-nav {
    display: flex;
    gap: 6px;
}
.ez-calendar-nav-btn {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #f8fafc !important;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.ez-light-theme .ez-calendar-nav-btn {
    background: rgba(0, 0, 0, 0.04) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    color: var(--ez-text-primary-light) !important;
}
.ez-calendar-nav-btn:hover {
    background: var(--ez-accent-color) !important;
    color: #fff !important;
    border-color: var(--ez-accent-color) !important;
}
.ez-calendar-nav-btn.today {
    background: rgba(var(--ez-accent-color-rgb), 0.15) !important;
    border-color: rgba(var(--ez-accent-color-rgb), 0.25) !important;
    color: var(--ez-accent-color) !important;
}
.ez-calendar-nav-btn.today:hover {
    background: var(--ez-accent-color);
    color: #fff;
}

.ez-calendar-grid-wrapper {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.2);
}

.ez-calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: rgba(15, 23, 42, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    color: var(--ez-text-secondary-dark) !important;
    padding: 12px 0;
}
.ez-light-theme .ez-calendar-days-header {
    color: var(--ez-text-secondary-light);
}

.ez-calendar-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-auto-rows: minmax(110px, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.08); /* Grid line border colors */
}
.ez-light-theme .ez-calendar-month-grid {
    background: rgba(0, 0, 0, 0.08);
}

/* Grid Day cells styling */
.ez-calendar-day-cell {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
}

.ez-calendar-day-cell.ez-inactive-day {
    opacity: 0.35;
}

.ez-calendar-day-cell.ez-today-cell {
    background: rgba(var(--ez-accent-color-rgb), 0.05);
}

.ez-calendar-day-cell.ez-today-cell .ez-day-number {
    background: var(--ez-accent-color);
    color: #fff !important;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.ez-day-number {
    font-size: 12px;
    font-weight: 700;
    color: var(--ez-text-secondary-dark) !important;
}
.ez-light-theme .ez-day-number {
    color: var(--ez-text-secondary-light);
}

.ez-day-events-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
}

/* Scrollbar styling for day cell inside desktop calendar */
.ez-day-events-container::-webkit-scrollbar {
    width: 3px;
}
.ez-day-events-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
}

/* Event bar cards in calendar cells - redesigned to show Game Cover Art */
.ez-calendar-event-bar {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    background: transparent !important;
    position: relative !important;
    width: 100% !important;
    height: 76px !important;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.ez-calendar-event-bar:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
}

.ez-event-cover-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    background: #0f172a;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ez-event-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ez-calendar-event-bar:hover .ez-event-cover-img {
    transform: scale(1.06);
}

.ez-event-cover-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 4px 6px;
    box-sizing: border-box;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, transparent 100%);
    display: flex;
    align-items: center;
}

.ez-event-cover-overlay .event-time {
    font-size: 9px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    padding: 1px 4px !important;
    border-radius: 3px !important;
    line-height: 1.2 !important;
}

.ez-event-cover-wrap.fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

.ez-event-cover-wrap.fallback span.dashicons-games {
    font-size: 24px;
    width: 24px;
    height: 24px;
    color: #475569;
}

/* Status-specific styles for borders and time badges */
.ez-calendar-event-bar.upcoming .ez-event-cover-wrap {
    border-color: rgba(37, 99, 235, 0.35);
}
.ez-calendar-event-bar.upcoming:hover .ez-event-cover-wrap {
    border-color: #2563eb;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}
.ez-calendar-event-bar.upcoming .event-time {
    background: #2563eb !important;
}

.ez-calendar-event-bar.live .ez-event-cover-wrap {
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.3);
}
.ez-calendar-event-bar.live:hover .ez-event-cover-wrap {
    border-color: #ef4444;
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}
.ez-calendar-event-bar.live .event-time {
    background: #ef4444 !important;
    animation: ez-front-live-glow-time 1.5s infinite alternate;
}

.ez-calendar-event-bar.completed .ez-event-cover-wrap {
    border-color: rgba(16, 185, 129, 0.35);
}
.ez-calendar-event-bar.completed:hover .ez-event-cover-wrap {
    border-color: #10b981;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}
.ez-calendar-event-bar.completed .event-time {
    background: #10b981 !important;
}

@keyframes ez-front-live-glow-time {
    0% { box-shadow: 0 0 2px rgba(239, 68, 68, 0.4); }
    100% { box-shadow: 0 0 8px rgba(239, 68, 68, 0.8); }
}

/* MOBILE AGENDA LIST (displays on screens <= 768px instead of calendar grid) */
.ez-mobile-agenda-list {
    display: none;
    flex-direction: column;
    gap: 20px;
}

.ez-mobile-agenda-day-block {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ez-mobile-agenda-day-title {
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
}

.ez-mobile-agenda-events {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ez-mobile-agenda-event-card {
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ez-mobile-agenda-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

.ez-mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.ez-mobile-time {
    font-size: 12px;
    font-weight: 800;
    color: #fff;
}
.ez-light-theme .ez-mobile-time {
    color: #000;
}

.ez-mobile-badge {
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    color: #fff;
    text-transform: uppercase;
}

.ez-mobile-badge.upcoming { background-color: #2563eb; }
.ez-mobile-badge.live { background-color: #ef4444; }
.ez-mobile-badge.completed { background-color: #10b981; }

.ez-mobile-game-title {
    margin: 0 0 6px 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.ez-mobile-desc-snippet {
    margin: 0;
    font-size: 11px;
    color: var(--ez-text-secondary-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}
.ez-light-theme .ez-mobile-desc-snippet {
    color: var(--ez-text-secondary-light);
}

.ez-no-events-mobile {
    text-align: center;
    padding: 40px 10px;
    color: var(--ez-text-secondary-dark);
    font-size: 14px;
    font-weight: 600;
}

/* ------------------------------------------------------------------
   TAB 2: REPLAYS GRID ARCHIVE
   ------------------------------------------------------------------ */
.ez-replays-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px;
}

.ez-replay-card {
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: all 0.25s ease;
}

.ez-replay-card:hover {
    transform: translateY(-4px);
}
.ez-dark-theme .ez-replay-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: rgba(var(--ez-accent-color-rgb), 0.3);
}
.ez-light-theme .ez-replay-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    border-color: rgba(var(--ez-accent-color-rgb), 0.2);
}

.replay-cover-wrap {
    position: relative;
    padding-top: 140%; /* Vertical cover poster art 1:1.4 */
    background: #0f172a;
    overflow: hidden;
}

.replay-cover {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ez-replay-card:hover .replay-cover {
    transform: scale(1.05);
}

.replay-cover-fallback {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, #334155, #0f172a);
    display: flex;
    align-items: center;
    justify-content: center;
}
.replay-cover-fallback span {
    font-size: 36px;
    width: 36px;
    height: 36px;
    color: #475569;
}

.replay-date-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.replay-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.replay-title {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.replay-time-details {
    margin: 0 0 10px 0;
    font-size: 12px;
    color: var(--ez-text-secondary-dark);
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
}
.ez-light-theme .replay-time-details {
    color: var(--ez-text-secondary-light);
}

.replay-time-details span {
    font-size: 15px;
    width: 15px;
    height: 15px;
    margin-top: -1px;
}

.ez-replay-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    cursor: pointer;
    box-sizing: border-box;
    transition: all 0.2s ease;
    border: none;
    background: var(--ez-accent-color);
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(var(--ez-accent-color-rgb), 0.2);
    margin-top: auto;
}

.ez-replay-action-btn:hover {
    background: var(--ez-accent-color) !important;
    filter: brightness(0.9) contrast(1.1);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(var(--ez-accent-color-rgb), 0.35);
}

.ez-replay-action-btn.disabled {
    background: rgba(255, 255, 255, 0.05) !important;
    color: rgba(255, 255, 255, 0.2) !important;
    cursor: not-allowed;
    box-shadow: none;
}
.ez-light-theme .ez-replay-action-btn.disabled {
    background: rgba(0, 0, 0, 0.03) !important;
    color: rgba(0, 0, 0, 0.25) !important;
}

/* ------------------------------------------------------------------
   GLASSMORPHIC POPUP MODALS
   ------------------------------------------------------------------ */
.ez-streaming-modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ez-streaming-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.ez-modal-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ez-modal-content {
    position: relative;
    background: rgba(30, 41, 59, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    width: 90%;
    color: #fff !important;
    overflow: hidden;
    transform: scale(0.92);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

/* Force headings and paragraphs to remain high-contrast in the dark modal */
.ez-modal-content h1,
.ez-modal-content h2,
.ez-modal-content h3,
.ez-modal-content h4,
#ez_detail_game_title {
    color: #ffffff !important;
}

.ez-modal-content p,
.ez-modal-content #ez_detail_desc {
    color: #cbd5e1 !important;
}

.ez-streaming-modal.active .ez-modal-content {
    transform: scale(1);
}

.ez-modal-header {
    display: flex;
    justify-content: flex-end;
}

.ez-modal-close-btn {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.ez-modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Modal covers and badge styles */
.ez-detail-cover-wrapper {
    position: relative;
}

.ez-detail-cover-wrapper img {
    border-radius: 6px;
    object-fit: contain !important;
}

.ez-detail-cover-wrapper .status-badge {
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Replay empty message style */
.ez-no-streams {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--ez-text-secondary-dark);
}
.ez-light-theme .ez-no-streams {
    color: var(--ez-text-secondary-light);
}
.ez-no-streams span {
    font-size: 50px;
    width: 50px;
    height: 50px;
    color: #475569;
    margin-bottom: 15px;
}
.ez-no-streams p {
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

/* ------------------------------------------------------------------
   RESPONSIVE DESIGN (MOBILE ADAPTATION)
   ------------------------------------------------------------------ */
@media (max-width: 768px) {
    .ez-streaming-container {
        padding: 16px;
    }
    .ez-streamer-profile {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .ez-streamer-socials {
        justify-content: center;
    }
    
    /* Hide monthly grid calendar on mobile view */
    .ez-desktop-calendar {
        display: none;
    }
    
    /* Show mobile stacked agenda calendar list view */
    .ez-mobile-agenda-list {
        display: flex;
    }
    
    .ez-replays-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

/* Responsive Event Detail Modal */
@media (max-width: 600px) {
    #ez_frontend_event_modal .ez-modal-body {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding-top: 40px !important;
    }
    #ez_frontend_event_modal .ez-detail-cover-column {
        width: 150px !important;
        margin-bottom: 8px !important;
    }
    #ez_frontend_event_modal .ez-detail-meta {
        align-items: center !important;
    }
    #ez_frontend_event_modal .ez-detail-info-block {
        width: 100% !important;
    }
}

/* Light Mode Typography Enhancement for High Contrast and Visibility */
.ez-light-theme h1,
.ez-light-theme h2,
.ez-light-theme h3,
.ez-light-theme h4,
.ez-light-theme h5,
.ez-light-theme h6,
.ez-light-theme .ez-timetable-title,
.ez-light-theme .replay-title {
    color: #0f172a !important;
}

.ez-light-theme .ez-calendar-days-header {
    color: #1e293b !important;
    font-weight: 800 !important;
}

.ez-light-theme .ez-day-number {
    color: #0f172a !important;
    font-weight: 800 !important;
}

.ez-light-theme .ez-tab-btn {
    color: #334155 !important;
}

.ez-light-theme .ez-tab-btn:hover {
    color: #0f172a !important;
}

.ez-light-theme .ez-mobile-game-title,
.ez-light-theme .ez-mobile-agenda-day-title strong {
    color: #0f172a !important;
}

.ez-light-theme .ez-mobile-desc-snippet {
    color: #334155 !important;
}

.ez-light-theme .replay-time-details {
    color: #334155 !important;
}

.ez-light-theme .ez-no-events-mobile,
.ez-light-theme .ez-no-streams p {
    color: #475569 !important;
}

/* Force Streamer Banner text to stay light/white in light theme */
.ez-streamer-banner .ez-streamer-name,
.ez-streamer-banner h1,
.ez-streamer-banner h2 {
    color: #ffffff !important;
}

.ez-streamer-banner .ez-streamer-bio {
    color: #cbd5e1 !important;
}
