:root{
  --bg:#f2f3f5;--surface:#fff;--surface-2:#f7f8fa;--text:#101216;--muted:#707680;
  --line:#e4e7eb;--accent:#e3262e;--accent-soft:#fff0f1;--green:#168558;--dark:#17191e;
  --dark-2:#22252c;--safe-bottom:env(safe-area-inset-bottom,0px)
}
*{box-sizing:border-box}
html{background:var(--bg);scroll-behavior:smooth}
body{margin:0;overflow-x:hidden;background:var(--bg);color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Noto Sans KR","Segoe UI",Roboto,Arial,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
button,input{font:inherit}button{color:inherit}a{text-decoration:none;color:inherit}
.app-shell{width:100%;max-width:1080px;margin:0 auto;padding:0 20px 34px}
.topbar{position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;padding:12px 2px;background:rgba(242,243,245,.94);backdrop-filter:blur(16px)}
.brand-wrap{display:flex;align-items:center;gap:9px}.brand{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:800;letter-spacing:-.02em}
.live-dot{width:9px;height:9px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 5px rgba(227,38,46,.10)}
.official-pill{padding:5px 8px;border-radius:999px;background:#e5e7eb;color:#5d636c;font-size:10px;font-weight:800;letter-spacing:.02em}
.icon-btn{width:38px;height:38px;border:1px solid var(--line);background:#fff;border-radius:12px;font-weight:800;cursor:pointer}
.hero{max-width:860px;margin:0 auto;padding:18px 2px 14px}.hero-kicker,.eyebrow{margin:0 0 7px;color:var(--accent);font-size:11px;font-weight:800;letter-spacing:.08em}
.hero h1{margin:0;font-size:32px;line-height:1.16;letter-spacing:-.045em;font-weight:800}.hero>p{margin:12px 0 0;color:var(--muted);font-size:13px;line-height:1.65}
.tv-controller{width:100%;max-width:860px;min-width:0;margin:10px auto 14px;padding:12px;background:var(--dark);border:1px solid #2f333b;border-radius:24px;box-shadow:0 14px 30px rgba(10,12,16,.15)}
.controller-top{display:flex;align-items:center;justify-content:space-between;padding:2px 4px 10px;color:#b9bec8;font-size:10px;font-weight:800;letter-spacing:.08em}
.controller-brand{display:flex;align-items:center;gap:7px}.power-led{width:7px;height:7px;border-radius:50%;background:#ff3b43;box-shadow:0 0 0 4px rgba(255,59,67,.12)}
.controller-top strong{font-variant-numeric:tabular-nums;color:#fff;font-size:12px;letter-spacing:.05em}
.tv-screen{position:relative;overflow:hidden;aspect-ratio:16/9;min-height:0;padding:15px;background:radial-gradient(circle at 62% 36%,rgba(74,84,103,.40),transparent 34%),linear-gradient(155deg,#0d0f13,#252a33 70%,#14171c);border:7px solid #0d0f13;border-radius:18px;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08),inset 0 0 42px rgba(0,0,0,.42),0 2px 0 rgba(255,255,255,.05)}
.screen-scan{position:absolute;inset:0;pointer-events:none;opacity:.055;background:repeating-linear-gradient(to bottom,rgba(255,255,255,.85) 0,rgba(255,255,255,.85) 1px,transparent 1px,transparent 4px)}.tv-screen:before{content:"";position:absolute;z-index:0;inset:-20% 35% 48% -15%;transform:rotate(-10deg);background:linear-gradient(115deg,rgba(255,255,255,.13),rgba(255,255,255,0));filter:blur(2px);pointer-events:none}.tv-screen:after{content:"";position:absolute;z-index:0;inset:0;box-shadow:inset 0 0 54px rgba(0,0,0,.38);pointer-events:none}
.screen-topline,.screen-footer{position:relative;z-index:2;display:flex;align-items:center;justify-content:space-between;color:#aeb4be;font-size:10px;font-weight:800;letter-spacing:.06em}.screen-topline span:first-child{display:inline-flex;align-items:center;min-height:23px;padding:0 8px;border-radius:999px;background:#e3262e;color:#fff;box-shadow:0 0 0 4px rgba(227,38,46,.12);font-size:9px}
.screen-channel{position:relative;z-index:2;display:flex;align-items:center;gap:16px;min-height:0;height:calc(100% - 48px);padding:12px 5px 8px}
.screen-logo{flex:0 0 auto;display:grid;place-items:center;width:82px;height:82px;border-radius:24px;background:linear-gradient(145deg,#fff,#e8ebef);color:#1d2128;font-size:24px;font-weight:900;letter-spacing:-.06em;box-shadow:0 12px 26px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.9)}
.screen-copy{min-width:0}.screen-copy>span{display:block;margin-bottom:5px;color:#b3bac4;font-size:11px;font-weight:700}
.screen-copy h2{margin:0;font-size:25px;line-height:1.15;letter-spacing:-.04em;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.screen-copy p{margin:8px 0 0;color:#9fa6b0;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.official-mark{color:#75d6a9}.remote-row{display:grid;gap:7px}.mode-row{grid-template-columns:repeat(4,1fr);margin-top:10px}
.remote-mode{min-width:0;height:39px;border:1px solid #363a43;background:#23262d;color:#b9bec6;border-radius:11px;font-size:11px;font-weight:800;cursor:pointer}
.remote-mode.active{background:#f4f5f7;border-color:#f4f5f7;color:#17191e}
.remote-main{display:grid;grid-template-columns:68px minmax(0,1fr) 68px;gap:8px;margin-top:8px}
.channel-key,.watch-key{min-width:0;overflow:hidden;height:64px;border-radius:15px}.channel-key{display:flex;flex-direction:column;align-items:center;justify-content:center;border:1px solid #373b44;background:#24272e;color:#fff;cursor:pointer}
.channel-key span{font-size:9px;color:#9ea5af;font-weight:800}.channel-key strong{font-size:25px;line-height:1;font-weight:500}
.watch-key{display:flex;align-items:center;justify-content:center;flex-direction:column;position:relative;background:linear-gradient(180deg,#ff3b43,#e3262e);color:#fff;border:1px solid #ff5a61;box-shadow:0 8px 20px rgba(227,38,46,.28),inset 0 1px 0 rgba(255,255,255,.24);transition:transform .18s ease,box-shadow .18s ease}
.watch-key:hover{transform:translateY(-1px);box-shadow:0 11px 24px rgba(227,38,46,.36),inset 0 1px 0 rgba(255,255,255,.24)}
.watch-key:active{transform:translateY(1px) scale(.985)}
.watch-key b{font-size:15px;font-weight:900;letter-spacing:-.02em}.watch-key small{margin-top:4px;color:rgba(255,255,255,.82);font-size:9px;font-weight:700}.watch-dot{position:absolute;left:12px;top:12px;width:8px;height:8px;border-radius:50%;background:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.16)}
@keyframes onairPulse{0%,100%{box-shadow:0 8px 20px rgba(227,38,46,.28),inset 0 1px 0 rgba(255,255,255,.24)}50%{box-shadow:0 10px 27px rgba(227,38,46,.42),inset 0 1px 0 rgba(255,255,255,.24)}}
.watch-key{animation:onairPulse 2.8s ease-in-out infinite}
.remote-hint{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px;color:#8f96a0;font-size:9px}.remote-hint button{min-height:30px;padding:0 10px;border:1px solid #343942;border-radius:999px;background:#23262d;color:#e6e9ed;font-size:10px;font-weight:800;cursor:pointer}.remote-hint button:hover{background:#2b2f37}
.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0 14px}.stats div{padding:12px 13px;background:#fff;border:1px solid var(--line);border-radius:15px}
.stats strong{display:block;font-size:19px;font-weight:800;letter-spacing:-.03em}.stats span{font-size:10px;color:var(--muted);font-weight:700}
.search-section{padding:2px 0 10px}.search-box{height:50px;display:flex;align-items:center;gap:9px;padding:0 12px 0 15px;background:#fff;border:1px solid var(--line);border-radius:16px}
.search-box>span{font-size:22px;color:#6f7580}.search-box input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:var(--text);font-size:14px}
.search-box input::placeholder{color:#a0a5ad}.search-box button{width:29px;height:29px;border:0;border-radius:50%;background:#f0f1f3;color:#717780;font-size:19px;opacity:0;pointer-events:none}.search-box.has-text button{opacity:1;pointer-events:auto}
.filter-strip{display:flex;gap:7px;overflow-x:auto;padding:3px 0 11px;scrollbar-width:none}.filter-strip::-webkit-scrollbar{display:none}
.filter-chip{flex:0 0 auto;height:35px;padding:0 13px;border:1px solid var(--line);background:#fff;border-radius:999px;font-size:12px;font-weight:800;cursor:pointer}.filter-chip.active{background:#191c21;border-color:#191c21;color:#fff}
.quality-note{display:flex;gap:11px;align-items:flex-start;margin:3px 0 23px;padding:14px 15px;background:#eef5ff;border:1px solid #dce8f8;border-radius:16px}.quality-icon{display:grid;place-items:center;flex:0 0 auto;width:38px;height:27px;border-radius:8px;background:#fff;color:#2869bd;font-size:10px;font-weight:900}
.quality-note strong{display:block;font-size:12px}.quality-note p{margin:4px 0 0;color:#677487;font-size:10px;line-height:1.55}
.section-block{margin-bottom:25px}.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 2px 11px}.section-head h2{margin:0;font-size:20px;font-weight:800;letter-spacing:-.035em}.section-count{font-size:11px;color:var(--muted);font-weight:800}
.featured-head-actions{display:flex;align-items:center;gap:9px}.featured-controls{display:flex;align-items:center;gap:5px}.featured-controls button{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;background:#fff;color:#343941;font-size:22px;line-height:1;cursor:pointer;box-shadow:0 1px 0 rgba(0,0,0,.02)}.featured-controls button:hover{background:#f5f6f7;border-color:#cfd4da}.featured-controls button:active{transform:translateY(1px)}.featured-viewport{position:relative;overflow:hidden}.featured-rail{display:flex;gap:9px;overflow-x:auto;padding:1px 1px 6px;scroll-snap-type:none;scroll-behavior:auto;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x;will-change:scroll-position}.featured-rail::-webkit-scrollbar{display:none}
.featured-card{flex:0 0 176px;min-height:138px;padding:14px;background:#fff;border:1px solid var(--line);border-radius:18px;scroll-snap-align:start;cursor:pointer}.featured-card:active{transform:scale(.985)}
.logo-tile{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#eff1f4;color:#23272e;font-size:16px;font-weight:900;letter-spacing:-.05em}
.featured-card h3{margin:14px 0 4px;font-size:14px;font-weight:800}.featured-card p{margin:0;color:var(--muted);font-size:10px}.mini-tags{display:flex;gap:5px;margin-top:9px}.mini-tag{padding:4px 6px;border-radius:6px;background:#f2f3f5;color:#686e77;font-size:9px;font-weight:800}.mini-tag.live{background:var(--accent-soft);color:var(--accent)}
.channel-list{display:flex;flex-direction:column;gap:10px}.channel-card{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px;background:#fff;border:1px solid var(--line);border-radius:17px;cursor:pointer}.channel-card:active{transform:scale(.994)}
.channel-card.selected{border-color:#2b3038;box-shadow:inset 0 0 0 1px #2b3038}.channel-card .logo-tile{width:50px;height:50px;border-radius:15px}
.channel-main{min-width:0}.channel-topline{display:flex;align-items:center;gap:6px;min-width:0}.channel-name{font-size:14px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.live-badge{padding:3px 6px;border-radius:6px;background:var(--accent-soft);color:var(--accent);font-size:8px;font-weight:900}
.channel-meta{margin-top:4px;color:var(--muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.channel-badges{display:flex;gap:5px;margin-top:7px;overflow:hidden}.badge{flex:0 0 auto;padding:4px 6px;border-radius:6px;background:#f3f4f6;color:#686e77;font-size:8px;font-weight:800}.badge.verified{background:#edf8f2;color:var(--green)}
.card-actions{display:flex;align-items:center;gap:3px}.favorite-btn,.go-btn{display:grid;place-items:center;border:0;cursor:pointer}.favorite-btn{width:34px;height:34px;border-radius:10px;background:#f4f5f7;font-size:17px}.favorite-btn.active{background:#fff0f1;color:var(--accent)}.go-btn{width:29px;height:29px;background:transparent;color:#8d939c;font-size:18px}
.load-more{display:flex;align-items:center;justify-content:center;width:100%;max-width:420px;height:46px;margin:14px auto 0;border:1px solid var(--line);border-radius:14px;background:#fff;color:#343a43;font-size:12px;font-weight:850;cursor:pointer}.load-more:hover{border-color:#cfd4da;background:#f8f9fa}.load-more[hidden]{display:none!important}.empty-state{padding:42px 18px;text-align:center;color:var(--muted)}.empty-state strong{display:block;color:var(--text);margin-bottom:6px}.source-policy{margin:8px 0 4px;padding:18px;background:#e9ebee;border-radius:18px}.source-policy h2{margin:0 0 7px;font-size:14px}.source-policy p{margin:5px 0;color:#646a73;font-size:10px;line-height:1.65}
.bottom-nav{overflow:hidden;position:fixed;z-index:40;left:50%;bottom:0;transform:translateX(-50%);width:100%;max-width:780px;display:grid;grid-template-columns:repeat(4,1fr);padding:8px 10px calc(8px + var(--safe-bottom));background:rgba(255,255,255,.95);border-top:1px solid var(--line);backdrop-filter:blur(18px)}
.nav-item{display:flex;flex-direction:column;align-items:center;gap:2px;border:0;background:transparent;color:#8b9199;font-size:15px;padding:5px 0;cursor:pointer}.nav-item b{font-size:9px}.nav-item.active{color:#111317}
.sheet-backdrop{position:fixed;inset:0;z-index:50;background:rgba(15,17,20,.42);backdrop-filter:blur(2px)}.channel-sheet{position:fixed;z-index:51;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,780px);padding:8px 18px calc(18px + var(--safe-bottom));background:#fff;border-radius:25px 25px 0 0}
.sheet-handle{width:42px;height:5px;margin:3px auto 18px;border-radius:999px;background:#d7d9de}.sheet-head{display:flex;gap:13px;align-items:center}.sheet-head .logo-tile{width:58px;height:58px}.sheet-head h2{margin:0 0 4px;font-size:20px}.sheet-head p{margin:0;color:var(--muted);font-size:11px}
.sheet-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:17px 0}.sheet-grid div{padding:12px;background:var(--surface-2);border-radius:13px}.sheet-grid span{display:block;color:var(--muted);font-size:9px;margin-bottom:4px}.sheet-grid strong{font-size:11px}
.sheet-note{padding:12px;background:#fff8e9;border-radius:12px;color:#72591d;font-size:10px;line-height:1.55}.sheet-actions{display:grid;grid-template-columns:auto 1fr;gap:8px;margin-top:13px}.sheet-actions button,.sheet-actions a{height:47px;border-radius:13px;display:grid;place-items:center;font-size:12px;font-weight:800}.sheet-actions button{width:47px;border:1px solid var(--line);background:#fff}.sheet-actions a{background:#171a20;color:#fff}
.toast{position:fixed;z-index:70;left:50%;bottom:24px;transform:translate(-50%,20px);max-width:calc(100% - 40px);padding:10px 14px;border-radius:999px;background:#1a1d22;color:#fff;font-size:11px;font-weight:700;opacity:0;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(min-width:768px){.app-shell{padding-left:24px;padding-right:24px}.hero h1{font-size:36px}.channel-list{display:grid;grid-template-columns:1fr 1fr}.featured-card{flex-basis:188px}.stats,.search-section,.filter-strip,.quality-note,.section-block,.source-policy{max-width:1000px;margin-left:auto;margin-right:auto}}
@media(max-width:360px){.hero h1{font-size:29px}.remote-main{grid-template-columns:60px minmax(0,1fr) 60px}.screen-logo{width:62px;height:62px}.screen-copy h2{font-size:22px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

@media(min-width:1180px){.channel-list{grid-template-columns:repeat(2,minmax(0,1fr))}.featured-card{flex-basis:196px}}

@media(max-width:767px){.featured-controls{display:none}.featured-head-actions{gap:6px}}
