:root{
  --blue:#2f6df6;
  --blue-dark:#1f57dc;
  --ink:#121a2f;
  --muted:#8794ad;
  --soft:#f4f7ff;
  --card:#ffffff;
  --line:#e9effb;
  --shadow:0 18px 42px rgba(31,58,114,.10);
  --radius:24px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Poppins,system-ui,-apple-system,Segoe UI,sans-serif;
  color:var(--ink);
  background:linear-gradient(120deg,#fbfdff 0%,#f2f6ff 52%,#fffafc 100%);
  min-height:100vh;
  overflow-x:hidden;
}
.bg-art{
  position:fixed;
  inset:0;
  z-index:-2;
  background:url('assets/asset_65.jpg') center 12%/cover no-repeat;
  opacity:.055;
}
.bg-art::after{content:"";position:absolute;inset:0;background:rgba(255,255,255,.84)}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
.card{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.86);
  box-shadow:var(--shadow);
  border-radius:var(--radius);
}
.navbar{
  width:min(1220px,calc(100% - 48px));
  margin:22px auto 28px;
  min-height:66px;
  padding:0 18px 0 30px;
  display:flex;
  align-items:center;
  gap:24px;
  background:rgba(255,255,255,.96);
  border-radius:18px;
  box-shadow:var(--shadow);
  position:sticky;
  top:16px;
  z-index:20;
  backdrop-filter:blur(12px);
}
.brand{flex:0 0 auto;font-size:32px;line-height:1;font-weight:800;color:var(--blue);letter-spacing:-1px}
.menu{display:flex;align-items:center;gap:6px;margin-left:22px;white-space:nowrap}
.menu a{font-size:14px;font-weight:700;padding:16px 18px;border-radius:10px;position:relative}
.menu a.active{background:#eef4ff}
.menu a.active::after{content:"";position:absolute;left:18px;right:18px;bottom:-12px;height:3px;border-radius:10px;background:var(--blue)}
.search{margin-left:auto;display:flex;align-items:center;width:260px;height:48px;border:1.5px solid #d7e2fb;border-radius:12px;background:#fff;padding:0 12px 0 18px;flex:0 0 260px}
.search input{border:0;outline:0;min-width:0;flex:1;font:600 13px Poppins;color:var(--ink);background:transparent}
.search input::placeholder{color:#9aa7c5}
.search span{font-size:27px;color:#8da0ca;transform:rotate(-15deg)}
.auth{display:flex;gap:10px;flex:0 0 auto}
.btn{border:0;border-radius:12px;font-weight:800;font-size:14px;display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 19px;cursor:pointer;white-space:nowrap}
.btn-solid{background:var(--blue);color:#fff;box-shadow:0 10px 18px rgba(47,109,246,.2)}
.btn-solid:hover{background:var(--blue-dark)}
.btn-outline{background:#fff;color:var(--blue);border:1.5px solid var(--blue)}
.btn-light{background:#fff;color:var(--blue)}
.page-shell{
  width:min(1220px,calc(100% - 48px));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,805px) minmax(340px,1fr);
  gap:28px;
  align-items:start;
}
.content-left,.sidebar{display:grid;gap:28px;min-width:0}
.hero{height:315px;overflow:hidden;position:relative}
.hero img{width:100%;height:100%;object-fit:cover;object-position:center}
.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(17,26,47,.56) 0%,rgba(17,26,47,.42) 45%,rgba(255,255,255,.13) 100%)}
.hero-copy{position:absolute;left:32px;right:32px;top:34px;bottom:32px;width:min(590px,calc(100% - 64px));color:#fff;display:flex;flex-direction:column;justify-content:flex-end}
.pill{align-self:flex-start;background:var(--blue);border-radius:20px;font-size:13px;font-weight:800;padding:8px 14px;margin-bottom:auto}
.hero h1{font-size:23px;line-height:1.24;margin:24px 0 12px;font-weight:800;max-width:600px}
.hero p{font-size:15px;line-height:1.58;margin:0 0 18px;max-width:580px;font-weight:600}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap}
.section-title{display:flex;justify-content:space-between;align-items:center;gap:16px;min-width:0}
.section-title h2{font-size:22px;margin:0;font-weight:800;letter-spacing:-.3px;line-height:1.2}
.section-title a{font-size:12px;font-weight:800;color:var(--blue);flex:0 0 auto}
.strip{padding:24px}
.trend-row,.popular-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(106px,1fr);gap:16px;align-items:start;margin-top:16px;overflow:hidden;padding-right:62px;position:relative}
.trend-item,.popular-card{position:relative;min-width:0}
.trend-item span{position:absolute;top:5px;left:5px;width:27px;height:27px;border-radius:9px;background:var(--blue);color:#fff;display:grid;place-items:center;font-size:13px;font-weight:800;box-shadow:0 6px 16px rgba(47,109,246,.28);z-index:2}
.trend-item img,.popular-card img{width:100%;height:66px;object-fit:cover;border-radius:12px}
.trend-item b{display:block;margin-top:8px;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.round{width:50px;height:50px;border-radius:50%;border:1px solid #dce6fb;background:#fff;color:var(--blue);font-size:35px;font-weight:500;line-height:0;box-shadow:0 9px 22px rgba(31,58,114,.08);display:grid;place-items:center;z-index:3}
.trend-row>.round{position:absolute;right:0;top:8px}
.anime-block{position:relative;padding:24px;overflow:visible;background:#fff;border:1px solid rgba(225,232,245,.9);border-radius:20px;box-shadow:0 18px 45px rgba(31,58,114,.08)}
.anime-block .section-title{margin-bottom:18px}
.anime-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr)) 54px;gap:18px;align-items:center;padding:0;position:relative}
.anime-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:8px;position:relative;box-shadow:0 12px 28px rgba(31,58,114,.07);min-width:0;overflow:hidden}
.anime-card span{position:absolute;top:12px;left:12px;background:var(--blue);color:#fff;font-size:10px;font-weight:800;padding:5px 9px;border-radius:8px;z-index:2}
.anime-card img{width:100%;height:118px;border-radius:12px;object-fit:cover}
.anime-card h3,.popular-card h3{margin:9px 0 2px;font-size:12.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.anime-card p,.popular-card p,.anime-card small{margin:0;color:var(--muted);font-size:11px;font-weight:700}
.anime-card p{color:var(--blue)}
.floating{position:static;transform:none;justify-self:end;align-self:center}
.anime-block .floating{right:auto}
.popular-row{padding-right:0;grid-template-columns:repeat(5,minmax(0,1fr)) 54px;grid-auto-flow:initial;grid-auto-columns:initial;align-items:center}
.popular-next{position:static;justify-self:end;align-self:center}
.popular-card span{position:absolute;top:6px;left:7px;background:var(--blue);color:#fff;border-radius:18px;font-size:11px;font-weight:800;padding:4px 12px;z-index:2}
.side-card{padding:28px;min-width:0}
.rating-list,.weekly-list{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:12px}
.rating-list li,.weekly-list li,.schedule-list article{display:grid;grid-template-columns:24px 48px minmax(0,1fr) auto;align-items:center;gap:13px;min-width:0}
.rating-list li>b{font-size:20px;line-height:1}
.rating-list img,.weekly-list img,.schedule-list img{width:48px;height:48px;object-fit:cover;border-radius:12px;flex:0 0 auto}
.rating-list h3,.weekly-list h3,.schedule-list h3{margin:0;font-size:13px;line-height:1.28;font-weight:800;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.rating-list p,.weekly-list p,.schedule-list p{margin:2px 0 0;font-size:11px;color:var(--muted);font-weight:700;white-space:nowrap}
.rating-list strong{font-size:13px;color:var(--blue);font-weight:900;white-space:nowrap}
.schedule-list{margin-top:18px;display:grid;gap:15px}
.schedule-list article{grid-template-columns:58px 48px minmax(0,1fr) 36px}
.schedule-list time{background:#eef4ff;color:var(--blue);border-radius:11px;padding:7px 0;text-align:center;font-size:12px;font-weight:900}
.schedule-list span{background:#fff0d7;color:#ffb03b;border-radius:10px;text-align:center;padding:5px 0;font-size:11px;font-weight:900}
.weekly-list li{grid-template-columns:30px 44px minmax(0,1fr) 45px}
.weekly-list li>b{width:28px;height:28px;border-radius:50%;background:var(--blue);color:#fff;display:grid;place-items:center;font-size:13px}
.weekly-list img{width:44px;height:44px}
.up{color:#16b861}.down{color:#eb4c5b}.weekly-list span{font-size:12px;font-weight:900;white-space:nowrap}
.footer{width:min(1220px,calc(100% - 48px));margin:48px auto 48px;padding:30px 34px;display:grid;grid-template-columns:2fr 1fr 1fr 1.1fr 1fr;gap:34px}
.footer p{color:var(--muted);font-weight:700;margin:12px 0 8px}
.footer small{color:#c2cad9;font-weight:700}
.footer h3{font-size:13px;margin:0 0 12px;font-weight:900}
.footer a:not(.brand){display:block;color:#8a97b3;font-size:13px;font-weight:800;margin:7px 0}
.socials{display:flex;gap:10px;flex-wrap:wrap}
.socials img{width:34px;height:34px;object-fit:cover;border-radius:50%}
@media (max-width:1180px){
  .navbar,.page-shell,.footer{width:calc(100% - 36px)}
  .navbar{gap:14px;padding-left:24px}.menu{margin-left:10px}.menu a{padding-inline:13px}.search{width:220px;flex-basis:220px}
  .page-shell{grid-template-columns:minmax(0,1fr) 330px;gap:24px}
  .anime-grid{gap:14px;grid-template-columns:repeat(5,minmax(0,1fr)) 50px}.side-card{padding:24px}
}
@media (max-width:980px){
  .page-shell{grid-template-columns:1fr}
  .sidebar{grid-template-columns:repeat(3,minmax(0,1fr))}
  .search{display:none}
  .popular-row{grid-auto-flow:column;grid-auto-columns:136px;grid-template-columns:none;overflow-x:auto;padding-bottom:4px;padding-right:58px}
  .popular-next{position:absolute;right:0;top:28px}
  .trend-row{overflow-x:auto;padding-bottom:4px}
}
@media (max-width:820px){
  .navbar{height:auto;min-height:66px;flex-wrap:wrap;padding:16px 18px}.menu{order:3;width:100%;overflow:auto;margin:0}.auth{margin-left:auto}.menu a.active::after{bottom:-6px}
  .sidebar{grid-template-columns:1fr}.anime-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding-right:0}.floating,.popular-next{display:none}.hero{height:390px}.footer{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:560px){
  .navbar,.page-shell,.footer{width:calc(100% - 24px)}.brand{font-size:28px}.btn{min-height:42px;padding-inline:14px}.menu a{padding:12px 10px}.hero{height:430px}.hero-copy{left:22px;right:22px;top:22px;bottom:24px;width:auto}.hero h1{font-size:20px}.hero p{font-size:13px}.strip,.side-card,.anime-block{padding:20px}.section-title h2{font-size:18px}.trend-row,.popular-row{grid-auto-columns:132px}.trend-item img,.popular-card img{height:76px}.anime-card img{height:150px}.footer{grid-template-columns:1fr}.rating-list li,.weekly-list li,.schedule-list article{gap:9px}
}
.stream-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 24px;
  background: #111827;
}
.video-player {
  width: 100%;
  height: 460px;
  overflow: hidden;
  border-radius: 24px;
  background: #111827;
  box-shadow: var(--shadow);
}