/* ── Reset & Base ─────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{background:#0f0f0f;color:#e5e5e5;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}

/* ── Colors ──────────────────────────────── */
:root{--red:#e50914;--red-dark:#c40812;--bg:#0f0f0f;--bg2:#161616;--gray900:#111;--gray800:#1a1a1a;--gray700:#2a2a2a;--gray600:#404040;--gray400:#9ca3af;--gray300:#d1d5db;--white:#fff}
.tvd-red{color:var(--red)}

/* ── Header ─────────────────────────────── */
.tvd-header{position:fixed;top:0;left:0;right:0;z-index:100;transition:background .3s;background:linear-gradient(to bottom,rgba(0,0,0,.85),transparent)}
.tvd-header.scrolled{background:rgba(0,0,0,.96);backdrop-filter:blur(12px);box-shadow:0 2px 20px rgba(0,0,0,.5)}
.tvd-header-inner{max-width:1600px;margin:0 auto;padding:0 20px;height:64px;display:flex;align-items:center;gap:24px}
.tvd-logo{display:flex;align-items:center;gap:8px;font-size:22px;font-weight:900;color:var(--white);flex-shrink:0}
.tvd-logo svg{color:var(--red)}
.tvd-logo-icon{width:32px;height:32px;color:var(--red)}
.tvd-live-dot{width:8px;height:8px;background:var(--red);border-radius:50%;animation:pulse 2s infinite;border:2px solid var(--bg)}
.tvd-nav{display:none;align-items:center;gap:4px;flex:1}
@media(min-width:1024px){.tvd-nav{display:flex}}
.tvd-nav-link{padding:8px 14px;border-radius:6px;font-size:14px;font-weight:500;color:#ccc;transition:all .2s}
.tvd-nav-link:hover{color:var(--white);background:rgba(255,255,255,.08)}
.tvd-header-right{display:flex;align-items:center;gap:8px;margin-left:auto}
.tvd-live-badge{display:flex;align-items:center;gap:6px;background:rgba(229,9,20,.1);border:1px solid rgba(229,9,20,.3);color:var(--red);font-size:12px;font-weight:700;padding:6px 12px;border-radius:20px;transition:background .2s}
.tvd-live-badge:hover{background:rgba(229,9,20,.2)}
.tvd-signal-dot{width:7px;height:7px;background:var(--red);border-radius:50%;animation:pulse 1.5s infinite}
.tvd-search-btn,.tvd-burger{background:none;border:none;color:#ccc;cursor:pointer;padding:8px;display:flex;align-items:center;justify-content:center;transition:color .2s}
.tvd-search-btn:hover,.tvd-burger:hover{color:var(--white)}
.tvd-burger{display:flex;flex-direction:column;gap:5px;width:36px;height:36px;justify-content:center;align-items:center}
.tvd-burger span{display:block;width:22px;height:2px;background:#ccc;transition:all .3s;border-radius:2px}
.tvd-burger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.tvd-burger.open span:nth-child(2){opacity:0}
.tvd-burger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
@media(min-width:1024px){.tvd-burger{display:none}}
.tvd-search-bar{max-height:0;overflow:hidden;transition:max-height .3s;background:rgba(0,0,0,.95);border-bottom:1px solid #222}
.tvd-search-bar.open{max-height:80px}
.tvd-search-inner{max-width:600px;margin:0 auto;padding:12px 20px;display:flex;gap:8px}
.tvd-search-inner input{flex:1;background:#1a1a1a;border:1px solid #333;color:var(--white);padding:10px 16px;border-radius:10px;font-size:14px;outline:none}
.tvd-search-inner input:focus{border-color:var(--red)}
.tvd-search-inner button{background:var(--red);color:var(--white);border:none;padding:10px 20px;border-radius:10px;font-weight:600;cursor:pointer;font-size:14px;transition:background .2s}
.tvd-search-inner button:hover{background:var(--red-dark)}
.tvd-mobile-nav{display:none;flex-direction:column;background:rgba(0,0,0,.98);border-top:1px solid #222;padding:8px 0}
.tvd-mobile-nav.open{display:flex}
.tvd-mobile-nav a{padding:14px 24px;font-size:14px;font-weight:500;color:#ccc;transition:all .2s;border-bottom:1px solid #111}
.tvd-mobile-nav a:hover{color:var(--white);background:rgba(255,255,255,.04)}

/* ── Main ────────────────────────────────── */
.tvd-main{padding-top:64px;min-height:100vh}

/* ── Hero ────────────────────────────────── */
.tvd-hero{background:linear-gradient(to bottom,rgba(229,9,20,.15),transparent);padding:48px 20px 60px;text-align:center}
.tvd-hero-inner{max-width:800px;margin:0 auto}
.tvd-hero h1{font-size:clamp(2rem,5vw,3.5rem);font-weight:900;color:var(--white);line-height:1.1;margin:16px 0 20px}
.tvd-hero p{font-size:clamp(1rem,2vw,1.2rem);color:#9ca3af;max-width:600px;margin:0 auto 32px}
.tvd-hero-btns{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;margin-bottom:28px}
.tvd-cat-pills{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.tvd-cat-pill{background:#1a1a1a;border:1px solid #2a2a2a;color:#ccc;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:500;transition:all .2s}
.tvd-cat-pill:hover{background:var(--red);border-color:var(--red);color:var(--white)}
.mb-4{margin-bottom:16px}

/* ── Buttons ─────────────────────────────── */
.tvd-btn{display:inline-flex;align-items:center;gap:8px;font-weight:700;padding:12px 28px;border-radius:12px;transition:all .2s;border:none;cursor:pointer;font-size:15px}
.tvd-btn-primary{background:var(--red);color:var(--white)}
.tvd-btn-primary:hover{background:var(--red-dark)}
.tvd-btn-secondary{background:#1a1a1a;color:var(--white);border:1px solid #333}
.tvd-btn-secondary:hover{background:#222}

/* ── Sections ────────────────────────────── */
.tvd-section{max-width:1600px;margin:0 auto;padding:32px 20px}
.tvd-section-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.tvd-section-title{display:flex;align-items:center;gap:8px;font-size:clamp(1.1rem,2.5vw,1.5rem);font-weight:900;color:var(--white)}
.tvd-view-all{font-size:14px;color:var(--red);font-weight:600;transition:color .2s}
.tvd-view-all:hover{color:#ff4d4d}
.tvd-live-pulse{width:10px;height:10px;background:var(--red);border-radius:50%;animation:pulse 1.5s infinite}
.tvd-pulse{animation:pulse 2s infinite}

/* ── Channel Grid ────────────────────────── */
.tvd-channel-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:12px}
@media(min-width:640px){.tvd-channel-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:14px}}
@media(min-width:1024px){.tvd-channel-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:16px}}

/* ── Channel Card ────────────────────────── */
.tvd-channel-card{background:#1a1a1a;border:1px solid #222;border-radius:14px;padding:14px 10px 12px;display:flex;flex-direction:column;align-items:center;gap:8px;cursor:pointer;transition:all .25s;text-align:center}
.tvd-channel-card:hover{background:#222;border-color:#404040;transform:translateY(-3px);box-shadow:0 8px 24px rgba(229,9,20,.15)}
.tvd-ch-logo{width:64px;height:64px;border-radius:10px;overflow:hidden;background:#111;display:flex;align-items:center;justify-content:center;flex-shrink:0}
@media(min-width:640px){.tvd-ch-logo{width:72px;height:72px}}
.tvd-ch-logo img{width:100%;height:100%;object-fit:contain;padding:6px}
.tvd-ch-initial{font-size:24px;font-weight:900;color:var(--white)}
.tvd-ch-name{font-size:12px;font-weight:600;color:var(--white);line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
@media(min-width:640px){.tvd-ch-name{font-size:13px}}
.tvd-ch-cat{font-size:10px;color:#6b7280}
.tvd-ch-badge{display:flex;align-items:center;gap:4px;font-size:9px;font-weight:700;background:rgba(229,9,20,.2);color:var(--red);padding:2px 6px;border-radius:10px}
.tvd-ch-badge-dot{width:5px;height:5px;background:var(--red);border-radius:50%;animation:pulse 1.5s infinite}

/* ── Stats ───────────────────────────────── */
.tvd-stats{max-width:1600px;margin:0 auto 32px;padding:0 20px}
.tvd-stats-inner{background:#1a1a1a;border:1px solid #222;border-radius:20px;padding:28px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:20px}
.tvd-stat{text-align:center}
.tvd-stat span{display:block;font-size:2rem;font-weight:900;color:var(--white)}
.tvd-stat small{color:#6b7280;font-size:13px}

/* ── Blog Grid ───────────────────────────── */
.tvd-blog-grid{display:grid;grid-template-columns:1fr;gap:24px}
@media(min-width:640px){.tvd-blog-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.tvd-blog-grid{grid-template-columns:repeat(3,1fr)}}
.tvd-blog-card{background:#1a1a1a;border:1px solid #222;border-radius:14px;overflow:hidden;transition:border-color .2s}
.tvd-blog-card:hover{border-color:#404040}
.tvd-blog-thumb{display:block;aspect-ratio:16/9;overflow:hidden}
.tvd-blog-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.tvd-blog-card:hover .tvd-blog-thumb img{transform:scale(1.04)}
.tvd-blog-body{padding:16px}
.tvd-blog-meta{font-size:12px;color:#6b7280;margin-bottom:8px}
.tvd-blog-body h3{font-size:16px;font-weight:700;color:var(--white);line-height:1.4;margin-bottom:8px}
.tvd-blog-body h3 a:hover{color:var(--red)}
.tvd-blog-body p{font-size:13px;color:#9ca3af;line-height:1.6;margin-bottom:12px}
.tvd-blog-read{font-size:13px;font-weight:600;color:var(--red);transition:color .2s}
.tvd-blog-read:hover{color:#ff4d4d}

/* ── SEO Section ─────────────────────────── */
.tvd-seo-section{border-top:1px solid #111;background:#000;padding:48px 20px}
.tvd-seo-inner{max-width:900px;margin:0 auto}
.tvd-seo-inner h2{font-size:20px;font-weight:700;color:#ccc;margin-bottom:16px}
.tvd-seo-grid{display:grid;grid-template-columns:1fr;gap:16px;font-size:13px;color:#6b7280;line-height:1.8}
@media(min-width:640px){.tvd-seo-grid{grid-template-columns:1fr 1fr}}
.tvd-seo-grid strong{color:#9ca3af}

/* ── Live Page ───────────────────────────── */
.tvd-live-page{padding:20px}
.tvd-live-header{max-width:1600px;margin:0 auto 20px;display:flex;align-items:center;justify-content:space-between}
.tvd-live-header h1{display:flex;align-items:center;gap:10px;font-size:clamp(1.3rem,3vw,2rem);font-weight:900;color:var(--white)}
.tvd-live-header p{color:#6b7280;font-size:14px;margin-top:4px}

/* ── Player ──────────────────────────────── */
.tvd-player-container{max-width:900px;margin:0 auto 24px;border-radius:16px;overflow:hidden;background:#000;border:1px solid #222}
.tvd-player-box{position:relative;aspect-ratio:16/9;background:#000}
.tvd-player-box video{width:100%;height:100%;display:block}
.tvd-player-overlay{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:space-between}
.tvd-overlay-loading,.tvd-overlay-error{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:rgba(0,0,0,.75);gap:12px;color:#ccc;font-size:14px}
.tvd-overlay-error p{font-size:16px;font-weight:600;color:var(--white)}
.tvd-player-controls{display:flex;flex-direction:column;justify-content:space-between;height:100%;opacity:0;transition:opacity .3s;background:linear-gradient(to bottom,rgba(0,0,0,.6) 0%,transparent 40%,transparent 60%,rgba(0,0,0,.8) 100%)}
.tvd-player-box:hover .tvd-player-controls{opacity:1}
.tvd-controls-top,.tvd-controls-bottom{display:flex;align-items:center;gap:12px;padding:12px 16px}
.tvd-controls-top{justify-content:space-between}
.tvd-controls-bottom{gap:10px}
.tvd-ctrl-live{display:flex;align-items:center;gap:6px;font-size:12px;color:#ccc;flex:1;justify-content:center}
.tvd-close-btn{background:rgba(0,0,0,.5);border:none;color:var(--white);width:30px;height:30px;border-radius:50%;cursor:pointer;font-size:16px;display:flex;align-items:center;justify-content:center}
.tvd-player-controls button:not(.tvd-close-btn){background:none;border:none;color:var(--white);cursor:pointer;font-size:18px;padding:4px;transition:color .2s}
.tvd-player-controls button:hover:not(.tvd-close-btn){color:var(--red)}
#tvd-volume{width:80px;accent-color:var(--red)}

/* ── Search & Cats ───────────────────────── */
.tvd-search-section{max-width:1600px;margin:0 auto 16px}
.tvd-search-wrap{position:relative;max-width:480px}
.tvd-search-wrap svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:#6b7280}
.tvd-search-wrap input{width:100%;background:#1a1a1a;border:1px solid #2a2a2a;color:var(--white);padding:10px 16px 10px 40px;border-radius:10px;font-size:14px;outline:none}
.tvd-search-wrap input:focus{border-color:var(--red)}
.tvd-cats-bar{max-width:1600px;margin:0 auto 20px;display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none}
.tvd-cats-bar::-webkit-scrollbar{display:none}
.tvd-cat-btn{flex-shrink:0;background:#1a1a1a;border:1px solid #2a2a2a;color:#9ca3af;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:500;cursor:pointer;transition:all .2s;white-space:nowrap}
.tvd-cat-btn:hover,.tvd-cat-btn.active{background:var(--red);border-color:var(--red);color:var(--white)}
.tvd-live-grid{max-width:1600px;margin:0 auto}

/* ── Single Post ─────────────────────────── */
.tvd-single-post,.tvd-page-content,.tvd-archive{padding:40px 20px;min-height:70vh}
.tvd-post-container{max-width:800px;margin:0 auto}
.tvd-post-thumb{border-radius:16px;overflow:hidden;margin-bottom:24px;aspect-ratio:16/9}
.tvd-post-thumb img{width:100%;height:100%;object-fit:cover}
.tvd-post-meta{font-size:13px;color:#6b7280;margin-bottom:12px;display:flex;gap:8px}
.tvd-post-title{font-size:clamp(1.5rem,4vw,2.5rem);font-weight:900;color:var(--white);line-height:1.2;margin-bottom:24px}
.tvd-post-content{color:#d1d5db;line-height:1.8;font-size:16px}
.tvd-post-content h2,.tvd-post-content h3{color:var(--white);margin:28px 0 12px;font-weight:700}
.tvd-post-content h2{font-size:1.4rem}
.tvd-post-content h3{font-size:1.2rem}
.tvd-post-content p{margin-bottom:16px}
.tvd-post-content a{color:var(--red);text-decoration:underline}
.tvd-post-content img{border-radius:10px;margin:20px 0}
.tvd-post-back{margin-top:40px}
.tvd-pagination{margin-top:32px;display:flex;justify-content:center}

/* ── Footer ──────────────────────────────── */
.tvd-footer{background:#000;border-top:1px solid #1a1a1a;margin-top:60px}
.tvd-footer-inner{max-width:1600px;margin:0 auto;padding:48px 20px 24px}
.tvd-footer-grid{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin-bottom:40px}
@media(min-width:768px){.tvd-footer-grid{grid-template-columns:2fr 1fr 1fr 1fr}}
.tvd-footer-brand p{font-size:14px;color:#6b7280;line-height:1.7;margin-top:12px}
.tvd-footer h4{color:var(--white);font-weight:600;font-size:13px;text-transform:uppercase;letter-spacing:.05em;margin-bottom:16px}
.tvd-footer ul{list-style:none}
.tvd-footer ul li{margin-bottom:10px}
.tvd-footer ul li a{font-size:14px;color:#6b7280;transition:color .2s}
.tvd-footer ul li a:hover{color:var(--white)}
.tvd-footer-seo{border-top:1px solid #1a1a1a;padding:20px 0;font-size:12px;color:#404040;line-height:1.8}
.tvd-footer-seo strong{color:#6b7280}
.tvd-footer-bottom{border-top:1px solid #1a1a1a;padding-top:20px;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px}
.tvd-footer-bottom p{font-size:13px;color:#404040}
.tvd-footer-links{display:flex;gap:16px}
.tvd-footer-links a{font-size:12px;color:#404040;transition:color .2s}
.tvd-footer-links a:hover{color:#6b7280}

/* ── Loading / Spinner ───────────────────── */
.tvd-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px;gap:16px;color:#6b7280;font-size:14px;grid-column:1/-1}
.tvd-spinner{width:36px;height:36px;border:3px solid #222;border-top-color:var(--red);border-radius:50%;animation:spin .8s linear infinite}
.tvd-empty{grid-column:1/-1;text-align:center;padding:60px 20px;color:#6b7280}
.tvd-empty h3{font-size:18px;color:#9ca3af;margin-bottom:8px}

/* ── Animations ──────────────────────────── */
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
@keyframes spin{to{transform:rotate(360deg)}}

/* ── Utilities ───────────────────────────── */
.hidden{display:none!important}
