﻿:root{
      --bg:#0b1020;
      --card:#121a33;
      --muted:#9fb0ff;
      --text:#eaf0ff;
      --accent:#7c5cff;
      --accent2:#2ee6a6;
      --danger:#ff4d6d;
      --line:rgba(255,255,255,.10);
      --shadow: 0 18px 50px rgba(0,0,0,.45);
      --radius: 18px;
      --bg-split-start: 100svh;
      --bg-split-height: 100svh;
    }
    *{box-sizing:border-box}
    html,body{height:100%}
    body{
      margin:0;
      font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans", sans-serif;
      background-color: var(--bg);
      background-image:
        linear-gradient(180deg, rgba(8,13,28,.35) 0%, rgba(8,13,28,.55) 38%, rgba(8,13,28,.75) 100%),
        url("../../img/Torikos team.webp"),
        url("../../img/mudivaras.webp");
      background-repeat: no-repeat, no-repeat, no-repeat;
      background-size: 100% 100%, 100% 100svh, 100% var(--bg-split-height);
      background-position: top left, top center, center var(--bg-split-start);
      color:var(--text);
      overflow-x:hidden;
    }
    a{color:inherit; text-decoration:none}
    .container{max-width:1100px; margin:0 auto; padding:0 18px}
    .nav{
      position:sticky; top:0; z-index:50;
      backdrop-filter: blur(12px);
      background: linear-gradient(to bottom, rgba(11,16,32,.85), rgba(11,16,32,.55));
      border-bottom:1px solid var(--line);
    }
    .nav-inner{
      display:flex; align-items:center; justify-content:space-between;
      padding:14px 0;
      gap:14px;
    }
    .brand{
      display:flex; align-items:center; gap:10px;
      font-weight:800; letter-spacing:.2px;
    }
    .logo{
      width:36px; height:36px; border-radius:12px;
      background-image: url("../../img/toriko_x_luffi.jpg");
      background-size: cover;
      background-position: center;
      box-shadow: 0 12px 30px rgba(124,92,255,.25);
      border:1px solid rgba(255,255,255,.18);
    }
    .brand small{display:block; font-weight:600; color:rgba(234,240,255,.7)}
    .menu{
      display:flex; gap:10px; align-items:center; flex-wrap:wrap;
      justify-content:flex-end;
    }
    .chip{
      padding:9px 12px;
      border:1px solid var(--line);
      border-radius:999px;
      background:rgba(18,26,51,.55);
      color:rgba(234,240,255,.88);
      font-size:14px;
      transition:.2s ease;
    }
    .chip:hover{transform:translateY(-1px); border-color:rgba(124,92,255,.5)}
    .btn{
      padding:10px 14px;
      border-radius:12px;
      border:1px solid rgba(255,255,255,.14);
      background: linear-gradient(135deg, rgba(124,92,255,.95), rgba(46,230,166,.65));
      box-shadow: 0 18px 45px rgba(124,92,255,.22);
      font-weight:800;
      font-size:14px;
      cursor:pointer;
      transition:.2s ease;
      white-space:nowrap;
    }
    .btn:hover{transform:translateY(-1px); filter:saturate(1.08)}
    .btn.secondary{
      background:rgba(18,26,51,.65);
      box-shadow:none;
    }

    /* Hero */
    .hero{
      padding:52px 0 26px;
      min-height: calc(100svh - 78px);
      display:flex;
      align-items:center;
    }
    .hero-grid{
      display:grid;
      grid-template-columns: 1.1fr .9fr;
      gap:18px;
      align-items:stretch;
    }
    @media (max-width: 900px){
      .hero-grid{grid-template-columns:1fr}
    }
    .hero-card{
      border:1px solid var(--line);
      background: linear-gradient(180deg, rgba(18,26,51,.65), rgba(18,26,51,.38));
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      overflow:hidden;
      position:relative;
    }
    .hero-left{padding:26px}
    .kicker{
      display:inline-flex; gap:10px; align-items:center;
      padding:7px 10px;
      border:1px solid rgba(255,255,255,.14);
      border-radius:999px;
      background:rgba(11,16,32,.45);
      color:rgba(234,240,255,.86);
      font-weight:700;
      font-size:13px;
    }
    .dot{
      width:9px; height:9px; border-radius:50%;
      background: var(--accent2);
      box-shadow: 0 0 0 6px rgba(46,230,166,.14);
    }
    h1{
      margin:14px 0 10px;
      font-size: clamp(30px, 4.4vw, 52px);
      line-height:1.05;
      letter-spacing:-.8px;
    }
    .sub{
      color:rgba(234,240,255,.82);
      font-size:16px;
      line-height:1.55;
      max-width:62ch;
    }
    .hero-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:18px}
    .meta{
      display:grid;
      grid-template-columns: repeat(3, minmax(0,1fr));
      gap:10px;
      margin-top:18px;
    }
    @media (max-width:520px){ .meta{grid-template-columns:1fr} }
    .pill{
      border:1px solid var(--line);
      border-radius:14px;
      background:rgba(11,16,32,.35);
      padding:12px;
    }
    .pill b{display:block; font-size:14px}
    .pill span{display:block; color:rgba(234,240,255,.72); font-size:13px; margin-top:4px}

    .hero-right{
      display:flex; flex-direction:column; gap:12px;
      padding:0;
    }
    .poster{
      background:
        radial-gradient(700px 400px at 30% 10%, rgba(124,92,255,.35), transparent 55%),
        radial-gradient(650px 360px at 80% 20%, rgba(46,230,166,.22), transparent 55%),
        linear-gradient(180deg, rgba(18,26,51,.9), rgba(11,16,32,.65));
    }
    .poster::after{
      content:"";
      position:absolute; inset:-40px;
      background: repeating-linear-gradient(
        135deg,
        rgba(255,255,255,.06) 0px,
        rgba(255,255,255,.06) 6px,
        transparent 6px,
        transparent 14px
      );
      transform: rotate(2deg);
      opacity:.55;
      pointer-events:none;
    }
    .poster-inner{
      position:absolute; inset:0;
      padding:18px;
      display:flex; flex-direction:column; justify-content:space-between;
    }
    .tagline{
      display:flex; gap:10px; flex-wrap:wrap;
    }
    .tag{
      font-size:12px; font-weight:800;
      padding:7px 10px;
      border-radius:999px;
      border:1px solid rgba(255,255,255,.16);
      background:rgba(11,16,32,.35);
    }
    .bigmark{
      font-weight:900;
      letter-spacing:-.8px;
      font-size:28px;
      line-height:1.1;
    }
    .bigmark em{
      font-style:normal;
      background: linear-gradient(90deg, var(--accent), var(--accent2));
      -webkit-background-clip:text;
      background-clip:text;
      color:transparent;
    }
    .mini{
      margin-top:8px;
      color:rgba(234,240,255,.78);
      font-size:13px;
      line-height:1.5;
      max-width:52ch;
    }
    .poster-cta{
      display:flex; gap:10px; flex-wrap:wrap; align-items:center;
      justify-content:space-between;
      border-top:1px solid var(--line);
      padding-top:12px;
    }
    .score{
      display:flex; gap:10px; align-items:center;
      color:rgba(234,240,255,.86);
      font-size:13px;
    }
    .bar{
      width:120px; height:8px; border-radius:999px;
      border:1px solid rgba(255,255,255,.14);
      background: rgba(11,16,32,.55);
      overflow:hidden;
    }
    .fill{
      height:100%;
      width:78%;
      background: linear-gradient(90deg, var(--accent2), var(--accent));
    }

    /* Sections */
    section{padding:28px 0}
    .section-title{
      display:flex; align-items:flex-end; justify-content:space-between;
      gap:12px;
      margin-bottom:14px;
    }
    .section-title h2{
      margin:0;
      font-size:22px;
      letter-spacing:-.3px;
    }
    .section-title p{
      margin:0;
      color:rgba(234,240,255,.7);
      font-size:13px;
      max-width:70ch;
    }
    .grid{
      display:grid;
      grid-template-columns: repeat(3, minmax(0,1fr));
      gap:12px;
    }
    @media (max-width: 900px){ .grid{grid-template-columns:1fr} }
    .card{
      border:1px solid var(--line);
      background: rgba(18,26,51,.55);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      padding:16px;
    }
    .card h3{margin:0 0 8px; font-size:16px}
    .card p{margin:0; color:rgba(234,240,255,.75); font-size:14px; line-height:1.55}

    /* Character cards */
    .char{
      display:flex; gap:12px; align-items:flex-start;
    }
    .avatar{
      width:44px; height:44px; border-radius:14px;
      border:1px solid rgba(255,255,255,.16);
      background: linear-gradient(135deg, rgba(124,92,255,.7), rgba(46,230,166,.35));
      box-shadow: 0 18px 40px rgba(0,0,0,.35);
      flex:0 0 auto;
    }
    .char small{display:block; margin-top:6px; color:rgba(234,240,255,.62)}
    .badge{
      display:inline-flex;
      align-items:center;
      gap:8px;
      font-size:12px;
      font-weight:800;
      padding:6px 10px;
      border-radius:999px;
      border:1px solid rgba(255,255,255,.16);
      background: rgba(11,16,32,.40);
      margin-bottom:10px;
    }
    .badge .b{width:8px; height:8px; border-radius:50%}
    .b.op{background:var(--accent2)}
    .b.tor{background:var(--danger)}
    .b.x{background:var(--accent)}

    /* Timeline / episodes */
    .episodes{
      display:grid;
      grid-template-columns: 1fr 1fr;
      gap:12px;
    }
    @media (max-width:900px){ .episodes{grid-template-columns:1fr} }
    .ep{
      display:flex; gap:12px;
      padding:14px;
      border-radius: var(--radius);
      border:1px solid var(--line);
      background: rgba(18,26,51,.50);
    }
    .ep-num{
      width:40px; height:40px;
      border-radius:14px;
      display:grid; place-items:center;
      font-weight:900;
      border:1px solid rgba(255,255,255,.16);
      background: rgba(11,16,32,.45);
      flex:0 0 auto;
    }
    .ep h4{margin:0 0 4px}
    .ep p{margin:0; color:rgba(234,240,255,.72); font-size:14px; line-height:1.5}

    /* Gallery */
    .gallery{
      display:grid;
      grid-template-columns: repeat(12, 1fr);
      gap:10px;
    }
    .ph{
      border-radius: var(--radius);
      border:1px solid var(--line);
      background:
        radial-gradient(500px 240px at 30% 20%, rgba(124,92,255,.35), transparent 55%),
        radial-gradient(480px 220px at 70% 30%, rgba(46,230,166,.22), transparent 55%),
        linear-gradient(180deg, rgba(18,26,51,.80), rgba(11,16,32,.55));
      position:relative;
      overflow:hidden;
      min-height:140px;
      box-shadow: var(--shadow);
    }
    .ph::after{
      content:"Добавь постер/кадр";
      position:absolute;
      bottom:10px; left:12px;
      font-size:12px;
      color:rgba(234,240,255,.75);
      background: rgba(11,16,32,.45);
      border:1px solid rgba(255,255,255,.14);
      padding:6px 10px;
      border-radius:999px;
      backdrop-filter: blur(10px);
    }
    .ph::before{
      content:"";
      position:absolute; inset:-60px;
      background: repeating-linear-gradient(
        45deg,
        rgba(255,255,255,.05) 0px,
        rgba(255,255,255,.05) 8px,
        transparent 8px,
        transparent 18px
      );
      transform: rotate(-3deg);
      opacity:.5;
      pointer-events:none;
    }
    .ph.wide{grid-column: span 7}
    .ph.mid{grid-column: span 5}
    .ph.small{grid-column: span 4}
    @media (max-width:900px){
      .ph.wide,.ph.mid,.ph.small{grid-column: span 12}
    }

    /* FAQ */
    details{
      border:1px solid var(--line);
      border-radius: var(--radius);
      background: rgba(18,26,51,.50);
      padding:14px 16px;
      box-shadow: var(--shadow);
    }
    details + details{margin-top:10px}
    summary{
      cursor:pointer;
      font-weight:800;
      list-style:none;
    }
    summary::-webkit-details-marker{display:none}
    details p{margin:10px 0 0; color:rgba(234,240,255,.74); line-height:1.55}

    /* Footer */
    footer{
      padding:28px 0 40px;
      border-top:1px solid var(--line);
      margin-top:12px;
      color:rgba(234,240,255,.68);
      font-size:13px;
    }
    .footer-grid{
      display:grid;
      grid-template-columns: 1fr auto;
      gap:12px;
      align-items:center;
    }
    @media (max-width:700px){ .footer-grid{grid-template-columns:1fr} }

    /* Toast */
    .toast{
      position: fixed;
      right: 16px;
      bottom: 16px;
      max-width: 360px;
      border:1px solid rgba(255,255,255,.14);
      background: rgba(18,26,51,.72);
      border-radius: 16px;
      padding: 12px 12px;
      box-shadow: var(--shadow);
      display:none;
      backdrop-filter: blur(12px);
    }
    .toast b{display:block; margin-bottom:4px}
    .toast p{margin:0; color:rgba(234,240,255,.75); font-size:13px; line-height:1.45}
    .toast .row{display:flex; gap:10px; align-items:center; justify-content:space-between; margin-top:10px}
    .toast .xbtn{
      border:1px solid rgba(255,255,255,.16);
      background: rgba(11,16,32,.45);
      color:rgba(234,240,255,.9);
      border-radius: 12px;
      padding: 8px 10px;
      cursor:pointer;
      font-weight:800;
      font-size:13px;
    }
    .toast .xbtn:hover{transform:translateY(-1px)}
    .poster{
      background:
        radial-gradient(700px 400px at 30% 10%, rgba(124,92,255,.35), transparent 55%),
        radial-gradient(650px 360px at 80% 20%, rgba(46,230,166,.22), transparent 55%),
        linear-gradient(180deg, rgba(18,26,51,.9), rgba(11,16,32,.65));
    }

    .gallery-item{
      position:relative;
      overflow:hidden;
      border-radius: var(--radius);
      border:1px solid var(--line);
      min-height:160px;
      box-shadow: var(--shadow);
      background: rgba(18,26,51,.5);
    }
    .gallery-item img{
      width:100%;
      height:100%;
      object-fit:cover;
      object-position:center top;
      display:block;
      filter:saturate(1.05) contrast(1.05);
      transition:transform .35s ease;
    }
    .gallery-item:hover img{transform:scale(1.03)}
    .gallery-item figcaption{
      position:absolute;
      left:10px;
      bottom:10px;
      margin:0;
      font-size:12px;
      color:rgba(234,240,255,.92);
      background: rgba(11,16,32,.55);
      border:1px solid rgba(255,255,255,.15);
      padding:6px 10px;
      border-radius:999px;
      backdrop-filter: blur(10px);
    }




/* Character carousel */
.carousel-wrap{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:10px;
  align-items:center;
}
@media (max-width:900px){
  .carousel-wrap{grid-template-columns:1fr}
}
.carousel-btn{
  border:1px solid var(--line);
  background:rgba(11,16,32,.72);
  color:var(--text);
  width:42px;
  height:42px;
  border-radius:12px;
  cursor:pointer;
  font-size:20px;
  line-height:1;
}
@media (max-width:900px){
  .carousel-btn{display:none}
}
.character-carousel{
  display:flex;
  gap:12px;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding:4px 2px 10px;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.character-carousel::-webkit-scrollbar{display:none}
.character-card{
  scroll-snap-align:start;
  min-width:320px;
  max-width:320px;
  border:1px solid var(--line);
  border-radius:16px;
  background:rgba(18,26,51,.72);
  box-shadow:var(--shadow);
  overflow:hidden;
}
.character-card img{
  width:100%;
  height:210px;
  object-fit:contain;
  object-position:center;
  display:block;
  background: linear-gradient(180deg, rgba(9,16,36,.9), rgba(8,14,30,.9));
  padding:8px;
}
.character-card h3{
  margin:12px 12px 6px;
  font-size:18px;
}
.character-card p{
  margin:0 12px 14px;
  color:rgba(234,240,255,.8);
  font-size:14px;
  line-height:1.45;
}






#episodes{
  margin-top: 0;
  border-top:1px solid var(--line);
  padding-top:28px;
}
