:root{--bg:#070b12;--panel:#0d1521;--border:#1c293a;--text:#f5f7fb;--muted:#8290a5;--purple:#963dff;--max:1420px}
*{box-sizing:border-box}
body{margin:0;min-width:320px;color:var(--text);background:radial-gradient(circle at 50% -20%,#1a1530 0,transparent 32%),var(--bg);font-family:Arial,Helvetica,sans-serif}
a{color:inherit;text-decoration:none}img{display:block;max-width:100%}button,input{font:inherit}
.site-header{height:68px;border-bottom:1px solid rgba(255,255,255,.07);background:#080d15}
.header-inner{max-width:var(--max);height:100%;margin:auto;padding:0 24px;display:flex;align-items:center;gap:30px}
.brand{display:flex;align-items:center;font-size:21px;font-weight:900;letter-spacing:-1px}
.brand i{width:3px;height:21px;margin:0 4px;border-radius:3px;background:linear-gradient(#40a0ff,#a23dff);transform:skew(-12deg)}
.brand strong{color:#a346ff}.nav{display:flex;gap:25px;font-size:13px;font-weight:700}.nav a{color:#b9c4d4}.nav a:hover,.nav .active{color:#fff}
.top-search{width:300px;height:37px;margin-left:auto;display:flex;overflow:hidden;border:1px solid var(--border);border-radius:9px;background:#0f1723}
.top-search input,.hero-search input{min-width:0;flex:1;border:0;outline:0;padding:0 13px;color:#fff;background:transparent}
.top-search input::placeholder,.hero-search input::placeholder{color:#68778d}.top-search button{width:42px;border:0;color:#dce4ef;background:transparent;cursor:pointer}
.page{max-width:var(--max);margin:auto;padding:18px 24px 60px}
.hero{position:relative;min-height:300px;overflow:hidden;display:flex;align-items:center;border:1px solid var(--border);border-radius:13px;background:#101824;isolation:isolate}
.hero-image{position:absolute;inset:0;z-index:-3;width:100%;height:100%;object-fit:cover}
.hero:before{content:"";position:absolute;inset:0;z-index:-2;background:linear-gradient(90deg,rgba(5,9,16,.98) 0,rgba(5,9,16,.91) 30%,rgba(5,9,16,.5) 62%,rgba(5,9,16,.1) 100%)}
.hero:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(5,9,16,.45),transparent 55%)}
.hero-content{width:600px;max-width:58%;padding:34px 42px}.hero-small{color:#c2ccda;font-size:15px}
.hero h1{margin:3px 0 0;font-size:40px;line-height:.92;letter-spacing:-2px}.hero h1 strong{display:block;color:#b542ff}
.hero p{max-width:530px;margin:14px 0 0;color:#bac5d5;font-size:12px;line-height:1.55}
.hero-genres{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.hero-genres span{padding:5px 7px;border:1px solid rgba(255,255,255,.1);border-radius:5px;background:rgba(7,12,20,.7);color:#dbe2ed;font-size:9px}
.hero-search{width:100%;height:46px;margin-top:17px;display:flex;overflow:hidden;border:1px solid rgba(255,255,255,.1);border-radius:8px;background:rgba(14,22,34,.94)}
.hero-search button{width:52px;border:0;color:#fff;background:linear-gradient(135deg,#813aff,#c226ed);cursor:pointer}.hero-link{display:inline-block;margin-top:13px;color:#c994ff;font-size:11px;font-weight:bold}
.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 250px;gap:20px;margin-top:20px}
.section-heading{min-height:31px;margin-bottom:12px;display:flex;align-items:center;justify-content:space-between}.section-heading h2{margin:0;display:flex;align-items:center;gap:9px;font-size:20px}
.section-heading h2:before{content:"";width:4px;height:20px;border-radius:4px;background:linear-gradient(#aa3fff,#536fff)}.section-heading a{color:#55a2ff;font-size:11px;font-weight:bold}
.anime-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:22px 14px}.anime-card{min-width:0}
.poster{position:relative;aspect-ratio:2/3;overflow:hidden;border:1px solid rgba(255,255,255,.07);border-radius:9px;background:#111a26;transition:.18s ease}
.anime-card:hover .poster{transform:translateY(-3px);border-color:rgba(155,65,255,.55)}.poster img{width:100%;height:100%;object-fit:cover}
.no-image{height:100%;display:grid;place-items:center;color:#5d6b7f;font-size:10px}.score{position:absolute;right:6px;bottom:6px;padding:4px 6px;border-radius:5px;background:rgba(5,9,15,.88);color:#f6d66b;font-size:9px;font-weight:bold}
.anime-card h3{min-height:32px;margin:8px 0 3px;overflow:hidden;color:#f3f6fb;font-size:12px;line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.meta{overflow:hidden;color:#7d8a9f;font-size:9px;white-space:nowrap;text-overflow:ellipsis}.badges{display:flex;gap:5px;margin-top:6px}.badges span{padding:3px 6px;border-radius:4px;background:#4e28a9;color:#e8ddff;font-size:8px;font-weight:bold}
.side-box{overflow:hidden;border:1px solid var(--border);border-radius:11px;background:linear-gradient(#0e1622,#0a111b)}.side-box+.side-box{margin-top:14px}
.side-box>h2{margin:0;padding:13px 14px 10px;border-bottom:1px solid rgba(255,255,255,.055);font-size:13px}.genre-list{padding:7px 13px 11px}
.genre{min-height:28px;display:flex;align-items:center;gap:8px;color:#bac5d5;font-size:10px}.genre-icon{width:16px;height:16px;display:grid;place-items:center;border-radius:4px;background:rgba(140,58,255,.14);color:#a75bff}
.genre-name{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.genre-total{margin-left:auto;color:#64748a;font-size:9px}
.highlights{padding-bottom:5px}.highlight{min-height:60px;margin:0 10px;padding:6px 2px;display:grid;grid-template-columns:18px 39px minmax(0,1fr);gap:8px;align-items:center}
.highlight+.highlight{border-top:1px solid rgba(255,255,255,.045)}.highlight>b{color:#a15aff;text-align:center;font-size:11px}.mini-poster{width:39px;aspect-ratio:2/3;overflow:hidden;border-radius:5px;background:#141d29}
.mini-poster img{width:100%;height:100%;object-fit:cover}.highlight-copy{min-width:0}.highlight-copy strong{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:9px;line-height:1.3}
.highlight-copy small{display:block;margin-top:3px;color:#708096;font-size:8px}.empty{padding:30px;border:1px solid var(--border);border-radius:10px;background:var(--panel);color:var(--muted)}
@media(max-width:1180px){.anime-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:980px){.content-layout{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:1fr 1fr;gap:14px}.side-box+.side-box{margin-top:0}.anime-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:760px){.site-header{height:60px}.header-inner{padding:0 14px}.nav{display:none}.top-search{width:38px;margin-left:auto;border:0;background:transparent}.top-search input{display:none}.page{padding:13px 13px 45px}.hero{min-height:245px;align-items:flex-end}.hero:before{background:linear-gradient(0deg,rgba(5,9,16,.98),rgba(5,9,16,.78) 48%,rgba(5,9,16,.12))}.hero-content{width:100%;max-width:none;padding:22px 19px}.hero-small{font-size:11px}.hero h1{font-size:28px}.hero p,.hero-genres,.hero-link{display:none}.hero-search{height:43px;margin-top:14px}.anime-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px 10px}.sidebar{grid-template-columns:1fr}}
@media(max-width:460px){.anime-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{min-height:225px}.hero h1{font-size:25px}}

/* XP HOME MODEL 2 - SCALE V2 */
@media (min-width:981px){
  :root{--max:1360px}

  .site-header{height:72px}
  .header-inner{padding:0 20px;gap:34px}
  .brand{font-size:25px}
  .brand i{height:25px}
  .nav{gap:30px;font-size:14px}
  .top-search{width:310px;height:41px}

  .page{padding:14px 20px 60px}

  .hero{
    min-height:265px;
    border-radius:12px;
  }

  .hero-image{
    object-position:center 38%;
  }

  .hero:before{
    background:linear-gradient(
      90deg,
      rgba(4,8,15,.97) 0%,
      rgba(4,8,15,.87) 27%,
      rgba(4,8,15,.38) 55%,
      rgba(4,8,15,.06) 100%
    );
  }

  .hero-content{
    width:510px;
    max-width:48%;
    padding:30px 32px;
  }

  .hero-small{
    font-size:14px;
    font-weight:700;
  }

  .hero h1{
    margin-top:3px;
    font-size:42px;
    line-height:.98;
    letter-spacing:-2px;
  }

  .hero h1 strong{
    display:inline;
    color:#fff;
  }

  .hero-tagline{
    margin:10px 0 0;
    font-size:13px;
    color:#c4cedb;
  }

  .hero-search{
    width:440px;
    height:47px;
    margin-top:18px;
  }

  .hero-search button{
    width:54px;
    font-size:18px;
  }

  .content-layout{
    grid-template-columns:minmax(0,1fr) 285px;
    gap:20px;
    margin-top:21px;
  }

  .section-heading{
    margin-bottom:14px;
  }

  .section-heading h2{
    font-size:22px;
  }

  .section-heading a{
    font-size:12px;
  }

  .anime-grid{
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:24px 15px;
  }

  .anime-card h3{
    min-height:37px;
    margin:9px 0 4px;
    font-size:14px;
  }

  .meta{
    font-size:10px;
  }

  .score{
    padding:5px 7px;
    font-size:10px;
  }

  .badges span{
    padding:4px 7px;
    font-size:9px;
  }

  .side-box>h2{
    padding:15px 15px 12px;
    font-size:15px;
  }

  .genre-list{
    padding:9px 14px 13px;
  }

  .genre{
    min-height:34px;
    gap:10px;
    font-size:12px;
  }

  .genre-icon{
    width:20px;
    height:20px;
  }

  .genre-total{
    font-size:10px;
  }

  .highlight{
    min-height:74px;
    margin:0 11px;
    grid-template-columns:22px 48px minmax(0,1fr);
    gap:9px;
  }

  .highlight>b{
    font-size:13px;
  }

  .mini-poster{
    width:48px;
  }

  .highlight-copy strong{
    font-size:11px;
    line-height:1.35;
  }

  .highlight-copy small{
    margin-top:4px;
    font-size:9px;
  }
}

@media (max-width:760px){
  .hero{
    min-height:230px;
  }

  .hero-image{
    object-position:62% center;
  }

  .hero-content{
    padding:22px 18px;
  }

  .hero-small{
    display:block;
    font-size:11px;
  }

  .hero h1{
    font-size:30px;
  }

  .hero h1 strong{
    display:block;
  }

  .hero-tagline{
    display:block !important;
    max-width:250px !important;
    margin:7px 0 0 !important;
    font-size:11px !important;
    line-height:1.35 !important;
  }

  .hero-search{
    width:100%;
    max-width:340px;
    margin-top:14px;
  }

  .anime-card h3{
    font-size:12px;
  }
}

/* XP HOME SIDEBAR V3 */
@media (min-width:981px){
  .content-layout{
    grid-template-columns:minmax(0,1fr) 330px;
    gap:24px;
  }

  .side-box{
    border-radius:12px;
  }

  .side-box>h2{
    padding:18px 18px 15px;
    font-size:17px;
    line-height:1.2;
  }

  .genre-list{
    padding:10px 17px 16px;
  }

  .genre{
    min-height:40px;
    gap:11px;
    font-size:13px;
  }

  .genre-icon{
    width:23px;
    height:23px;
    font-size:13px;
  }

  .genre-total{
    font-size:11px;
  }

  .side-box+.side-box{
    margin-top:18px;
  }

  .highlights{
    padding-bottom:8px;
  }

  .highlight{
    min-height:91px;
    margin:0 14px;
    padding:9px 2px;
    grid-template-columns:24px 58px minmax(0,1fr);
    gap:11px;
  }

  .highlight>b{
    font-size:15px;
  }

  .mini-poster{
    width:58px;
    border-radius:6px;
  }

  .highlight-copy strong{
    font-size:13px;
    line-height:1.35;
  }

  .highlight-copy small{
    margin-top:5px;
    font-size:10px;
  }
}

/* XP HOME SIDEBAR + BADGES V4 */

.anime-card .badges{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:7px;
  width:100%;
  margin-top:8px;
}

.anime-card .badges span{
  min-width:34px;
  padding:5px 9px;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  border-radius:5px;
  background:linear-gradient(135deg,#7135dc,#9c3cff);
  color:#fff;
  font-size:11px;
  line-height:1;
  font-weight:800;
}

@media (min-width:981px){

  .content-layout{
    grid-template-columns:minmax(0,1fr) 380px;
    gap:28px;
  }

  .side-box{
    border-radius:13px;
  }

  .side-box>h2{
    padding:20px 21px 17px;
    font-size:19px;
    font-weight:800;
  }

  .genre-list{
    padding:11px 20px 18px;
  }

  .genre{
    min-height:47px;
    gap:13px;
    font-size:15px;
    font-weight:600;
  }

  .genre-icon{
    width:27px;
    height:27px;
    font-size:15px;
    border-radius:6px;
  }

  .genre-total{
    font-size:13px;
  }

  .side-box+.side-box{
    margin-top:20px;
  }

  .highlights{
    padding-bottom:10px;
  }

  .highlight{
    min-height:112px;
    margin:0 17px;
    padding:11px 3px;
    grid-template-columns:28px 72px minmax(0,1fr);
    gap:13px;
  }

  .highlight>b{
    font-size:17px;
  }

  .mini-poster{
    width:72px;
    border-radius:7px;
  }

  .highlight-copy strong{
    font-size:15px;
    line-height:1.35;
  }

  .highlight-copy small{
    margin-top:6px;
    font-size:12px;
  }
}

@media (max-width:980px){
  .anime-card .badges span{
    min-width:30px;
    padding:4px 8px;
    font-size:10px;
  }
}

/* XP HOME HERO + YEARS V5 */

.hero-small{
  color:#b87cff;
  font-weight:800;
  letter-spacing:.3px;
  text-shadow:0 1px 12px rgba(139,70,255,.18);
}

.hero h1{
  color:#fff;
  font-weight:900;
  letter-spacing:-1.7px;
  text-shadow:0 3px 18px rgba(0,0,0,.35);
}

.hero h1 strong{
  color:transparent;
  background:linear-gradient(90deg,#a943ff 0%,#745cff 52%,#4f8cff 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}

.hero-tagline{
  color:#d3dbe8 !important;
  font-weight:500;
  letter-spacing:.05px;
  text-shadow:0 1px 7px rgba(0,0,0,.55);
}

.years-box>h2{
  position:relative;
}

.years-box>h2:after{
  content:"";
  display:block;
  width:34px;
  height:3px;
  margin-top:8px;
  border-radius:10px;
  background:linear-gradient(90deg,#a43cff,#536fff);
}

.year-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
  padding:17px 18px 20px;
}

.year-item{
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.055);
  border-radius:7px;
  background:rgba(255,255,255,.035);
  color:#dce5f2;
  font-size:13px;
  font-weight:800;
  transition:
    transform .16s ease,
    border-color .16s ease,
    background .16s ease,
    color .16s ease;
}

.year-item:hover{
  transform:translateY(-1px);
  border-color:rgba(157,67,255,.55);
  background:linear-gradient(135deg,rgba(113,53,220,.26),rgba(83,111,255,.14));
  color:#fff;
}

@media(max-width:760px){
  .year-grid{
    gap:7px;
    padding:14px;
  }

  .year-item{
    min-height:38px;
    font-size:12px;
  }
}

/* XP HOME RECENT EPISODES V6 */

.recent-episodes{
  margin-top:38px;
}

.episode-heading h2:before{
  background:linear-gradient(180deg,#a53cff,#4f7dff);
}

.episode-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px 16px;
}

.episode-card{
  min-width:0;
  color:#fff;
}

.episode-thumb{
  position:relative;
  display:block;
  overflow:hidden;
  width:100%;
  aspect-ratio:16/9;
  border:1px solid #202d3d;
  border-radius:10px;
  background:#0d1420;
}

.episode-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .22s ease;
}

.episode-card:hover .episode-thumb img{
  transform:scale(1.025);
}

.episode-thumb b{
  position:absolute;
  right:8px;
  bottom:8px;
  padding:5px 8px;
  border-radius:5px;
  background:linear-gradient(135deg,#7b35e7,#a82dff);
  box-shadow:0 3px 12px rgba(0,0,0,.35);
  color:#fff;
  font-size:10px;
  line-height:1;
  font-weight:900;
}

.episode-no-image{
  display:flex;
  width:100%;
  height:100%;
  align-items:center;
  justify-content:center;
  color:#65758a;
  font-size:12px;
}

.episode-copy{
  display:block;
  padding:9px 2px 0;
}

.episode-copy strong,
.episode-copy small{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.episode-copy strong{
  color:#f4f7fb;
  font-size:13px;
  line-height:1.35;
  font-weight:800;
}

.episode-copy small{
  margin-top:4px;
  color:#8392a7;
  font-size:11px;
}

.episode-card:hover .episode-copy strong{
  color:#b979ff;
}

@media(max-width:760px){
  .recent-episodes{
    margin-top:30px;
  }

  .episode-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:17px 10px;
  }

  .episode-copy strong{
    font-size:11px;
  }

  .episode-copy small{
    font-size:10px;
  }
}

@media(max-width:430px){
  .episode-grid{
    grid-template-columns:1fr;
  }
}

/* XP HOME EPISODES GRID V7 */

@media(min-width:1101px){
  .episode-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:20px 13px;
  }

  .episode-copy{
    padding-top:8px;
  }

  .episode-copy strong{
    font-size:12px;
  }

  .episode-copy small{
    margin-top:3px;
    font-size:10px;
  }

  .episode-thumb b{
    right:7px;
    bottom:7px;
    padding:4px 7px;
    font-size:9px;
  }
}

@media(min-width:761px) and (max-width:1100px){
  .episode-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

@media(max-width:760px){
  .episode-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media(max-width:430px){
  .episode-grid{
    grid-template-columns:1fr;
  }
}

/* XP HOME ANIME GRID + SECTION SPACING V8 */

/*
 * Desktop grande:
 * episódios = 4 x 2
 * animes     = 5 x 2
 */

.recent-episodes{
  margin-bottom:34px;
}

/* título Animes recentes após Episódios recentes */
.recent-episodes + .section-heading{
  margin-top:0;
}

@media(min-width:1201px){
  .anime-grid{
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:24px 16px;
  }
}

@media(min-width:901px) and (max-width:1200px){
  .anime-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:22px 15px;
  }
}

@media(min-width:641px) and (max-width:900px){
  .anime-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:20px 14px;
  }
}

@media(max-width:640px){
  .recent-episodes{
    margin-bottom:28px;
  }

  .anime-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px 11px;
  }
}

/* XP HOME VER TODOS V9 */

.section-heading > a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:6px 11px;
  border:1px solid rgba(91,126,255,.16);
  border-radius:7px;
  background:rgba(58,91,160,.08);
  color:#55a5ff;
  font-size:12px;
  line-height:1;
  font-weight:800;
  letter-spacing:.05px;
  white-space:nowrap;
  transition:
    color .16s ease,
    background .16s ease,
    border-color .16s ease,
    transform .16s ease;
}

.section-heading > a:hover{
  color:#fff;
  border-color:rgba(157,67,255,.42);
  background:linear-gradient(
    135deg,
    rgba(132,55,230,.22),
    rgba(58,111,225,.16)
  );
  transform:translateX(2px);
}

@media(max-width:640px){
  .section-heading > a{
    min-height:28px;
    padding:5px 9px;
    font-size:11px;
  }
}
