* { box-sizing: border-box; }
html { background: #07080c; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body { margin: 0; min-height: 100vh; background: #07080c; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, p { margin: 0; }
.app { max-width: 520px; min-height: 100vh; margin: 0 auto; background: #0d0e13; }
.screen { min-height: 100vh; padding: 12px 12px 84px; }
.app-head, .top, .plain-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 0 12px; }
.channel-tabs { display: flex; align-items: center; gap: 18px; overflow-x: auto; scrollbar-width: none; }
.channel-tabs::-webkit-scrollbar { display: none; }
.channel-tabs a { flex: 0 0 auto; color: #aeb2bd; font-size: 16px; font-weight: 800; line-height: 34px; position: relative; }
.channel-tabs a.active { color: #fff; font-size: 22px; }
.channel-tabs a.active::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 18px; height: 3px; transform: translateX(-50%); border-radius: 99px; background: #ff3d39; }
.search-pill, .plain-head a, .share { flex: 0 0 auto; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 8px 11px; color: #e8e9ee; font-size: 13px; background: rgba(255,255,255,.07); backdrop-filter: blur(12px); }
.plain-head h1 { font-size: 25px; line-height: 1.2; }
.eyebrow { margin: 0 0 4px; color: #ffdf78; font-size: 13px; }
.hero { position: relative; min-height: 456px; display: flex; align-items: flex-end; border-radius: 8px; overflow: hidden; background-size: cover; background-position: center; margin-bottom: 12px; box-shadow: 0 20px 50px rgba(0,0,0,.34); }
.feed-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,61,57,.1), transparent 42%); pointer-events: none; }
.hero-badge { position: absolute; left: 14px; top: 14px; z-index: 1; padding: 6px 9px; border-radius: 999px; background: rgba(0,0,0,.48); color: #ffdf78; font-size: 12px; font-weight: 800; }
.hero-info { position: relative; z-index: 1; padding: 22px 18px 20px; }
.hero-info span { color: #ffdf78; font-size: 13px; font-weight: 700; }
.hero-info h2 { margin-top: 8px; font-size: 29px; line-height: 1.08; letter-spacing: 0; }
.hero-info p { margin: 10px 0 16px; color: #e3e5eb; font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; align-items: center; gap: 10px; }
.primary, .ghost { display: inline-flex; align-items: center; justify-content: center; height: 42px; border-radius: 999px; font-weight: 900; }
.primary { min-width: 136px; padding: 0 18px; background: #ff3d39; color: #fff; box-shadow: 0 10px 28px rgba(255,61,57,.34); }
.ghost { min-width: 72px; padding: 0 16px; background: rgba(255,255,255,.12); color: #fff; }
.wide { width: 100%; }
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 18px; }
.quick-grid a { min-height: 70px; border-radius: 8px; padding: 11px 10px; background: linear-gradient(145deg, #1e212b, #14161e); border: 1px solid rgba(255,255,255,.06); }
.quick-grid strong, .quick-grid span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quick-grid strong { font-size: 14px; }
.quick-grid span { margin-top: 7px; color: #9da2af; font-size: 12px; }
.chips { display: flex; gap: 9px; overflow-x: auto; padding: 2px 0 15px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips a { flex: 0 0 auto; padding: 9px 13px; border-radius: 999px; background: #191c24; color: #e6e8ee; font-size: 13px; }
.chips a.active { background: #fff; color: #15161c; font-weight: 900; }
.sticky { position: sticky; top: 0; z-index: 2; background: #0d0e13; padding-top: 8px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin: 18px 0 12px; }
.section-head h2 { font-size: 19px; line-height: 1.2; }
.section-head a, .section-head span { color: #a6abb6; font-size: 13px; }
.rank-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rank-card { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 9px; min-width: 0; padding: 8px; border-radius: 8px; background: #171a22; border: 1px solid rgba(255,255,255,.05); }
.rank-card i { position: absolute; left: 6px; top: 6px; z-index: 1; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #ff3d39; font-style: normal; font-size: 12px; font-weight: 900; }
.rank-card img { width: 56px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; background: #252934; }
.rank-card strong, .rank-card span { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rank-card strong { font-size: 13px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rank-card span { margin-top: 7px; color: #9ea3ae; font-size: 11px; white-space: nowrap; }
.grid-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px 9px; }
.card { min-width: 0; }
.poster { position: relative; border-radius: 8px; overflow: hidden; background: #252934; }
.poster img, .card > img { width: 100%; aspect-ratio: 3 / 4.24; object-fit: cover; display: block; }
.poster::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72)); }
.poster em { position: absolute; right: 6px; bottom: 6px; z-index: 1; padding: 3px 6px; border-radius: 4px; background: rgba(255,61,57,.96); color: #fff; font-size: 10px; font-style: normal; font-weight: 900; }
.card strong { display: block; margin-top: 8px; font-size: 13px; line-height: 1.25; min-height: 34px; overflow: hidden; }
.card span { display: block; margin-top: 4px; color: #969ba7; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabbar { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: min(520px, 100%); height: calc(62px + env(safe-area-inset-bottom)); padding: 7px 8px env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(13,14,19,.94); border-top: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(18px); z-index: 10; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #8f94a3; font-size: 11px; }
.tab span { width: 23px; height: 23px; display: flex; align-items: center; justify-content: center; font-size: 18px; line-height: 1; }
.tab.active { color: #ff514d; font-weight: 800; }
.detail-hero { height: 280px; margin: -12px -12px 0; background-size: cover; background-position: center; position: relative; }
.back { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; margin: 14px; border-radius: 50%; background: rgba(0,0,0,.44); font-size: 34px; line-height: 1; backdrop-filter: blur(10px); }
.share { position: absolute; right: 14px; top: 14px; }
.floating { position: absolute; left: 0; top: 0; z-index: 2; }
.detail-main { display: grid; grid-template-columns: 108px 1fr; gap: 14px; margin-top: -66px; position: relative; }
.detail-main img { width: 108px; aspect-ratio: 3 / 4.15; border-radius: 8px; object-fit: cover; box-shadow: 0 14px 28px rgba(0,0,0,.35); }
.detail-main h1 { font-size: 23px; line-height: 1.18; padding-top: 58px; }
.detail-main p { margin-top: 8px; color: #bdc1cb; font-size: 13px; }
.tagline { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tagline span { padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.09); color: #e1e3e9; font-size: 12px; }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 12px; }
.stats-row div { padding: 12px 8px; border-radius: 8px; background: #171a22; text-align: center; }
.stats-row strong, .stats-row span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stats-row strong { font-size: 15px; }
.stats-row span { margin-top: 5px; color: #9399a5; font-size: 11px; }
.actions { display: grid; grid-template-columns: 1fr 88px; gap: 10px; margin: 14px 0 18px; }
.actions button { border: 0; border-radius: 999px; color: #fff; background: #242832; font-weight: 900; }
.copy { padding: 14px; border-radius: 8px; background: #171a22; }
.copy h2 { font-size: 17px; margin-bottom: 8px; }
.copy p { color: #d5d8df; line-height: 1.65; font-size: 14px; margin-top: 6px; }
.episodes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.episodes a { display: flex; align-items: center; justify-content: center; height: 40px; border-radius: 8px; background: #1c202a; color: #eef0f5; font-weight: 800; font-size: 13px; }
.episodes a.active { background: #ff3d39; }
.compact { max-height: 45vh; overflow: auto; padding-bottom: 8px; }
.player { margin: -12px -12px 0; height: 70vh; min-height: 500px; background: #030305; display: flex; align-items: center; justify-content: center; position: relative; }
.player video { width: 100%; height: 100%; object-fit: contain; }
.play-count { position: absolute; right: 14px; top: 18px; z-index: 2; padding: 7px 10px; border-radius: 999px; background: rgba(0,0,0,.46); color: #fff; font-size: 13px; font-weight: 800; }
.video-empty { width: 78%; min-height: 278px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border-radius: 8px; border: 1px solid rgba(255,255,255,.12); background: linear-gradient(160deg, #222633, #090a0e); padding: 22px; }
.video-empty strong { font-size: 22px; line-height: 1.25; }
.video-empty span { margin-top: 10px; color: #ffdf78; }
.video-empty p { margin-top: 14px; color: #a8acb8; line-height: 1.55; }
.watch-info { padding: 16px 0 8px; }
.watch-info h1 { font-size: 22px; }
.watch-info p { margin-top: 8px; color: #aaaeb9; font-size: 13px; }
.search-box { display: grid; grid-template-columns: 1fr 74px; gap: 9px; margin-bottom: 14px; }
.search-box input { height: 44px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; background: #171a22; color: #fff; padding: 0 12px; outline: none; }
.search-box button { border: 0; border-radius: 8px; background: #ff3d39; color: #fff; font-weight: 900; }
.vertical-list { display: grid; gap: 12px; }
.row { display: grid; grid-template-columns: 86px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 8px; background: #171a22; }
.row img { width: 86px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; }
.row strong { display: block; font-size: 16px; line-height: 1.25; }
.row span, .row p { display: block; margin-top: 7px; color: #aeb2be; font-size: 12px; line-height: 1.35; }
.profile { display: grid; grid-template-columns: 58px 1fr; gap: 12px; align-items: center; padding: 16px; border-radius: 8px; background: #171a22; }
.avatar { width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #ff3d39; font-size: 24px; font-weight: 900; }
.profile h2 { font-size: 18px; }
.profile p, .empty { margin-top: 6px; color: #aeb2be; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); padding: 10px 16px; border-radius: 999px; background: rgba(0,0,0,.76); color: #fff; z-index: 20; }
@media (min-width: 700px) {
  body { background: radial-gradient(circle at top, #30333e, #07080c 46%); }
  .app { box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 30px 90px rgba(0,0,0,.45); }
}
