/* General Resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}

/* Shaka Player Customization */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hide-controls .shaka-controls-container,
.hide-controls .shaka-bottom-controls,
.hide-controls .shaka-play-button-container,
.hide-controls .shaka-scrim-container {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.shaka-spinner-container {
    display: none !important;
}

/* The main overlay container */
#video-placeholder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.4s ease;
}

.hide-placeholder {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.overlay-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.loading-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.custom-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(50px, 5vw, 80px);
    height: clamp(50px, 5vw, 80px);
    border: clamp(4px, 0.5vw, 8px) solid rgba(255, 215, 0, 0.15);
    border-top: clamp(4px, 0.5vw, 8px) solid #FFD700;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 10;
    filter: drop-shadow(0 0 12px rgba(255, 215, 0, 0.5));
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg);
}
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

#overlay-status-text {
    position: absolute;
    bottom: 25%;
    left: 50%;
    transform: translateX(-50%);
    background: #e74c3c; 
    color: #fff;
    padding: clamp(4px, 0.5vh, 6px) clamp(12px, 2vw, 20px);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.7rem, 1.5vw, 0.9rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: none;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    z-index: 20;
}

#overlay-status-text:not(:empty) {
    display: flex;
}

.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

#ui-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    flex-direction: column; 
    overflow: hidden; 
}

.navbar, .nav-links, .sub-nav, .section-title {
    flex-shrink: 0; 
    padding-left: clamp(20px, 4vw, 50px);
    padding-right: clamp(20px, 4vw, 50px);
}

.navbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding-top: clamp(15px, 2vh, 20px);
}

.logo img { 
    height: clamp(25px, 3vw, 35px); 
}

.search-container {
    position: absolute;
    right: clamp(20px, 3vw, 40px);
    top: clamp(15px, 2vh, 20px);
    width: clamp(150px, 15vw, 200px);
    display: flex;
    align-items: center;
    flex-direction: column;
}

#searchBar {
    width: 100%;
    padding: clamp(8px, 1vh, 10px) clamp(35px, 4vw, 45px) clamp(8px, 1vh, 10px) clamp(15px, 2vw, 20px);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    border-radius: 10px;
    color: white;
    font-size: clamp(14px, 1.5vw, 16px);
    outline: none;
}

.search-icon-static {
    position: absolute;
    right: clamp(10px, 1.5vw, 15px);
    top: clamp(8px, 1vh, 10px);
    font-size: clamp(16px, 1.8vw, 18px);
    pointer-events: none;
    color: rgba(255, 255, 255, 0.5);
    transition: opacity 0.2s ease;
    display: flex;
    align-items: center;
    height: clamp(20px, 2.5vh, 24px);
}

#searchBar:not(:placeholder-shown) + .search-icon-static {
    opacity: 0;
}

#searchBar:focus {
    border-color: #f1c40f;
    background: rgba(255, 255, 255, 0.15);
}

.nav-links { 
    display: flex; 
    justify-content: center; 
    gap: clamp(30px, 5vw, 60px);
    margin: clamp(20px, 3vh, 30px) 0; 
}

.section-title {
    margin: 0;
    padding-bottom: clamp(15px, 2vh, 20px); 
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    letter-spacing: 1px;
    color: #fff;
    display: block;
}

.section-title::after {
    content: "";
    display: inline-block;
    width: clamp(30px, 4vw, 50px);
    height: 2px;
    background-color: #FFC107;
    vertical-align: middle;
    margin-left: 10px;
}

.content {
    flex: 1; 
    overflow-y: auto;
    padding: clamp(15px, 2vh, 20px) clamp(20px, 4vw, 50px) clamp(40px, 5vh, 50px) clamp(20px, 4vw, 50px); 
    scroll-behavior: smooth;
    scrollbar-width: none;
}

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

.grid-container { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr);
    gap: clamp(90px, 9vh, 120px) clamp(30px, 2.5vw, 45px); 
    justify-items: center; 
    padding-top: clamp(15px, 2vh, 20px);
    padding-bottom: clamp(100px, 12vh, 150px);
}

.channel-card { 
    position: relative; 
    width: clamp(50px, 6vw, 80px); 
    height: clamp(50px, 6vw, 80px); 
    outline: none; 
    cursor: pointer;
    display: flex; 
    justify-content: center; 
    align-items: center;
    scroll-margin-top: clamp(30px, 4vh, 50px); 
    scroll-margin-bottom: clamp(30px, 4vh, 50px);
}

.channel-card:focus { 
    transform: scale(1.10); 
    z-index: 10;
    transition: none !important;
}

.dot { 
    width: clamp(50px, 6vw, 80px); 
    height: clamp(50px, 6vw, 80px); 
    background: transparent; 
    border-radius: 50%; 
    object-fit: contain;
    border: 2px solid transparent; 
    opacity: 0.5;
}

.channel-card:focus .dot { 
    border: 3px solid #d4a017;
    box-shadow: 0 0 15px rgba(212, 160, 23, 0.8);
    opacity: 1;
}

.nav-pill-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #2f2f2f;      
    padding: 0;
    border-radius: 40px;      
    gap: clamp(30px, 5vw, 60px);
    overflow: hidden;
}

/* Individual Nav Items */
.nav-item {
    background: transparent;
    border: 2px solid transparent; 
    color: #777;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    cursor: pointer;
    text-transform: uppercase;
    outline: none;
    padding: clamp(8px, 1vh, 10px) clamp(18px, 2.5vw, 25px);
    border-radius: 40px;
}

/* SOLID GOLD: When focused */
.nav-item:focus {
    background: #d4a017;
    color: #fff;
    border-color: transparent;
}

/* GOLD BORDER: When Active but focus is below */
.nav-item.active:not(:focus) {
    background: transparent; 
    border: 2px solid #d4a017;
    color: #fff;
}

/* --- CATEGORIES SUB-NAV (Kept smaller as requested) --- */
.sub-item {
    background: #2f2f2f;
    color: #bbbbbb;
    border: 2px solid transparent; 
    border-radius: 20px;
    padding: clamp(4px, 0.5vh, 5px) clamp(12px, 1.5vw, 15px);
    font-family: 'Manrope', sans-serif;
    font-weight: 400;
    font-size: clamp(0.65rem, 1.2vw, 0.75rem);
    text-transform: uppercase;
    outline: none;
    cursor: pointer;
}

.sub-item:focus {
    background: #d4a017;
    color: #fff;
}

.sub-item.active:not(:focus) {
    background: #2f2f2f;
    border: 2px solid #d4a017;
    color: #fff;
}

/* REVERTED CHANNEL PILL - NO MARQUEE */
.channel-name-pill { 
    position: absolute; 
    bottom: clamp(-40px, -4vh, -55px);
    left: 50%;
    transform: translateX(-50%); 
    background: #2f2f2f; 
    color: #bbbbbb; 
    padding: clamp(3px, 0.5vh, 4px) clamp(8px, 1vw, 10px); 
    border-radius: 20px;
    font-size: clamp(0.75rem, 1.2vw, 0.68rem); 
    font-weight: 300;
    width: auto; 
    min-width: clamp(80px, 10vw, 100px);
    max-width: clamp(120px, 15vw, 160px);
    height: clamp(24px, 2.5vh, 28px);
    display: flex;
    align-items: center;
    justify-content: center; 
    z-index: 5; 
    pointer-events: none; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.name-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.channel-card:focus .channel-name-pill { 
    background: #d4a017;
    color: #fff;
}

#press-enter-hint {
    position: fixed;
    bottom: clamp(30px, 4vh, 50px);
    left: 50%;
    transform: translateX(-50%);
    background: #d4a017; 
    color: #fff;
    padding: clamp(6px, 0.8vh, 8px) clamp(15px, 2vw, 20px);
    border-radius: 30px;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(0.75rem, 1.5vw, 0.9rem);
    font-weight: 400;
    letter-spacing: 0.5px;
    z-index: 999;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.5s ease, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.2vw, 12px);
}

#press-enter-hint.hidden-hint {
    opacity: 0;
    transform: translateX(-50%) translateY(30px);
}

#press-enter-hint img {
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: #000 !important;
}

.sub-nav {
    width: 100%;
    padding: clamp(8px, 1vh, 10px) clamp(20px, 4vw, 50px);
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    margin-bottom: clamp(12px, 1.5vh, 15px);
}

.sub-nav-scroll {
    display: flex;
    gap: clamp(12px, 1.5vw, 15px);
    overflow-x: auto;
    scrollbar-width: none;
}
.sub-nav-scroll::-webkit-scrollbar { display: none; }

.fav-star {
    position: absolute; 
    top: -5px; 
    right: -5px;
    color: #d4a017;
    font-size: clamp(1rem, 1.8vw, 1.2rem); 
    display: none;
    text-shadow: 0 0 5px #000;
}
.is-favorite .fav-star { display: block;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: clamp(60px, 8vh, 100px);
    color: #888;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.empty-favorites {
    grid-column: 1 / -1;
    text-align: center;
    padding: clamp(40px, 5vh, 60px) clamp(15px, 2vw, 20px);
    font-family: 'Manrope', sans-serif;
    color: rgba(255, 255, 255, 0.6);
}

.empty-favorites h2 {
    color: #d4a017;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 10px;
    font-weight: 800;
}

.empty-favorites p {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Contact Page Specifics */
.contact-card-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    padding: clamp(40px, 5vh, 60px) clamp(30px, 3vw, 40px);
    width: 90%;
    max-width: 600px;
    text-align: center;
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.contact-icon {
    width: clamp(60px, 6vw, 80px);
    height: clamp(60px, 6vw, 80px);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto clamp(20px, 3vh, 30px) auto;
    color: #fff;
}

.contact-card h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: clamp(15px, 2vh, 20px);
    letter-spacing: -1px;
}

.contact-card p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto;
}

.contact-methods {
    margin-top: clamp(30px, 4vh, 40px);
}

/* ============================================================
   COMPACT STICKY PLAYER MENU (Gap & Visibility Fixes)
   ============================================================ */
#custom-player-menu {
    position: fixed;
    bottom: clamp(25px, 3vh, 40px);
    right: clamp(25px, 3vw, 40px);
    background: #121212; 
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0;
    z-index: 100000;
    width: clamp(150px, 15vw, 180px); 
    max-height: 50vh;
    overflow-y: auto;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 1);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    /* Significant scroll padding to prevent overlap with sticky header */
    scroll-padding-top: clamp(175px, 9.5vh, 205px);
}

#custom-player-menu.show {
    opacity: 1;
    transform: translateY(0);
}

.player-menu-header {
    position: sticky;
    top: 0;
    background: #121212; 
    font-size: clamp(9px, 1.2vw, 11px); 
    font-weight: 800;
    color: white;
    padding: clamp(12px, 1.5vh, 15px) clamp(12px, 1.5vw, 15px) clamp(8px, 1vh, 10px) clamp(12px, 1.5vw, 15px);
    margin-bottom: 10px; 
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.player-menu-section {
    padding: 0;
    margin-bottom: 5px;
}

.player-menu-title {
    padding: clamp(4px, 0.5vh, 5px) clamp(12px, 1.5vw, 15px);
    font-size: clamp(8px, 1vw, 10px);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    /* Margin to clear sticky header during upward scroll */
    scroll-margin-top: clamp(110px, 8vh, 120px);
}

.player-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: clamp(8px, 1vh, 10px) clamp(12px, 1.5vw, 15px); 
    background: transparent;
    border: none;
    color: #efefef;
    font-size: clamp(11px, 1.3vw, 13px);
    cursor: pointer;
    outline: none;
    text-align: left;
    transition: background 0.2s;
    scroll-margin-top: 10px;
}

.player-menu-item.focused {
    background: rgba(255, 255, 255, 0.1) !important;
}

#custom-player-menu::-webkit-scrollbar {
    display: none;
}

.menu-item-label {
    font-weight: 500;
    flex: 1;
}

/* --- Radio Button (Check) Styling --- */
.menu-item-check {
    width: clamp(14px, 1.5vw, 16px);
    height: clamp(14px, 1.5vw, 16px);
    border: 1px solid rgba(255, 255, 255, 0.3); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-left: clamp(8px, 1vw, 10px);
    position: relative;
    transition: all 0.2s;
    box-sizing: border-box;
}

.player-menu-item.active .menu-item-check {
    border-color: rgba(255, 255, 255, 0.3); 
}

.player-menu-item.active .menu-item-check::after {
    content: "";
    width: clamp(6px, 0.8vw, 8px); 
    height: clamp(6px, 0.8vw, 8px);
    background-color: #d4a017;
    border-radius: 50%;
    display: block;
}

#custom-player-menu::-webkit-scrollbar {
    display: none;
}

/* --- Expired Page Layout --- */
.ui-layer-expired {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.expired-container {
    display: flex;
    flex-direction: row;
    width: 90%;
    max-width: 1000px;
    height: clamp(400px, 50vh, 500px);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.expired-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(30px, 4vh, 40px);
    text-align: center;
}

.expired-col-left {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.expired-col h1 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
}

.expired-col p {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    letter-spacing: 2px;
    margin-bottom: clamp(15px, 2vh, 20px);
}

.qr-box {
    background: #fff;
    padding: clamp(12px, 1.5vh, 15px);
    border-radius: 20px;
    display: inline-block;
}

.qr-box img {
    width: clamp(150px, 18vw, 200px);
    height: clamp(145px, 17vw, 195px);
    display: block;
}

.logo-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-pill {
    position: absolute;
    top: -5px;
    left: -5px;
    background: #28a745;
    color: white;
    font-size: clamp(8px, 1vw, 10px);
    font-weight: bold;
    padding: clamp(2px, 0.3vh, 2px) clamp(5px, 0.6vw, 6px);
    border-radius: 4px;
    z-index: 3;
    pointer-events: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

#floating-toast {
    position: fixed;
    top: clamp(20px, 3vh, 30px);
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    min-width: clamp(250px, 30vw, 300px);
    max-width: 80vw;
    background: rgba(20, 20, 20, 0.95);
    border: 2px solid #f9a825;
    border-radius: 12px;
    align-items: flex-start;
    padding: clamp(15px, 2vh, 20px);
    z-index: 1000000;
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    font-family: sans-serif;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 1;
    box-sizing: border-box;
}

#floating-toast.hidden-toast {
    top: -200px;
    opacity: 0;
}

.toast-icon svg {
    width: clamp(26px, 3vw, 32px);
    height: clamp(26px, 3vw, 32px);
    fill: #f9a825;
}

.toast-icon {
    margin-right: clamp(14px, 1.8vw, 18px);
    margin-top: 2px;
}

.toast-content {
    flex: 1;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: clamp(14px, 1.8vw, 18px);
    min-width: 0;
}

.toast-title {
    color: #f9a825;
    font-weight: bold;
    font-size: clamp(12px, 1.5vw, 14px);
    margin-bottom: clamp(4px, 0.6vh, 6px);
    white-space: nowrap;
}

.toast-message {
    color: #eeeeee;
    font-size: clamp(10px, 1.3vw, 12px);
    line-height: 1.5;
    word-wrap: break-word;
}

.toast-timer {
    color: #888888;
    font-size: clamp(12px, 1.5vw, 14px);
    margin-left: clamp(12px, 1.5vw, 15px);
    font-weight: bold;
    align-self: center;
}

/* ===========================================================
   ADDITIONAL RESPONSIVE BREAKPOINTS FOR SPECIFIC TV SIZES
   ============================================================ */

/* Small TVs (720p) */
@media screen and (max-width: 1366px) and (max-height: 768px) {
    .grid-container {
        gap: 90px 30px;
    }
    
    .nav-links {
        gap: 35px;
    }
}

/* Large TVs (4K and above) */
@media screen and (min-width: 3840px) {
    body {
        font-size: 1.2rem;
    }
    
    .grid-container {
        gap: 90px 40px;
    }
    
    .channel-card {
        width: 100px;
        height: 100px;
    }
    
    .dot {
        width: 100px;
        height: 100px;
    }
}

/* Ultra-wide TVs */
@media screen and (min-aspect-ratio: 21/9) {
    .navbar,
    .nav-links,
    .sub-nav,
    .section-title,
    .content {
        padding-left: 8vw;
        padding-right: 8vw;
    }
}

/* DOWNLOAD PAGE */
/* The background wrapper that fills the screen */
.overlay-screen-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    /* Dark overlay */
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Centers vertically */
    overflow-y: auto; /* Allows the WHOLE container to scroll if screen is tiny */
    padding: 20px;
    box-sizing: border-box;
}

/* The Phone Container */
.brand-phone-container {
    width: 100%;
    max-width: 400px;
    background: #000;
    border: 1px solid #222;
    border-radius: 40px;
    padding: 40px 25px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,1);
    flex-shrink: 0;
    /* Prevents the container from squishing */
    margin: auto;
    /* Works with flex to prevent top/bottom cutoff */
}

.brand-subtitle {
    font-size: 14px;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 300;
}

.brand-subtitle2 {
    font-size: 14px;
    color: #d4a017;
    margin-bottom: 15px;
    font-weight: 300;
}

.brand-qr {
    width: auto;
    max-width: 250px;
    /* Adjust this to control how big your logo appears */
    height: auto;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.brand-section {
    margin-bottom: 25px;
}

.brand-label {
    font-size: 14px;
    color: #fff;
    margin-bottom: 12px;
}

/* Link Buttons */
.brand-pill {
    display: inline-block;
    background: #303030;
    color: #fff;
    text-decoration: none;
    padding: 12px 12px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 12px;
    margin-bottom: 15px;
}

.brand-main-button {
    display: block;
    background: #d4a017;
    color: #fff;
    text-decoration: none;
    width: 100%;
    padding: 15px 12px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
    box-sizing: border-box;
}

.brand-disclaimer {
    color: #fff;
    font-size: 11px;
    font-style: italic;
    line-height: 1.4;
    margin-bottom: 20px;
}

/* Logo Styling */
.brand-logo {
    width: auto;
    max-width: 170px;
    /* Adjust this to control how big your logo appears */
    height: auto;
    max-height: 80px;
    /* Limits height to keep the layout compact */
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Promo Code Box */
.brand-promo-box {
    background: #8e8e00;
    color: #fff;
    padding: 15px;
    border-radius: 10px;
    font-size: 22px;
    font-weight: 800;
    display: block;
    width: 100%;
    letter-spacing: 1px;
    box-sizing: border-box;
}

/* ============================================================
   SCHEDULE SECTION — inside #custom-player-menu
   Matches existing player menu design system
   ============================================================ */

/* Time display row — the collapsed "button" showing selected time */
.schedule-time-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: clamp(6px, 0.8vh, 9px) clamp(10px, 1.2vw, 13px);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
}

/* Gold focus on the time display — visible when menu opens */
.schedule-time-display.focused {
    border-color: #d4a017 !important;
    background: rgba(212, 160, 23, 0.12) !important;
    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.25);
}

.schedule-time-label {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(10px, 1.2vw, 13px);
    font-weight: 600;
    color: #fff;
}

.schedule-time-arrow {
    font-size: clamp(9px, 1vw, 11px);
    color: #d4a017;
    margin-left: 6px;
}

/* Expanded time list */
.schedule-time-list {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(212, 160, 23, 0.25);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 2px;
}

.schedule-time-list.hidden {
    display: none;
}

/* Individual time option items inside the expanded list */
.time-option-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: clamp(7px, 0.9vh, 9px) clamp(10px, 1.2vw, 13px);
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #efefef;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(10px, 1.2vw, 12px);
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    outline: none;
    transition: background 0.15s;
}

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

/* D-pad focused item — gold highlight */
.time-option-item.focused {
    background: rgba(212, 160, 23, 0.18) !important;
    color: #fff;
}

/* Currently selected/active item — gold dot */
.time-option-item.active .menu-item-check::after {
    content: "";
    width: clamp(6px, 0.8vw, 8px);
    height: clamp(6px, 0.8vw, 8px);
    background-color: #d4a017;
    border-radius: 50%;
    display: block;
}

.schedule-row {
    display: flex;
    flex-direction: column;
    gap: clamp(5px, 0.6vh, 7px);
    padding: clamp(4px, 0.5vh, 6px) clamp(12px, 1.5vw, 15px) clamp(8px, 1vh, 10px);
}

.schedule-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: #efefef;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(10px, 1.2vw, 12px);
    font-weight: 500;
    padding: clamp(6px, 0.8vh, 8px) clamp(8px, 1vw, 10px);
    appearance: none;
    outline: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%23d4a017' d='M0 0l4 5 4-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 22px;
    transition: border-color 0.2s;
}

.schedule-select:focus {
    border-color: #d4a017;
    background-color: rgba(212, 160, 23, 0.08);
}

/* Browsing mode — user is scrolling through time options with d-pad */
.schedule-select.browsing {
    border-color: #d4a017;
    background-color: rgba(212, 160, 23, 0.15);
    box-shadow: 0 0 0 2px rgba(212, 160, 23, 0.35);
}

.schedule-select option {
    background: #1a1a1a;
    color: #efefef;
    font-family: 'Manrope', sans-serif;
}

.schedule-actions {
    display: flex;
    gap: clamp(5px, 0.6vw, 7px);
}

/* Set / Change button — inherits .player-menu-item base, gold accent */
.schedule-set-btn {
    flex: 1;
    justify-content: center;
    background: rgba(212, 160, 23, 0.15);
    border: 1px solid rgba(212, 160, 23, 0.35);
    border-radius: 6px;
    color: #d4a017;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(10px, 1.2vw, 12px);
    font-weight: 700;
    padding: clamp(6px, 0.8vh, 8px) 0;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s, border-color 0.2s;
    outline: none;
}

.schedule-set-btn:focus,
.schedule-set-btn.focused {
    background: rgba(212, 160, 23, 0.28) !important;
    border-color: #d4a017;
}

/* Cancel button — red-tinted, same compact size */
.schedule-cancel-btn {
    flex: 1;
    justify-content: center;
    background: rgba(231, 76, 60, 0.12);
    border: 1px solid rgba(231, 76, 60, 0.3);
    border-radius: 6px;
    color: #e74c3c;
    font-family: 'Manrope', sans-serif;
    font-size: clamp(10px, 1.2vw, 12px);
    font-weight: 700;
    padding: clamp(6px, 0.8vh, 8px) 0;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s, border-color 0.2s;
    outline: none;
}

.schedule-cancel-btn:focus,
.schedule-cancel-btn.focused {
    background: rgba(231, 76, 60, 0.25) !important;
    border-color: #e74c3c;
}

/* Status line — idle state */
.schedule-status {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(8px, 1vw, 10px);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.3);
    text-align: center;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    min-height: clamp(12px, 1.5vh, 14px);
    transition: color 0.3s;
}

/* Status line — active (schedule is set) */
.schedule-status.active {
    color: #d4a017;
}

/* Divider after the schedule section before quality */
.player-menu-section:first-of-type {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding-bottom: clamp(4px, 0.5vh, 6px);
    margin-bottom: clamp(4px, 0.5vh, 6px);
}

/* Increased margin to fully clear the sticky header when scrolling upward */
#schedule-section .player-menu-title {


/* Glass Panel Styling for the Form Background */
.glass-panel { 
    background: rgba(25, 25, 25, 0.6); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    backdrop-filter: blur(10px);
}

/* Title Decoration (The Yellow Line) */
#viewTitle {
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#viewTitle::after {
    content: "";
    display: inline-block;
    width: 50px;
    height: 2px;
    background-color: #FFC107; /* Used for the Submit Button accent */
}

/* Base Search Input Styling used for Text Fields */
.search-input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    outline: none;
    transition: all 0.3s ease;
    color: white;
    font-size: 0.875rem;
}

.search-input:focus {
    border-color: rgba(255, 255, 255, 0.3);
}

/* Global Button Resets */
svg, button:not(#retryBtn) { 
    background-color: transparent !important; 
    -webkit-tap-highlight-color: transparent !important; 
}

button:focus, button:active { 
    outline: none !important; 
    box-shadow: none !important; 
}
