/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #0a0c11;
  --bg-2: #10131b;
  --bg-3: #171b26;
  --glass: rgba(16,19,27,.82);
  --accent: #7c6cf6;
  --accent-2: #a89bfa;
  --accent-dim: rgba(124,108,246,.15);
  --text: #f2f3f8;
  --muted: #9096a8;
  --border: #1d2231;
  --radius: 12px;
  --shadow: 0 8px 32px rgba(0,0,0,.45);
}

* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 15px; line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; background: none; border: none; color: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* ══════════ NAVBAR ══════════ */
.navbar {
  position: -webkit-sticky;
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 26px;
  padding: 0 36px; height: 64px;
  background: rgba(10,12,17,.75); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.logo { font-size: 21px; font-weight: 800; letter-spacing: .5px; display: flex; align-items: baseline; gap: 8px; }
.logo b {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo small { font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }
.navbar nav { display: flex; gap: 6px; }
.nav-link {
  padding: 8px 16px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--muted); transition: all .15s;
}
.nav-link:hover { color: var(--text); background: var(--bg-3); }
.nav-link.active { color: var(--text); background: var(--accent-dim); }
.search { flex: 1 1; max-width: 420px; margin-left: auto; position: relative; }
.search input {
  width: 100%; padding: 9px 16px 9px 40px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--bg-2);
  color: var(--text); font-size: 13.5px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.profile-btn {
  width: 38px; height: 38px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--border); display: grid; place-items: center;
  transition: border-color .15s; flex-shrink: 0;
}
.profile-btn:hover { border-color: var(--accent); }
.profile-btn img { width: 100%; height: 100%; object-fit: cover; }
.profile-btn svg { color: var(--muted); }


/* ══════════ HERO BANNER ══════════ */
.hero {
  position: relative; min-height: 68vh;
  overflow: hidden;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 2%, rgba(10,12,17,.5) 50%, rgba(10,12,17,.35)),
              linear-gradient(100deg, rgba(10,12,17,.85) 20%, transparent 65%);
}
.hero-content { position: relative; max-width: 720px; padding: 56px 44px 48px; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent-2); background: var(--accent-dim);
  padding: 5px 12px; border-radius: 6px; margin-bottom: 14px;
}
.hero-content h1 {
  font-size: clamp(30px, 5vw, 54px); font-weight: 800; line-height: 1.08;
  letter-spacing: -1px; margin-bottom: 12px;
  text-shadow: 0 4px 24px rgba(0,0,0,.6);
}
.hero-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; font-size: 13.5px; color: var(--accent-2); font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 5px; }
.hero-desc { color: #c3c7d4; margin-bottom: 24px; line-height: 1.65; font-size: 14.5px; max-width: 560px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ══════════ BUTTONS ══════════ */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 10px; font-weight: 600; font-size: 14px;
  transition: all .15s; border: none; cursor: pointer;
}
.btn-primary {
  background: linear-gradient(120deg, var(--accent), #9b8dfa); color: #fff;
  box-shadow: 0 4px 20px rgba(124,108,246,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(124,108,246,.5); filter: brightness(1.08); }
.btn-ghost {
  border: 1px solid rgba(255,255,255,.14); color: var(--text);
  background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.25); }

/* ══════════ MEDIA ROWS ══════════ */
.page { padding: 4px 0 72px; max-width: 1560px; margin: 0 auto; }
.row { margin-top: 40px; position: relative; }
.row-head { display: flex; align-items: center; justify-content: space-between; padding: 0 44px; margin-bottom: 14px; }
.row-head h2 { font-size: 19px; font-weight: 700; letter-spacing: -.3px; display: flex; align-items: center; gap: 10px; }
.row-head h2::before {
  content: ""; width: 4px; height: 18px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.row-nav { display: flex; gap: 8px; }
.row-nav button {
  width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center;
  background: var(--bg-3); color: var(--muted); transition: all .15s; font-size: 16px;
}
.row-nav button:hover { background: var(--accent); color: #fff; }
.row-outer { position: relative; }
.row-scroll {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 44px 12px;
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-behavior: smooth;
}
.row-scroll::-webkit-scrollbar { display: none; }
.card {
  flex: 0 0 172px; border-radius: var(--radius); overflow: hidden;
  background: var(--bg-2); position: relative;
  transition: transform .22s cubic-bezier(.2,.7,.3,1.2), box-shadow .22s;
  border: 1px solid transparent;
}
.card:hover { transform: translateY(-6px) scale(1.02); box-shadow: var(--shadow); border-color: var(--border); z-index: 2; }
.card-img { position: relative; aspect-ratio: 2/3; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.06); }
.card-score {
  position: absolute; top: 8px; left: 8px;
  background: rgba(10,12,17,.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 11px; font-weight: 700; color: #ffd166;
  padding: 3px 8px; border-radius: 6px; display: flex; align-items: center; gap: 3px;
}
.card-format {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(10,12,17,.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px;
  padding: 3px 8px; border-radius: 6px; color: var(--muted);
}
.card-info { padding: 10px 12px; }
.card-title {
  display: block; font-size: 13px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-sub { font-size: 11.5px; color: var(--muted); }
.progress-track { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.15); }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.card-remove {
  position: absolute; top: 8px; right: 8px; width: 26px; height: 26px;
  border-radius: 50%; background: rgba(10,12,17,.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: #fff; font-size: 12px; display: grid; place-items: center;
  opacity: 0; transition: opacity .15s;
}
.card:hover .card-remove { opacity: 1; }
.card-remove:hover { background: #e74c3c; }

/* ══════════ DETAIL ══════════ */
.detail {
  display: grid; grid-template-columns: 250px 1fr; grid-gap: 40px; gap: 40px;
  padding: 44px 44px 20px; max-width: 1240px; margin: 0 auto;
}
.detail-poster { position: relative; }
.detail-poster img { border-radius: var(--radius); box-shadow: var(--shadow); }
.detail h1 { font-size: 34px; font-weight: 800; letter-spacing: -.8px; margin-bottom: 10px; }
.detail-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; font-size: 13.5px; color: var(--accent-2); font-weight: 600; }
.detail-desc { color: var(--muted); line-height: 1.75; margin-bottom: 22px; max-width: 720px; font-size: 14.5px; }
.genre-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; align-items: center; }
.genre-tags span {
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 5px 13px; border-radius: 7px; font-size: 12px; color: var(--muted);
  transition: all .15s;
}
.genre-tags span:hover { border-color: var(--accent); color: var(--text); }
.adult-badge { background: #e74c3c !important; color: #fff !important; border-color: #e74c3c !important; font-weight: 700; }

.section { padding: 24px 44px 48px; max-width: 1240px; margin: 0 auto; }
.section h2 { font-size: 19px; font-weight: 700; margin-bottom: 16px; }

.ep-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 18px; border-radius: 10px; font-size: 14px;
  transition: background .12s; border: 1px solid transparent;
}
.ep-item:hover { background: var(--bg-2); border-color: var(--border); }
.ep-item .ep-num { color: var(--accent-2); font-weight: 700; margin-right: 14px; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; }
.ep-item .ep-watched { color: var(--muted); font-size: 12px; flex-shrink: 0; }

/* ══════════ CUSTOM VIDEO PLAYER ══════════ */
.player-shell { position: relative; border-radius: 14px; box-shadow: var(--shadow), 0 0 0 1px var(--border); }
.ap { position: relative; z-index: 1; width: 100%; aspect-ratio: 16/9; max-height: 76vh; background: #000; -webkit-user-select: none; -moz-user-select: none; user-select: none; border-radius: 14px; overflow: hidden; }
.ap video { position: relative; z-index: 1; width: 100%; height: 100%; display: block; }
.ap-overlay {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.ap.show-ui .ap-overlay { opacity: 1; pointer-events: auto; }
.ap-top {
  padding: 14px 18px; display: flex; justify-content: space-between; align-items: flex-start;
  background: linear-gradient(to bottom, rgba(0,0,0,.6), transparent);
}
.ap-top .ap-title { font-size: 13.5px; font-weight: 600; text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.ap-center {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
}
.ap-big-play {
  width: 76px; height: 76px; border-radius: 50%; pointer-events: auto;
  background: rgba(124,108,246,.92); display: grid; place-items: center;
  box-shadow: 0 8px 40px rgba(124,108,246,.5);
  transition: transform .15s, opacity .2s;
}
.ap-big-play:hover { transform: scale(1.08); }
.ap-spinner {
  width: 54px; height: 54px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.2); border-top-color: var(--accent-2);
  animation: ap-spin .8s linear infinite;
}
@keyframes ap-spin { to { transform: rotate(360deg); } }
.ap-bottom { background: linear-gradient(to top, rgba(0,0,0,.75), transparent); padding: 8px 16px 12px; }
.ap-seek-wrap { position: relative; height: 16px; display: flex; align-items: center; margin-bottom: 6px; cursor: pointer; }
.ap-seek-track { position: relative; width: 100%; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); transition: height .12s; }
.ap-seek-wrap:hover .ap-seek-track { height: 6px; }
.ap-seek-buf { position: absolute; inset: 0 auto 0 0; background: rgba(255,255,255,.3); border-radius: 2px; width: 0; }
.ap-seek-fill {
  position: absolute; inset: 0 auto 0 0; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 2px;
}
.ap-seek-thumb {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; top: 50%; transform: translate(-50%,-50%) scale(0);
  box-shadow: 0 0 8px rgba(0,0,0,.6); transition: transform .12s; left: 0;
}
.ap-seek-wrap:hover .ap-seek-thumb { transform: translate(-50%,-50%) scale(1); }
.ap-seek-marker {
  position: absolute; top: 0; bottom: 0; width: 3px; background: rgba(255,255,255,.55); border-radius: 1px;
}
.ap-seek-tooltip {
  position: absolute; bottom: 22px; transform: translateX(-50%);
  background: rgba(0,0,0,.9); padding: 4px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 600; pointer-events: none; opacity: 0; transition: opacity .12s;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ap-seek-wrap:hover .ap-seek-tooltip { opacity: 1; }
.ap-controls { display: flex; align-items: center; gap: 6px; }
.ap-btn {
  width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center;
  color: #fff; transition: background .12s; position: relative; flex-shrink: 0;
}
.ap-btn:hover { background: rgba(255,255,255,.15); }
.ap-btn.active { color: var(--accent-2); }
.ap-time { font-size: 13px; color: #fff; font-feature-settings: "tnum"; font-variant-numeric: tabular-nums; padding: 0 8px; white-space: nowrap; }
.ap-spacer { flex: 1 1; }
.ap-volume { display: flex; align-items: center; }
.ap-volume-slider {
  width: 0; overflow: hidden; transition: width .18s; display: flex; align-items: center;
}
.ap-volume:hover .ap-volume-slider, .ap-volume-slider:hover { width: 76px; }
.ap-vol-track { width: 64px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.25); position: relative; cursor: pointer; margin: 0 6px; }
.ap-vol-fill { position: absolute; inset: 0 auto 0 0; background: #fff; border-radius: 2px; }
.ap-menu {
  position: absolute; bottom: 50px; right: 0; min-width: 200px;
  background: rgba(14,16,23,.97); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px; box-shadow: var(--shadow);
  z-index: 20;
}
.ap-menu-item {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  width: 100%; padding: 9px 12px; border-radius: 7px;
  font-size: 13px; color: var(--text); text-align: left; transition: background .1s;
}
.ap-menu-item:hover { background: var(--bg-3); }
.ap-menu-item .check { color: var(--accent-2); font-weight: 700; }
.ap-menu-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); padding: 8px 12px 4px; }
.ap-skip {
  position: absolute; bottom: 76px; right: 18px; z-index: 6;
  background: rgba(14,16,23,.92); border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  padding: 10px 18px; border-radius: 9px; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; gap: 8px;
  transition: all .15s; box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.ap-skip:hover { background: var(--accent); border-color: var(--accent); }
.ap-flash { position: absolute; top: 14px; left: 18px; z-index: 6; font-size: 12.5px; color: #fff; background: rgba(0,0,0,.7); padding: 5px 12px; border-radius: 7px; opacity: 0; transition: opacity .3s; }

/* ══════════ WATCH PAGE ══════════ */
.watch-wrap { padding: 28px 32px 64px; max-width: 1240px; margin: 0 auto; }
.watch-head { margin-bottom: 18px; }
.watch-head h1 { font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.watch-head p { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.watch-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.watch-nav .group { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px; font-size: 13px; font-weight: 600;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--muted);
  transition: all .15s;
}
.pill:hover { color: var(--text); border-color: var(--accent); }
.pill.active { background: var(--accent-dim); color: var(--accent-2); border-color: var(--accent); }

/* ══════════ MANGA ══════════ */
.reader { max-width: 880px; margin: 0 auto; padding: 20px 16px 96px; }
.reader-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap; margin-bottom: 16px;
  position: -webkit-sticky;
  position: sticky; top: 72px; z-index: 10;
  background: var(--glass); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
}
.reader-bar select {
  background: var(--bg-2); color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px; max-width: 300px; font-size: 13px;
}
.reader-page { margin: 0 auto 4px; }
.reader-page img { width: 100%; height: auto; background: #000; border-radius: 4px; }
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); grid-gap: 8px; gap: 8px; }
.ch-grid a {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px;
  padding: 11px 13px; font-size: 12.5px; transition: all .15s;
}
.ch-grid a:hover { border-color: var(--accent); transform: translateY(-2px); }
.ch-grid .ch-num { color: var(--accent-2); font-weight: 700; }
.ch-grid .ch-title { color: var(--muted); font-size: 11px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ══════════ PROFILE ══════════ */
.profile-page { max-width: 720px; margin: 0 auto; padding: 44px 24px 80px; }
.profile-card {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px;
  padding: 36px; text-align: center; margin-bottom: 24px;
}
.profile-avatar {
  width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; font-size: 36px; font-weight: 800; color: #fff;
  overflow: hidden; border: 3px solid var(--border);
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-card h1 { font-size: 24px; font-weight: 800; margin-bottom: 4px; }
.profile-card .handle { color: var(--muted); font-size: 13.5px; margin-bottom: 20px; }
.profile-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.settings-card { background: var(--bg-2); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.settings-card > h2 { padding: 20px 24px 4px; font-size: 16px; font-weight: 700; }
.settings-card .hint { padding: 0 24px 8px; color: var(--muted); font-size: 12.5px; }
.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-top: 1px solid var(--border); gap: 16px;
}
.setting-row:first-of-type { border-top: none; }
.setting-row label { font-weight: 600; font-size: 14px; display: block; }
.setting-row p { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.toggle {
  width: 44px; height: 24px; background: var(--bg-3); border-radius: 999px;
  position: relative; cursor: pointer; transition: background .2s; border: none; flex-shrink: 0;
}
.toggle.on { background: var(--accent); }
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; background: #fff; border-radius: 50%;
  transition: transform .2s;
}
.toggle.on::after { transform: translateX(20px); }
.locked { opacity: .45; pointer-events: none; }

/* ══════════ MISC ══════════ */
.loading { padding: 80px 32px; text-align: center; color: var(--muted); font-size: 14px; }
.error-box {
  max-width: 640px; margin: 60px auto; padding: 36px; text-align: center;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px;
}
.error-box code { display: block; color: var(--accent-2); font-size: 13px; margin-top: 8px; }

/* ══════════ MOBILE ══════════ */
@media (max-width: 860px) {
  .navbar { padding: 0 16px; gap: 12px; height: 56px; }
  .navbar nav, .navbar > .searchbox, .navbar > .nav-profile { display: none; }


  .hero { min-height: 52vh; }
  .hero-content { padding: 32px 20px 28px; }
  .hero-desc { -webkit-line-clamp: 2; }
  .row-head { padding: 0 16px; }
  .row-scroll { padding: 4px 16px 10px; }
  .row-nav { display: none; }
  .card { flex: 0 0 132px; }
  .detail { grid-template-columns: 1fr; padding: 24px 16px 8px; gap: 20px; }
  .detail-poster { max-width: 220px; }
  .section { padding: 16px 16px 40px; }
  .watch-wrap { padding: 16px 8px 48px; }
  .ap { aspect-ratio: auto; height: 100%; max-height: 60vh; min-height: 220px; }
  .ap-time .dur { display: none; }
  .profile-page { padding: 24px 16px 64px; }
  .profile-card { padding: 28px 20px; }
  .reader-bar { top: 64px; }
}

/* ══════════ PROFILE DROPDOWN ══════════ */
.nav-profile { position: relative; }
.nav-dropdown {
  position: absolute; top: 48px; right: 0; min-width: 190px;
  background: rgba(14,16,23,.97); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid var(--border); border-radius: 12px;
  padding: 6px; box-shadow: var(--shadow); z-index: 200;
}
.nav-dropdown-head {
  padding: 9px 12px; font-size: 12px; font-weight: 700; color: var(--muted);
  border-bottom: 1px solid var(--border); margin-bottom: 4px;
  text-transform: uppercase; letter-spacing: .5px;
}
.nav-dropdown-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 10px 12px; border-radius: 8px;
  font-size: 13.5px; color: var(--text); text-align: left; transition: background .1s;
}
.nav-dropdown-item:hover { background: var(--bg-3); }
.nav-dropdown-item.danger { color: #ff6b6b; }
.nav-dropdown-item.danger:hover { background: rgba(231,76,60,.12); }

.card-adult {
  position: absolute; top: 8px; right: 8px;
  background: rgba(231,76,60,.92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 10px; font-weight: 800; color: #fff;
  padding: 3px 7px; border-radius: 6px; letter-spacing: .5px;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { display: flex; align-items: baseline; gap: 7px; }
.logo-text b { font-size: 19px; font-weight: 800; letter-spacing: -.2px; }
.logo-text small { font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }

.ap-menu .chev { color: var(--muted); font-size: 15px; }
.ap-menu-back { font-weight: 700; color: var(--accent-2); }
.ap-menu-back:hover { color: var(--text); }

/* ══════════ MOBILE FLOATING ISLAND ══════════ */
.mobile-nav {
  display: none; position: fixed; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); left: 50%;
  transform: translateX(-50%); z-index: 90;
  background: rgba(16,19,27,.8); -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.09); border-radius: 999px;
  padding: 8px; gap: 2px; box-shadow: 0 12px 40px rgba(0,0,0,.55);
}
.mobile-nav .mi {
  min-width: 58px; height: 52px; border-radius: 999px; padding: 0 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); transition: all .15s;
}
.mobile-nav .mi:hover { color: var(--text); }
.mobile-nav .mi.active { color: #fff; background: var(--accent-dim); }
.mi-label { font-size: 10px; font-weight: 600; letter-spacing: .2px; line-height: 1; }

.search-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10,12,17,.7); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; align-items: flex-start; justify-content: center; padding: 90px 20px 20px;
}
.search-sheet {
  width: 100%; max-width: 480px;
  background: rgba(14,16,23,.97); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px; box-shadow: var(--shadow);
  animation: sheet-in .18s ease-out;
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

.search-sheet p { color: var(--muted); font-size: 12px; padding: 10px 12px 2px; }
.search-sheet .search { display: block; width: 100%; }
.search-sheet .search input { font-size: 16px; padding: 12px 14px 12px 42px; }

/* ══════════ READER UPGRADES ══════════ */
.reader-progress {
  position: -webkit-sticky;
  position: sticky; top: 64px; z-index: 20; height: 3px;
  background: var(--bg-3); border-radius: 2px; margin-bottom: 10px;
}
.reader-progress > div {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width .12s linear;
}
.reader-chapter { margin-bottom: 12px; }
.reader-ch-label {
  text-align: center; color: var(--muted); font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; padding: 20px 0 12px;
}
.reader-sentinel {
  min-height: 120px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; padding: 24px;
}
.reader-modes { display: flex; gap: 6px; }
.reader-modes .pill { padding: 8px 12px; }
.reader-paged {
  position: relative; display: flex; align-items: center; justify-content: center;
  min-height: 60vh; background: #000; border-radius: 10px; overflow: hidden;
}
.reader-paged img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.reader-zone { position: absolute; top: 0; bottom: 0; width: 35%; z-index: 5; }
.reader-zone.left { left: 0; }
.reader-zone.right { right: 0; }
.reader-counter {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: rgba(10,12,17,.85); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums; z-index: 6;
}
.reader-pager {
  display: flex; justify-content: center; gap: 10px; padding: 16px 0 32px;
}
.reader-pager .pill:disabled { opacity: .35; pointer-events: none; }

/* ══════════ MOBILE NAVBAR = LOGO ONLY ══════════ */
@media (max-width: 860px) {
  .navbar { padding: 0 16px; }
  .navbar nav, .navbar > .searchbox, .navbar > .nav-profile { display: none; }
  body { padding-bottom: 100px; }
  .mobile-nav { display: flex; }
  .page { padding: 0 0 60px; }
  .row { margin-top: 28px; }
  .row-head { padding: 0 16px; margin-bottom: 10px; }
  .hero-content { padding: 0 18px 46px; }
  .hero-desc {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .search-overlay { padding: 76px 12px 20px; }
  .reader-progress { top: 56px; }
  .reader-bar { top: 66px; }
  .reader-paged img { max-height: 66vh; }
  .card { flex: 0 0 118px; }
  .card-img { aspect-ratio: 2/3; }
}


/* ══════════ WATCH & READ HISTORY ══════════ */
.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-day { display: flex; flex-direction: column; gap: 8px; }
.history-day-label {
  font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--muted); padding: 12px 0 4px;
}
.history-row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 10px;
  background: var(--bg); border: 1px solid var(--border);
  transition: background .12s; position: relative;
}
.history-row:hover { background: var(--bg-3); }
.history-thumb { flex-shrink: 0; border-radius: 6px; overflow: hidden; }
.history-thumb img { border-radius: 6px; }
.history-info { flex: 1 1; min-width: 0; }
.history-title {
  display: block; font-size: 14px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.history-meta {
  display: block; font-size: 12px; color: var(--muted); margin-top: 3px;
}
.history-bar {
  width: 100%; max-width: 200px; height: 3px;
  background: rgba(255,255,255,.12); border-radius: 2px; margin-top: 8px;
}
.history-bar-fill {
  height: 100%; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.history-remove {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(10,12,17,.85); color: #fff; font-size: 12px;
  display: grid; place-items: center; opacity: 0; transition: opacity .15s;
}
.history-row:hover .history-remove { opacity: 1; }
.history-remove:hover { background: #e74c3c; }

/* ══════════ PLAYER BACKDROP & WATERMARK VEIL ══════════ */
.ap::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 12%;
  z-index: 4; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 45%, transparent 100%);
  opacity: 0; transition: opacity .25s;
}
.ap.show-ui::before { opacity: 1; }
.ap-backdrop {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: center/cover no-repeat; transform: scale(1.18);
  filter: blur(44px) brightness(.34) saturate(1.35);
}
.player-glow {
  position: absolute; inset: -28px; z-index: 0; pointer-events: none;
  background: center/cover no-repeat; border-radius: 24px;
  filter: blur(64px) brightness(.3) saturate(1.35); opacity: .9;
}

/* ══════════ CRUNCHYROLL-STYLE HISTORY ══════════ */
.crh-list { display: flex; flex-direction: column; gap: 10px; }
.crh-row {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--border);
  transition: background .12s; position: relative;
}
.crh-row:hover { background: var(--bg-3); }
.crh-thumb { flex-shrink: 0; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.crh-thumb img { border-radius: 8px; }
.crh-body { flex: 1 1; min-width: 0; }
.crh-title {
  display: block; font-size: 15px; font-weight: 700;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.crh-ep { display: block; font-size: 12.5px; color: var(--accent-2); font-weight: 600; margin-top: 2px; }
.crh-track {
  width: 100%; max-width: 340px; height: 4px; margin-top: 10px;
  background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden;
}
.crh-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.crh-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.crh-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.crh-resume {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: 9px; font-weight: 600; font-size: 13px;
  background: linear-gradient(120deg, var(--accent), #9b8dfa); color: #fff;
  box-shadow: 0 4px 16px rgba(124,108,246,.3); transition: all .15s;
}
.crh-resume:hover { transform: translateY(-1px); filter: brightness(1.08); }
.crh-remove {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(10,12,17,.85); color: #fff; font-size: 12px;
  display: grid; place-items: center; opacity: 0; transition: opacity .15s;
}
.crh-row:hover .crh-remove { opacity: 1; }
.crh-remove:hover { background: #e74c3c; }
@media (max-width: 640px) {
  .crh-row { gap: 12px; padding: 10px; }
  .crh-resume { padding: 8px 12px; font-size: 12px; }
  .crh-remove { opacity: 1; }
}

/* ══════════ HERO CAROUSEL ══════════ */
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 20%;
  display: flex; align-items: flex-end;
  opacity: 0; transition: opacity .8s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(10,12,17,.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.12); color: #fff;
  display: grid; place-items: center; transition: all .15s;
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero-arrow.left { left: 18px; }
.hero-arrow.right { right: 18px; }
.hero-dots { position: absolute; bottom: 16px; right: 44px; z-index: 3; display: flex; gap: 7px; }
.hero-dots button {
  width: 26px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.28); transition: all .2s; padding: 0;
}
.hero-dots button.active { background: var(--accent-2); width: 36px; }
@media (max-width: 860px) {
  .hero { min-height: 52vh; }
  .hero-arrow { display: none; }
  .hero-dots { right: 20px; bottom: 12px; }
}

/* ══════════ LIVE SEARCH ══════════ */
.searchbox { position: relative; flex: 1 1; max-width: 420px; margin-left: auto; }
.search-drop {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 300;
  background: rgba(14,16,23,.98); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow); padding: 6px; overflow: hidden;
}
.search-hit {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 7px 8px; border-radius: 8px; text-align: left; transition: background .1s;
}
.search-hit:hover { background: var(--bg-3); }
.search-hit img { border-radius: 5px; flex-shrink: 0; }
.search-hit-title {
  flex: 1 1; min-width: 0; font-size: 13.5px; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-hit-meta { font-size: 11.5px; color: var(--muted); flex-shrink: 0; }
.search-drop-hint { padding: 12px; font-size: 12.5px; color: var(--muted); }
.search-all {
  width: 100%; padding: 10px 12px; margin-top: 2px;
  font-size: 12.5px; font-weight: 600; color: var(--accent-2); text-align: left;
  border-top: 1px solid var(--border); transition: background .1s;
}
.search-all:hover { background: var(--accent-dim); }
.search-sheet .searchbox { flex: 1 1; max-width: none; margin: 0; }
.search-sheet .search-drop { position: static; margin-top: 10px; }
.sheet-close {
  padding: 11px; border-radius: 8px; color: var(--muted);
  display: grid; place-items: center; flex-shrink: 0; transition: all .12s;
}
.sheet-close:hover { color: var(--text); background: var(--bg-3); }

/* ══════════ MOBILE PLAYER ══════════ */
@media (max-width: 860px) {
  .ap { aspect-ratio: 16/9; height: auto; max-height: none; min-height: 0; }
  .player-glow { display: none; }
  .ap-btn { width: 44px; height: 44px; }
  .ap-top { padding: 12px 14px; }
  .ap-bottom { padding: 10px 12px 12px; }
  .ap-seek-wrap { height: 22px; margin-bottom: 4px; }
  .ap-seek-track { height: 5px; }
  .ap-seek-thumb { width: 16px; height: 16px; }
  body.watching { padding-bottom: 0; }
  body.watching .mobile-nav { display: none !important; }
  /* make room: drop controls that are duplicated or handled by the OS */
  .ap-controls > a.ap-btn { display: none; }
  .ap-volume { display: none; }
  .ap-controls .ap-btn[aria-label="picture in picture"] { display: none; }
  .ap-time .dur { display: none; }
  .ap-controls { gap: 2px; }
  .ap-time { font-size: 11.5px; }
}
