
/*
Theme Name: D4H HD LIVE
Theme URI: https://d4hhdlive.com/
Author: D4H HD LIVE
Description: Professional responsive Live TV WordPress theme for D4H HD LIVE. Includes TV/Android TV remote navigation, numeric channel switching, fullscreen playback, channel logos and WordPress Channel management.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: d4h-hd-live
*/
:root{
  --bg:#070b14;--panel:#0d1422;--panel2:#111b2d;--text:#f5f7fb;--muted:#9da9bd;
  --accent:#7c4dff;--accent2:#1e88ff;--line:rgba(255,255,255,.09);
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
a{color:inherit;text-decoration:none}.container{width:min(1440px,94%);margin:auto}
.site-header{position:sticky;top:0;z-index:50;background:rgba(7,11,20,.92);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.nav{height:72px;display:flex;align-items:center;gap:24px}.brand{display:flex;align-items:center;gap:12px;font-weight:800;letter-spacing:.4px}.brand img{width:52px;height:52px;object-fit:cover;border-radius:14px}.brand span{font-size:19px}
.menu{display:flex;gap:6px;margin-left:auto}.menu a{padding:10px 13px;border-radius:10px;color:#cbd5e5;font-size:14px}.menu a:hover,.menu a:focus{background:var(--panel2);color:#fff;outline:0}
.search{display:flex;align-items:center;gap:8px;background:var(--panel);border:1px solid var(--line);padding:7px 10px;border-radius:12px}.search input{width:150px;background:transparent;border:0;outline:0;color:#fff}
.hero{position:relative;min-height:430px;display:flex;align-items:center;overflow:hidden;background:radial-gradient(circle at 70% 25%,rgba(124,77,255,.28),transparent 35%),linear-gradient(135deg,#09101e,#070b14)}
.hero:before{content:"";position:absolute;inset:0;background:url("../images/d4h-branding.jpg") center/cover no-repeat;opacity:.17;mix-blend-mode:screen}
.hero-content{position:relative;padding:75px 0;max-width:760px}.eyebrow{display:inline-flex;padding:7px 11px;border:1px solid var(--line);border-radius:999px;background:rgba(255,255,255,.04);font-size:12px;font-weight:700;letter-spacing:1.4px;color:#dbe6ff}.hero h1{font-size:clamp(38px,6vw,76px);line-height:.98;margin:18px 0 16px}.hero p{font-size:18px;line-height:1.65;color:#b7c2d4;max-width:650px}.buttons{display:flex;gap:12px;flex-wrap:wrap;margin-top:26px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:13px 18px;border-radius:12px;font-weight:800;border:1px solid var(--line);background:var(--panel2)}.btn.primary{background:linear-gradient(135deg,var(--accent),var(--accent2));border:0}.section{padding:48px 0}.section-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:20px}.section h2{font-size:28px;margin:0}.section p.lead{color:var(--muted);margin:6px 0 0}
.tv-shell{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.8fr);gap:14px;background:#050810;border:1px solid var(--line);border-radius:18px;padding:12px;box-shadow:0 18px 50px rgba(0,0,0,.35)}
.player-wrap{position:relative;min-height:420px;background:#000;border-radius:14px;overflow:hidden}.player-wrap video{width:100%;height:100%;min-height:420px;display:block;object-fit:contain;background:#000}.player-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none}.loading-logo{width:125px;height:125px;border-radius:20px;object-fit:cover;box-shadow:0 8px 40px rgba(0,0,0,.5);transition:.2s}.hidden{display:none!important}
.player-top{position:absolute;left:14px;right:14px;top:14px;display:flex;justify-content:space-between;gap:10px;pointer-events:none}.badge{background:rgba(0,0,0,.65);padding:7px 10px;border-radius:8px;font-size:12px}.live-dot{color:#ff4757;font-weight:900}.player-controls{position:absolute;left:14px;right:14px;bottom:14px;display:flex;justify-content:space-between;align-items:center;gap:8px;opacity:0;transition:.2s}.player-wrap:hover .player-controls,.player-wrap:focus-within .player-controls{opacity:1}.control-btn{border:1px solid var(--line);background:rgba(0,0,0,.7);color:#fff;border-radius:9px;padding:9px 12px;cursor:pointer}
.channel-panel{background:var(--panel);border-radius:14px;min-height:420px;display:flex;flex-direction:column;overflow:hidden}.channel-head{padding:15px;border-bottom:1px solid var(--line)}.channel-head strong{font-size:15px}.channel-scroll{overflow:auto;max-height:560px;padding:8px}.channel-item{display:flex;align-items:center;gap:11px;width:100%;border:1px solid transparent;background:transparent;color:#e8edf6;text-align:left;padding:10px;border-radius:11px;cursor:pointer}.channel-item:hover,.channel-item:focus,.channel-item.active{background:var(--panel2);border-color:rgba(124,77,255,.45);outline:0}.channel-logo{width:48px;height:48px;flex:0 0 48px;border-radius:10px;background:#fff;object-fit:contain;padding:4px}.channel-meta{min-width:0}.channel-no{font-size:11px;color:#8f9bb0}.channel-name{font-size:14px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.category-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px}.category-card{padding:22px;background:linear-gradient(145deg,var(--panel),#0a101b);border:1px solid var(--line);border-radius:15px}.category-card b{display:block;margin-bottom:6px}.category-card span{font-size:12px;color:var(--muted)}
.footer{border-top:1px solid var(--line);padding:28px 0;color:var(--muted)}.footer-inner{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.about{background:var(--panel);border:1px solid var(--line);padding:28px;border-radius:16px;line-height:1.7;color:#c4ccda}
.admin-note{font-size:12px;color:var(--muted);margin-top:12px}
@media(max-width:1000px){.menu{display:none}.tv-shell{grid-template-columns:1fr}.player-wrap,.player-wrap video{min-height:380px}.channel-panel{min-height:300px}.channel-scroll{max-height:360px}.category-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:650px){.nav{height:64px}.brand img{width:44px;height:44px}.brand span{font-size:15px}.search{margin-left:auto}.search input{width:100px}.hero{min-height:390px}.hero-content{padding:55px 0}.hero h1{font-size:43px}.hero p{font-size:15px}.section{padding:34px 0}.player-wrap,.player-wrap video{min-height:240px}.channel-scroll{max-height:330px}.category-grid{grid-template-columns:repeat(2,1fr)}.player-controls{opacity:1}.buttons .btn{flex:1}.container{width:92%}}
@media(orientation:landscape) and (max-width:900px){.site-header{position:fixed;width:100%}.hero{min-height:100vh}.tv-shell{grid-template-columns:minmax(0,1.6fr) minmax(250px,.7fr)}.player-wrap,.player-wrap video{min-height:70vh}.channel-scroll{max-height:70vh}}
/* TV remote focus visibility */
.tv-focus{outline:3px solid #fff!important;outline-offset:2px}


/* D4H HD LIVE v2 refinements */
.channel-item{transition:transform .12s ease,background .12s ease,border-color .12s ease}
.channel-item:focus,.channel-item.tv-focus{transform:scale(1.015);box-shadow:0 0 0 2px rgba(255,255,255,.9)}
.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,11,20,.92) 0%,rgba(7,11,20,.55) 48%,rgba(7,11,20,.12) 100%);pointer-events:none}
.hero-content{z-index:1}
#d4hPlayer{outline:0}
@media(max-width:900px){
  .tv-shell{grid-template-columns:1fr}
  .channel-panel{min-height:320px}
}
