/* Typography & Core Defaults */
:root {
    --bg-glass: rgba(255, 255, 255, 0.05);
    --border-glass: rgba(255, 255, 255, 0.1);
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}
input[type="search"] {
  -webkit-appearance: none; /* Fixes iOS specific styling */
  appearance: none;
}

body { 
    background: #000000; 
    color: white; 
    font-family: 'Manrope', sans-serif; 
    font-size: 12px; 
    margin: 0; 
    overflow-x: hidden; 
}

h1, h2, h3, .view-title { 
    font-family: 'Inter', sans-serif; 
    font-weight: 700; 
}

svg, button { 
    background-color: transparent !important; 
    -webkit-tap-highlight-color: transparent !important; 
}

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

.hidden {
    display: none !important;
}

/* Header & Navigation */
.sticky-header { 
    position: sticky; 
    top: 0; 
    z-index: 100; 
    background: #000000; 
    width: 100%; 
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    position: relative; 
    height: 70px;
}

.header-logo {
    flex: 0 0 auto;
    height: 2rem;
    width: auto;
    object-fit: contain;
}

.header-right-area {
    width: 50%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    height: 40px;
    flex-shrink: 0; 
}

.view-controls-sticky { 
    background: #000000; 
    padding: 10px 24px; 
}

#viewTitle { font-size: 16px; }

#viewTitle {
    display: flex;
    align-items: center;
    gap: 10px; /* Space between text and line */
}

#viewTitle::after {
    content: "";
    display: inline-block;
    width: 50px;       /* Length of the line */
    height: 2px;       /* Thickness of the line */
    background-color: #FFC107; /* The yellow color from your image */
}

/* Search Bar */
#searchBarContainer { 
    position: absolute;
    right: 0;
    width: 100%;
    max-width: 100%;
    display: none;
    align-items: center;
    gap: 8px;
    z-index: 20;
    background: #000; 
}

#searchBarContainer.active { 
    display: flex;
}

.search-input {
    flex-grow: 1;
    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;
    width: 0;
}

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

/* Icon Buttons */
.icon-btn { transition: opacity 0.2s; }

.icon-btn-alt {
    padding: 0.5rem;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.icon-btn-alt:hover { opacity: 1; }

/* Player Area & Video Box */
#playerArea { 
    width: 100%; 
    background: #000; 
    padding: 15px 15px 5px 15px; 
}

.video-box { 
    width: 100%; 
    aspect-ratio: 16 / 9; 
    background: #000; 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    position: relative; 
    z-index: 10; 
}

#video {
    width: 100%;
    height: 100%;
}

#placeholder { 
    width: 100%; 
    aspect-ratio: 16 / 9; 
    border-radius: 12px; 
    overflow: hidden; 
    background: #0a0a0a; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    color: rgba(255,255,255,0.2); 
}

#placeholder img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    opacity: 0.5; 
}

#playerContainer { display: none; width: 100%; }
#playerContainer.active { display: block; }

/* Metadata Box */
.metadata-box { 
    background: rgba(24, 24, 27, 0.8); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-top: none; 
    border-radius: 0 0 12px 12px; 
    padding: 16px; 
    margin-top: -10px; 
    position: relative; 
    z-index: 5; 
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.meta-left, .status-indicator {
    display: flex;
    align-items: center;
}

.meta-left { gap: 12px; }
.meta-right {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: right;
}

.meta-info h3 { font-weight: 700; line-height: 1.25; }
.meta-info p { color: #71717a; font-size: 10px; margin-top: 0.125rem; }

.status-indicator { gap: 0.5rem; }
.status-indicator span { font-weight: 700; letter-spacing: 0.1em; font-size: 8px; }

.close-player-btn {
    font-size: 0.875rem;
    opacity: 0.4;
    transition: opacity 0.2s;
}
.close-player-btn:hover { opacity: 1; }

/* Channel List & Cards */
.glass-panel { 
    background: rgba(25, 25, 25, 0.6); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    backdrop-filter: blur(10px);
}

.logo-box { 
    width: 54px; 
    height: 54px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border: 1px solid rgba(255,255,255,0.05); 
    background: rgba(0,0,0,0.2); 
    overflow: hidden; 
}

.channel-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-glass);
    border-bottom: 1px solid var(--border-glass);
    transition: all 0.2s;
    cursor: pointer;
    padding: 5px 16px;
}

.channel-card:active { transform: scale(0.98); }
.channel-card:hover { background-color: rgba(255, 255, 255, 0.1); }
.channel-item span { font-size: 12px; }

/* Indicators & Favorites */
.status-live { stroke: #22c55e; color: #22c55e; }
.status-offline { stroke: #ef4444 !important; color: #ef4444 !important; }

.star-btn { transition: transform 0.2s; background: none !important; border: none; }
.star-btn:active { transform: scale(1.4); }
.is-favorite { fill: #facc15; stroke: #facc15; }

/* Fullscreen & Blocker */
video::-webkit-media-controls { display:none !important; }
#video-box:fullscreen { border: none !important; border-radius: 0 !important; }
:fullscreen { background-color: black !important; }

#desktopBlocker { 
    display: none; 
    position: fixed; 
    inset: 0; 
    background: #000; 
    z-index: 9999; 
    flex-direction: column; 
    align-items: center; 
    justify-content: center; 
    text-align: center; 
    padding: 24px; 
}

/* Loading Overlay & Spinner */
.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    z-index: 10;
}

.overlay-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.loader-content { position: relative; z-index: 20; }

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Specialized Buttons */
.btn-load-more {
    padding: 0.5rem 1.5rem;
    background-color: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s;
}

.btn-load-more:hover { background-color: rgba(255, 255, 255, 0.1); }

.main-footer {
    text-align: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3); /* This is the text-white/30 */
    padding-bottom: 5px;            /* Your requested 5px padding */
}

/* This handles the 'space-y-1' gap between the paragraphs */
.main-footer p {
    margin: 4px 0; 
}

/* Ensure the links inherit the faint white color */
.main-footer a {
    color: inherit;
    text-decoration: none;
}

.main-footer a:hover {
    text-decoration: underline;
    color: white;
}

#backToTop {
    /* --- ADJUST THIS NUMBER (0.0 to 1.0) --- */
    --bt-opacity: 0.7; 
    
    display: none; 
    position: fixed;
    bottom: 25px;
    right: 20px;
    z-index: 9999;
    
    width: 46px;
    height: 46px;
    border-radius: 50%;
    
    /* The background color uses the variable above */
    background-color: rgba(51, 51, 51, var(--bt-opacity)); 
    
    /* Adds a blur effect to the background (optional, like Glassmorphism) */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    padding: 0;
}

#backToTop svg {
    width: 22px;
    height: 22px;
    /* The icon stays 100% white regardless of the background transparency */
    stroke: white; 
}

#backToTop:active {
    transform: scale(0.9); /* Tiny bounce when tapped */
}

/* Full-Screen Overlay */
#announcement-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Ensure the overlay stays hidden when class is present */
#announcement-overlay.hidden {
    display: none !important;
}

.overlay-content {
    position: relative;
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.full-screen-img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--border-glass);
}

/* Perfect Circle Container */
#status-container {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 28px;
    height: 28px;
    background: #000;
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    flex-shrink: 0;
}

/* Spinner Styles */
#countdown-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid #FFC107;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Close Button Styles */
#close-announcement {
    color: white;
    font-size: 18px;
    cursor: pointer;
    border: none;
    background: transparent !important;
    display: none; /* Controlled by JS */
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 0;
}

.install-banner-panel {
    background: rgba(24, 24, 27, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
}

.slider-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border-glass);
}

.slider-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* Default state */
    transition: opacity 0.8s ease-in-out;
}

.pagination-container {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid var(--border-glass);
    z-index: 30;
}

.dot-wrapper {
    width: 8px;
    height: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dot-wrapper::before {
    content: "";
    width: 4px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: absolute;
    z-index: 1;
}

.dot-ring-progress {
    fill: none;
    stroke: #FFC107;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 13;
    stroke-dashoffset: 13;
    transform: rotate(-90deg);
    transform-origin: center;
} 
