/* ============================================
   Lazy TV — Premium OTT Streaming Platform CSS
   ============================================ */

:root {
    --bg-dark: #050505;
    --bg-surface: #111;
    --accent: #e50914; /* Netflix Red */
    --accent-glow: rgba(229, 9, 20, 0.4);
    --accent-secondary: #06b6d4;

    --text-primary: #fff;
    --text-secondary: #a3a3a3;
    --text-muted: #737373;

    --glass-bg: rgba(0, 0, 0, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* === Reset === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: auto;
}

/* === Scrollbars === */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* ======================================== */
/* === OTT Header ========================= */
/* ======================================== */

.ott-header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    padding: 0 4%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    transition: background var(--transition-smooth);
}
.ott-header.scrolled {
    background: rgba(5,5,5,0.95);
    backdrop-filter: blur(10px);
}

.logo h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: -0.5px;
}
.logo h1 span {
    color: #fff;
}

.dropdown-container {
    position: relative;
    margin-left: 3rem;
}

.dropdown-toggle {
    background: transparent;
    border: none;
    color: #e5e5e5;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    transition: color var(--transition-fast);
}
.dropdown-toggle:hover {
    color: #fff;
}
.dropdown-toggle i {
    font-size: 0.8rem;
    transition: transform var(--transition-fast);
}
.dropdown-container:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(17, 17, 17, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 0.5rem 0;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition-fast);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-height: 400px;
    overflow-y: auto;
}
.dropdown-container:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-link, .country-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.8rem 1.5rem;
    transition: all var(--transition-fast);
}
.nav-link:hover, .nav-link.active,
.country-link:hover, .country-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

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

.ott-search {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 0.4rem 0.8rem;
    transition: all var(--transition-fast);
}
.ott-search:focus-within {
    border-color: #fff;
    background: rgba(0,0,0,0.8);
}
.ott-search i {
    color: #fff;
    margin-right: 8px;
}
.ott-search input {
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    width: 200px;
}
.ott-search input::placeholder {
    color: var(--text-muted);
}

.nav-icon-btn {
    color: #fff;
    font-size: 1.2rem;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}
.nav-icon-btn:hover {
    transform: scale(1.1);
}
.mobile-only { display: none; }

/* ======================================== */
/* === Hero Section ======================= */
/* ======================================== */

.hero-section {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    max-height: 800px;
    background: #000;
    overflow: hidden;
}

.hero-backdrop {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(229, 9, 20, 0.2) 0%, rgba(0,0,0,1) 70%);
    display: flex;
    align-items: flex-end;
    padding: 0 4% 10% 4%;
    z-index: 1;
    transition: opacity 1s ease;
}

.hero-content {
    max-width: 600px;
    z-index: 2;
    margin-bottom: 2rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(229, 9, 20, 0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border: 1px solid rgba(229, 9, 20, 0.5);
    color: #fff;
}
.hero-badge i { color: var(--accent); }

#hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

#hero-description {
    font-size: 1.2rem;
    color: #e5e5e5;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-play-primary {
    background: #fff;
    color: #000;
    border: none;
    padding: 0.8rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform var(--transition-fast), background var(--transition-fast);
}
.btn-play-primary:hover {
    background: rgba(255,255,255,0.7);
    transform: scale(1.05);
}

/* Gradient blending hero into content */
.hero-vignette-bottom {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 200px;
    background: linear-gradient(to top, #050505 0%, rgba(5,5,5,0) 100%);
    z-index: 5;
    pointer-events: none;
}

/* ======================================== */
/* === Player Layer ======================= */
/* ======================================== */

.player-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 10;
    background: #000;
    transition: opacity 0.8s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.player-layer .plyr {
    width: 100%;
    height: 100%;
    --plyr-video-background: #000;
}

.player-controls-overlay {
    position: absolute;
    top: 80px;
    left: 4%;
    z-index: 20;
    display: flex;
    gap: 1rem;
}
.ott-close-btn, .ott-server-btn {
    background: rgba(0,0,0,0.6);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: background 0.2s, transform 0.2s;
}
.ott-close-btn:hover, .ott-server-btn:hover { 
    background: rgba(255,255,255,0.2); 
    transform: scale(1.05);
}

/* ======================================== */
/* === Content & Carousels ================ */
/* ======================================== */

.ott-content {
    padding: 0 4% 4rem 4%;
    position: relative;
    z-index: 20;
}

.category-section {
    margin-bottom: 3rem;
}

.row-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #e5e5e5;
    transition: color var(--transition-fast);
}
.category-section:hover .row-title { color: #fff; }

.carousel-container {
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 10px 0;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track { -ms-overflow-style: none; scrollbar-width: none; }

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(0,0,0,0.5);
    border: none;
    color: #fff;
    width: 50px;
    height: calc(100% - 20px);
    cursor: pointer;
    opacity: 0;
    transition: opacity var(--transition-fast), background var(--transition-fast);
    font-size: 1.5rem;
}
.carousel-container:hover .carousel-btn { opacity: 1; }
.carousel-btn:hover { background: rgba(0,0,0,0.8); }
.carousel-btn.prev { left: -4%; width: 4%; }
.carousel-btn.next { right: -4%; width: 4%; }

/* ======================================== */
/* === Cards ============================== */
/* ======================================== */

.ott-card {
    flex: 0 0 16.66%; /* Desktop 6 items */
    min-width: 200px;
    max-width: 300px;
    aspect-ratio: 16/9;
    border-radius: 6px;
    position: relative;
    scroll-snap-align: start;
    cursor: pointer;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    background: #111;
    overflow: hidden;
}

.ott-card:hover {
    transform: scale(1.08);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.ott-card-logo {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3.5rem;
    opacity: 0.6;
    transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}
.ott-card:hover .ott-card-logo { 
    opacity: 1; 
    transform: translate(-50%, -70%); 
}

.ott-card-info {
    position: absolute;
    bottom: 0; left: 0; width: 100%;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0) 100%);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all var(--transition-smooth);
}

.ott-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.play-icon {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-smooth);
}
.ott-card:hover .play-icon {
    opacity: 1;
    transform: scale(1);
}

/* ======================================== */
/* === AdBlock Overlay ==================== */
/* ======================================== */
.adblock-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    z-index: 9999; display: flex; justify-content: center; align-items: center;
}
.adblock-modal {
    padding: 3rem; text-align: center; border-radius: 12px;
    max-width: 400px; border: 1px solid var(--accent);
}

/* ======================================== */
/* === Ads & Skeletons ==================== */
/* ======================================== */

.ott-ad-card {
    background: #111 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.ott-ad-card:hover {
    transform: scale(1.02); /* Less scale for ads so they don't break layout */
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.1);
}
.ad-tag {
    position: absolute;
    top: 10px; right: 10px;
    background: rgba(255,255,255,0.2);
    padding: 2px 6px;
    border-radius: 2px;
    font-size: 0.6rem;
    font-weight: bold;
    color: #aaa;
}

.ad-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.ad-overlay {
    position: absolute;
    bottom: 40px; right: 40px;
    z-index: 100;
    background: rgba(0,0,0,0.8);
    padding: 10px;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
}
.close-ad-overlay {
    position: absolute;
    top: -10px; right: -10px;
    background: #e50914;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px; height: 24px;
    cursor: pointer;
}

.no-results {
    text-align: center;
    padding: 100px 0;
    color: var(--text-muted);
}
.no-results i { font-size: 3rem; margin-bottom: 1rem; color: #333; }

/* ======================================== */
/* === Footer ============================= */
/* ======================================== */

.ott-footer {
    padding: 2rem 4%;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 2rem;
}
.disclaimer {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #555;
}

/* ======================================== */
/* === Responsive ========================= */
/* ======================================== */

@media (max-width: 1200px) { 
    .ott-card { flex: 0 0 20%; } 
}
@media (max-width: 900px) { 
    .ott-card { flex: 0 0 25%; } 
    #hero-title { font-size: 3rem; }
}
@media (max-width: 600px) { 
    .ott-card { flex: 0 0 40%; min-width: 150px; }
    .hero-section { height: 40vh; min-height: 300px; }
    #hero-title { font-size: 2.2rem; }
    #hero-description { font-size: 0.9rem; }
    .nav-center { display: none; }
    .ott-search input { width: 120px; }
    .carousel-btn { display: none; }
    .mobile-only { display: block; }
}
