/* ============================================================
   INKWAVE — manga-brutalist theme for Manga Universe
   ink canvas · halftone texture · comic-panel cards · hard shadows
   ============================================================ */
:root {
  --bg: #0a0a0f;
  --bg-2: #0f0f17;
  --panel: #15151f;
  --panel-2: #1d1d2b;
  --line: #2b2b3d;
  --ink: #f6f4ea;
  --muted: #a2a2b8;
  --muted-2: #6a6a82;

  --red: #ff2e4d;
  --red-deep: #d61f3c;
  --cyan: #1fe3e3;
  --yellow: #ffd21e;
  --tg: #29b6f6;

  --radius: 16px;
  --radius-sm: 10px;
  --hard: 6px 6px 0 var(--red);
  --hard-cyan: 6px 6px 0 var(--cyan);
  --hard-ink: 4px 4px 0 #000;
  --shadow: 0 14px 40px rgba(0,0,0,.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  line-height: 1.5;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.035) 1px, transparent 0),
    radial-gradient(1100px 520px at 88% -8%, rgba(255,46,77,.12) 0%, transparent 60%),
    radial-gradient(900px 480px at -8% 4%, rgba(31,227,227,.10) 0%, transparent 55%);
  background-size: 22px 22px, 100% 100%, 100% 100%;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { width: min(1220px, 92%); margin: 0 auto; }
.muted { color: var(--muted); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

h1, h2, h3, .display { font-family: "Bricolage Grotesque", "Plus Jakarta Sans", sans-serif; letter-spacing: -.015em; }

/* ---------------- header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,15,.86);
  backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--red);
}
.header-inner { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; }
.brand-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--red); color: #fff; font-size: 15px; font-weight: 800;
  font-family: "Bricolage Grotesque", sans-serif;
  border: 2px solid #000; box-shadow: var(--hard-ink);
  transform: rotate(-4deg);
}
.brand-text { font-size: 19px; font-family: "Bricolage Grotesque", sans-serif; }
.main-nav { display: flex; gap: 22px; margin-left: 10px; }
.main-nav a { color: var(--muted); font-weight: 700; font-size: 15px; transition: color .15s; position: relative; }
.main-nav a:hover { color: var(--ink); }
.main-nav a::after { content:""; position:absolute; left:0; right:100%; bottom:-6px; height:3px; background: var(--cyan); transition: right .2s; }
.main-nav a:hover::after { right: 0; }
.main-nav .tg-nav { color: var(--tg); }

.search { position: relative; margin-left: auto; display: flex; align-items: center; width: min(350px, 42vw); }
.search .search-ico { position: absolute; left: 14px; color: var(--muted-2); width: 18px; height: 18px; pointer-events: none; }
.search input {
  width: 100%; padding: 12px 46px 12px 42px;
  background: var(--panel); border: 2px solid var(--line); border-radius: 999px;
  color: var(--ink); font-size: 14px; font-family: inherit; font-weight: 500; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-adv {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  color: var(--muted); background: var(--panel-2); border: 1.5px solid var(--line); transition: all .12s;
}
.search-adv:hover { color: #fff; background: var(--red); border-color: #000; }
.search-adv .ico { width: 17px; height: 17px; }
.search input::placeholder { color: var(--muted-2); }
.search input:focus { border-color: var(--cyan); box-shadow: 4px 4px 0 rgba(31,227,227,.4); }
.search-results {
  position: absolute; top: calc(100% + 10px); left: 0; right: 0;
  background: var(--panel-2); border: 2px solid var(--ink); border-radius: 14px;
  box-shadow: var(--hard-ink); overflow: hidden; max-height: 70vh; overflow-y: auto;
}
.sr-item { display: flex; gap: 12px; padding: 10px 12px; align-items: center; border-bottom: 1px solid var(--line); }
.sr-item:last-child { border-bottom: 0; }
.sr-item:hover { background: var(--red); color: #fff; }
.sr-item img { width: 38px; height: 52px; object-fit: cover; border-radius: 6px; background: var(--bg-2); }
.sr-meta { min-width: 0; }
.sr-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-sub { font-size: 12px; color: var(--muted); }
.sr-item:hover .sr-sub { color: rgba(255,255,255,.85); }
.sr-empty { padding: 16px; color: var(--muted); font-size: 14px; }

.menu-btn { display: none; background: none; border: 0; color: var(--ink); cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; padding: 8px 4% 14px; gap: 6px; border-bottom: 2px solid var(--line); }
.mobile-nav[hidden] { display: none; }
.mobile-nav a { padding: 11px; color: var(--muted); font-weight: 700; border-radius: 8px; }
.mobile-nav a:hover { background: var(--panel); color: var(--ink); }

/* ---------------- hero ---------------- */
.hero { padding: 60px 0 34px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -40px; right: -60px; width: 340px; height: 340px; z-index: -1;
  background: repeating-linear-gradient(115deg, transparent 0 16px, rgba(255,46,77,.14) 16px 20px);
  transform: rotate(8deg);
}
.hero h1 { font-size: clamp(34px, 6vw, 68px); font-weight: 800; margin: 0 0 14px; line-height: .98; }
.hero h1 .grad { color: var(--red); position: relative; white-space: nowrap; }
.hero h1 .grad::after { content:""; position:absolute; left:0; right:0; bottom:.08em; height:.16em; background: var(--cyan); z-index:-1; }
.hero p { color: var(--muted); font-size: 17px; max-width: 620px; margin: 0 0 24px; font-weight: 500; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.stat-row { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.stat { border: 2px solid var(--line); background: var(--panel); border-radius: 14px; padding: 12px 20px; }
.stat b { font-size: 26px; font-weight: 800; display: block; font-family: "Bricolage Grotesque", sans-serif; }
.stat:nth-child(1) b { color: var(--red); }
.stat:nth-child(2) b { color: var(--cyan); }
.stat:nth-child(3) b { color: var(--yellow); }
.stat span { color: var(--muted); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 800; font-size: 15px;
  border: 2px solid #000; cursor: pointer; transition: transform .08s, box-shadow .12s;
  font-family: "Plus Jakarta Sans", sans-serif;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: var(--hard-ink); }
.btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 #000; }
.btn-primary:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 #000; }
.btn-tg { background: var(--tg); color: #04222f; box-shadow: var(--hard-ink); }
.btn-tg:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 #000; }
.btn-tg:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 #000; }
.btn-ghost { background: var(--panel); color: var(--ink); box-shadow: var(--hard-ink); }
.btn-ghost:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--cyan); border-color: var(--cyan); }
.btn-lg { padding: 15px 28px; font-size: 16px; }

/* ---------------- sections ---------------- */
.section { padding: 30px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-head h2 { font-size: 26px; font-weight: 800; margin: 0; display: inline-flex; align-items: center; gap: 12px; }
.section-head h2::before { content: ""; width: 8px; height: 26px; background: var(--red); border-radius: 3px; display: inline-block; transform: skewX(-12deg); }
.section-head a { color: var(--cyan); font-weight: 800; font-size: 14px; }
.section-head a:hover { text-decoration: underline; }
.eyebrow { color: var(--cyan); font-weight: 800; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; margin: 0 0 12px; }

/* ---------------- ranked lists ---------------- */
.rank-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 30px 42px; }
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rank-item { display: flex; align-items: center; gap: 14px; padding: 9px 10px; border: 2px solid transparent; border-radius: 12px; transition: transform .12s, border-color .12s, background .12s; }
.rank-item:hover { background: var(--panel); border-color: var(--ink); transform: translateX(4px); }
.rank-num { width: 30px; text-align: center; font-weight: 800; font-size: 22px; color: var(--muted-2); flex-shrink: 0; font-family: "Bricolage Grotesque", sans-serif; }
.rank-item:nth-child(1) .rank-num { color: var(--red); }
.rank-item:nth-child(2) .rank-num { color: var(--cyan); }
.rank-item:nth-child(3) .rank-num { color: var(--yellow); }
.rank-cover { width: 46px; height: 62px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--panel-2); border: 2px solid var(--line); }
.rank-cover img { width: 100%; height: 100%; object-fit: cover; }
.rank-meta { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rank-title { font-weight: 700; font-size: 14.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rank-item:hover .rank-title { color: var(--cyan); }
.rank-sub { font-size: 12.5px; color: var(--muted); }
.rank-ch { color: var(--tg); font-weight: 700; }
.rank-sub .dot { opacity: .5; }

/* ---------------- chips / filters ---------------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 8px 15px; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  background: var(--panel); border: 2px solid var(--line); color: var(--muted); transition: all .12s;
}
.chip:hover { color: #fff; background: var(--red); border-color: #000; transform: translateY(-2px); box-shadow: var(--hard-ink); }
.chip.active { background: var(--red); color: #fff; border-color: #000; box-shadow: var(--hard-ink); }
.chip .count { opacity: .6; font-weight: 600; margin-left: 5px; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 24px; padding: 14px; background: var(--panel); border: 2px solid var(--line); border-radius: 14px; }
.filter-bar select {
  padding: 10px 36px 10px 14px; border-radius: 10px; background: var(--panel-2); color: var(--ink);
  border: 2px solid var(--line); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231fe3e3' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.filter-bar select:focus { outline: none; border-color: var(--cyan); }
.filter-count { color: var(--muted); font-size: 14px; font-weight: 700; margin-left: auto; }

/* ---------------- grid & cards ---------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 24px 20px; }
.card { display: block; position: relative; }
.card-cover {
  position: relative; aspect-ratio: 2/3; border-radius: var(--radius); overflow: hidden;
  background: var(--panel-2); border: 2px solid var(--ink);
  box-shadow: var(--hard-ink); transition: transform .16s, box-shadow .16s;
}
.card:hover .card-cover { transform: translate(-4px,-4px); box-shadow: 8px 8px 0 var(--cyan); }
.card:nth-child(2n):hover .card-cover { box-shadow: 8px 8px 0 var(--red); }
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,6,12,.9) 0%, transparent 44%); }
.card-badges { position: absolute; top: 9px; left: 9px; right: 9px; display: flex; justify-content: space-between; z-index: 2; }
.badge {
  font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 6px;
  background: #000; color: #fff; border: 1.5px solid rgba(255,255,255,.2); text-transform: uppercase; letter-spacing: .03em;
}
.badge.type { background: var(--red); border-color: #000; }
.card-chapter {
  position: absolute; bottom: 9px; left: 9px; z-index: 2;
  font-size: 12px; font-weight: 800; color: #04222f;
  background: var(--cyan); padding: 3px 10px; border-radius: 6px; border: 1.5px solid #000;
}
.card-title { margin-top: 11px; font-size: 15px; font-weight: 700; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card:hover .card-title { color: var(--cyan); }
.card-sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; font-weight: 600; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 9px; }
.card-meta .card-ch { font-size: 12.5px; font-weight: 800; color: var(--cyan); }
.card-meta .card-time { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }

/* ---------------- horizontal slider ---------------- */
.slider-wrap { position: relative; }
.slider { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding: 4px 2px 12px; scrollbar-width: none; }
.slider::-webkit-scrollbar { display: none; }
.slider .card { width: 168px; flex: 0 0 168px; scroll-snap-align: start; }
.slider-nav {
  position: absolute; top: 38%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; background: var(--panel); border: 2px solid var(--ink);
  box-shadow: var(--hard-ink); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: transform .1s, background .12s;
}
.slider-nav:hover { background: var(--red); color: #fff; }
.slider-nav:active { transform: translateY(-50%) scale(.9); }
.slider-nav.prev { left: -14px; }
.slider-nav.next { right: -14px; }
@media (max-width: 640px) { .slider-nav { display: none; } }

/* ---------------- advanced search ---------------- */
.adv { background: var(--panel); border: 2px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 26px; }
.adv-row { display: flex; flex-wrap: wrap; gap: 10px; }
.adv-q { flex: 1 1 240px; min-width: 180px; padding: 11px 14px; background: var(--panel-2); border: 2px solid var(--line); border-radius: 10px; color: var(--ink); font-family: inherit; font-size: 14px; font-weight: 500; }
.adv-q:focus { outline: none; border-color: var(--cyan); }
.adv-row select {
  padding: 10px 34px 10px 14px; border-radius: 10px; background: var(--panel-2); color: var(--ink);
  border: 2px solid var(--line); font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231fe3e3' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 16px;
}
.adv-row select:focus { outline: none; border-color: var(--cyan); }
.adv-genres { margin-top: 16px; }
.adv-legend { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.adv-legend .lg { padding: 2px 8px; border-radius: 6px; font-weight: 800; font-size: 12px; }
.adv-legend .lg.inc { background: rgba(31,227,227,.18); color: var(--cyan); }
.adv-legend .lg.exc { background: rgba(255,46,77,.18); color: var(--red); }
.gchips { display: flex; flex-wrap: wrap; gap: 8px; max-height: 230px; overflow-y: auto; padding: 2px; }
.gchip { padding: 7px 13px; border-radius: 999px; background: var(--panel-2); border: 2px solid var(--line); color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; font-family: inherit; transition: all .12s; }
.gchip small { opacity: .5; font-weight: 600; margin-left: 3px; }
.gchip:hover { color: var(--ink); border-color: var(--muted-2); }
.gchip.inc { background: var(--cyan); color: #04222f; border-color: #000; box-shadow: var(--hard-ink); }
.gchip.inc small { opacity: .7; }
.gchip.exc { background: var(--red); color: #fff; border-color: #000; text-decoration: line-through; box-shadow: var(--hard-ink); }
.adv-actions { display: flex; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }

/* ---------------- static page ---------------- */
.doc { max-width: 780px; margin: 0 auto; padding: 20px 0 10px; }
.doc h1 { font-size: 34px; font-weight: 800; margin: 0 0 8px; }
.doc h2 { font-size: 21px; font-weight: 800; margin: 30px 0 10px; }
.doc p, .doc li { color: #cfd0de; font-size: 15px; line-height: 1.75; }
.doc a { color: var(--cyan); }
.doc a:hover { text-decoration: underline; }
.doc .updated { color: var(--muted-2); font-size: 13px; margin-bottom: 20px; }
.doc ul { padding-left: 20px; }

/* ---------------- page header ---------------- */
.page-head { padding: 40px 0 10px; }
.page-head h1 { font-size: 34px; font-weight: 800; margin: 0 0 6px; }
.breadcrumb { color: var(--muted); font-size: 13px; margin-bottom: 10px; font-weight: 600; }
.breadcrumb a:hover { color: var(--cyan); }

/* ---------------- manga detail ---------------- */
.detail-hero { position: relative; padding: 44px 0 12px; overflow: hidden; }
.detail-bg { position: absolute; inset: 0; z-index: -1; opacity: .16; filter: blur(34px) saturate(1.3); background-size: cover; background-position: center; }
.detail-bg::after { content:""; position:absolute; inset:0; background: linear-gradient(to bottom, rgba(10,10,15,.5), var(--bg)); }
.detail { display: grid; grid-template-columns: 250px 1fr; gap: 38px; }
.detail-poster { position: relative; }
.detail-poster img { width: 100%; border-radius: var(--radius); border: 3px solid var(--ink); box-shadow: var(--hard); aspect-ratio: 2/3; object-fit: cover; }
.detail-main h1 { font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; margin: 0 0 8px; line-height: 1.05; }
.detail-alts { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; font-weight: 500; }
.meta-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.mb { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; background: var(--panel); border: 2px solid var(--line); font-size: 13.5px; font-weight: 700; }
.mb .k { color: var(--muted-2); font-weight: 800; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; }
.mb.status-ongoing { border-color: var(--cyan); color: var(--cyan); }
.mb.status-completed { border-color: var(--ok); color: var(--ok); }
.mb.mb-type { border-color: var(--red); color: var(--red); }
.mb.mb-year { border-color: var(--yellow); color: var(--yellow); }
.mb.mb-chapters { border-color: var(--tg); color: var(--tg); }
.mb.rating { border-color: var(--yellow); color: var(--yellow); }

.info-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 4px 0 22px; font-size: 14.5px; }
.info-list dt { color: var(--muted-2); font-weight: 700; text-transform: uppercase; font-size: 11px; letter-spacing: .05em; align-self: center; }
.info-list dd { margin: 0; font-weight: 600; }

.detail-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 26px; }
.tg-cta {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--panel); border: 2px solid var(--tg); box-shadow: 6px 6px 0 rgba(41,182,246,.35); margin: 8px 0 26px;
}
.tg-cta .tg-icon { display:grid; place-items:center; width:50px; height:50px; border-radius:12px; background: var(--tg); flex-shrink:0; border: 2px solid #000; box-shadow: var(--hard-ink); }
.tg-cta .tg-icon svg { width: 28px; height: 28px; fill:#fff; stroke:none; }
.tg-cta .tg-copy b { display:block; font-size: 16px; font-weight: 800; }
.tg-cta .tg-copy span { font-size: 13px; color: var(--muted); }
.tg-cta .btn { margin-left: auto; }

.synopsis { color: #d5d5e4; font-size: 15px; line-height: 1.75; max-width: 780px; font-weight: 500; }
.synopsis.clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.synopsis p { margin: 0 0 12px; }
.synopsis p:last-child { margin-bottom: 0; }
.synopsis a { color: var(--cyan); font-weight: 600; }
.synopsis a:hover { text-decoration: underline; }
.synopsis strong { color: var(--ink); font-weight: 700; }
.read-more { background: none; border: 0; color: var(--cyan); font-weight: 800; cursor: pointer; margin-top: 8px; font-family: inherit; font-size: 14px; }
.info-label { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 800; color: var(--red); margin: 22px 0 4px; }
.genre-tags { display: flex; flex-wrap: wrap; gap: 9px; margin: 8px 0 4px; }
.genre-tags a { padding: 7px 13px; border-radius: 8px; background: var(--panel); border: 2px solid var(--line); font-size: 13px; color: var(--muted); font-weight: 700; }
.genre-tags a:hover { color: #fff; background: var(--red); border-color: #000; }

.info-missing { padding: 15px 17px; border-radius: 12px; background: var(--panel); border: 2px dashed var(--line); color: var(--muted); font-size: 14px; margin: 4px 0 20px; }

/* ---------------- Read on Telegram strip ---------------- */
.tg-strip-wrap { padding: 10px 0 6px; }
.tg-strip {
  display: flex; align-items: center; gap: 18px; padding: 18px 22px; border-radius: var(--radius);
  background: linear-gradient(100deg, var(--tg), #0f8fd6);
  border: 3px solid #000; box-shadow: 8px 8px 0 #000; color: #04222f;
  position: relative; overflow: hidden; transition: transform .1s, box-shadow .12s;
}
.tg-strip::before {
  content: ""; position: absolute; inset: 0; z-index: 0; opacity: .18;
  background: repeating-linear-gradient(115deg, transparent 0 18px, rgba(255,255,255,.5) 18px 22px);
}
.tg-strip:hover { transform: translate(-3px,-3px); box-shadow: 11px 11px 0 #000; }
.tg-strip:active { transform: translate(3px,3px); box-shadow: 2px 2px 0 #000; }
.tg-strip-logo { position: relative; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: #fff; border: 2px solid #000; flex-shrink: 0; }
.tg-strip-logo svg { width: 32px; height: 32px; fill: var(--tg); }
.tg-strip-text { position: relative; z-index: 1; display: flex; flex-direction: column; min-width: 0; }
.tg-strip-text b { font-family: "Bricolage Grotesque", sans-serif; font-size: 24px; font-weight: 800; line-height: 1.05; }
.tg-strip-text small { font-size: 13.5px; font-weight: 700; opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg-strip-arrow { position: relative; z-index: 1; margin-left: auto; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #04222f; color: #fff; flex-shrink: 0; }
.tg-strip-arrow .ico { width: 24px; height: 24px; }

/* ---------------- pagination ---------------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin: 40px 0 12px; flex-wrap: wrap; }
.pagination a, .pagination span {
  min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--panel); border: 2px solid var(--line); color: var(--muted); font-weight: 800; font-size: 14px;
}
.pagination a:hover { color: #fff; background: var(--red); border-color: #000; box-shadow: var(--hard-ink); }
.pagination .current { background: var(--cyan); color: #04222f; border-color: #000; box-shadow: var(--hard-ink); }
.pagination .disabled { opacity: .35; pointer-events: none; }

/* ---------------- misc ---------------- */
.empty-state { text-align: center; padding: 76px 20px; color: var(--muted); }
.empty-state svg { width: 54px; height: 54px; opacity: .5; margin-bottom: 14px; }
.empty-state h1 { font-size: 80px; margin: 0; color: var(--red); font-weight: 800; }

.site-footer { border-top: 3px solid var(--cyan); margin-top: 70px; padding: 44px 0 28px; background: var(--bg-2); }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-inner .brand { margin-bottom: 8px; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-h { color: var(--ink); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.footer-links a { color: var(--muted); font-size: 14px; font-weight: 600; }
.footer-links a:hover { color: var(--cyan); }
.copyright { margin-top: 26px; font-size: 12.5px; }
.copyright a { color: var(--muted); text-decoration: underline; }
.copyright a:hover { color: var(--cyan); }

/* ---------------- responsive ---------------- */
@media (max-width: 860px) {
  .main-nav { display: none; }
  .menu-btn { display: block; }
  .search { width: auto; flex: 1; }
  .detail { grid-template-columns: 140px 1fr; gap: 22px; }
  .rank-columns { grid-template-columns: 1fr; gap: 22px; }
  .hero h1 { font-size: clamp(32px, 9vw, 52px); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px 14px; }
  .header-inner { gap: 12px; }
  .brand-text { display: none; }
  .detail { grid-template-columns: 1fr; }
  .detail-poster { max-width: 210px; }
  .meta-badges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .meta-badges .mb { display: flex; justify-content: space-between; }
  .tg-cta .btn { margin-left: 0; }
  .tg-cta { flex-wrap: wrap; }
  .tg-strip-text small { white-space: normal; }
  .tg-strip-arrow { display: none; }
}
