@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #090b12;
  --bg-soft: #0e111b;
  --surface: #121725;
  --surface-2: #171e2e;
  --surface-3: #202a3d;
  --text: #f4f6fb;
  --muted: #9aa5b8;
  --muted-2: #6f7b90;
  --accent: #ff4f91;
  --accent-2: #a855f7;
  --cyan: #54d7ef;
  --line: rgba(167, 183, 211, .13);
  --shadow: 0 18px 50px rgba(0, 0, 0, .32);
  --radius: 18px;
  --content-width: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #38445c var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  grid-template-rows: auto 1fr auto;
  column-gap: clamp(22px, 3vw, 44px);
  align-items: start;
  background:
    radial-gradient(ellipse at 12% 0%, rgba(168, 85, 247, .12), transparent 34rem),
    radial-gradient(ellipse at 90% 16%, rgba(255, 79, 145, .08), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body, button, input { font-family: 'DM Sans', sans-serif; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
img { display: block; max-width: 100%; }
button, a, input { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(255, 79, 145, .35); color: #fff; }

.site-header {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(9, 11, 18, .84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.site-nav {
  width: min(100% - 48px, var(--content-width));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(22px, 4vw, 58px);
}
.site-brand, .footer-brand-name {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  font: 700 22px/1 'Outfit', sans-serif;
  letter-spacing: -.7px;
}
.site-brand b, .footer-brand-name b {
  color: var(--accent);
  font-weight: 800;
}
.site-brand-mark {
  width: 35px;
  height: 35px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(255, 79, 145, .35));
}
.site-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 0 0;
  padding: 0;
  list-style: none;
}
.site-nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  border-radius: 11px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}
.site-nav-link:hover, .site-nav-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .07);
  transform: translateY(-1px);
}
.site-nav-link span { color: var(--accent); margin-left: 5px; font-size: 17px; }
.site-nav-actions { position: relative; display: flex; align-items: center; gap: 13px; }
.language-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  color: #dce3ef;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  transition: .2s ease;
}
.language-link:hover { border-color: rgba(84, 215, 239, .5); color: var(--cyan); }
.language-globe { color: var(--cyan); font-size: 18px; }
.search-toggle {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: .2s ease;
}
.search-toggle:hover { background: var(--surface-3); border-color: rgba(255, 79, 145, .45); }
.search-toggle svg, .search-field-wrap > svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.search-form {
  display: none;
  position: absolute;
  top: calc(100% + 15px);
  right: 0;
  z-index: 110;
  width: min(430px, calc(100vw - 32px));
  padding: 18px;
  background: #151c2b;
  border: 1px solid rgba(167, 183, 211, .2);
  border-radius: 17px;
  box-shadow: var(--shadow);
}
.search-form.active { display: block; animation: searchIn .18s ease-out; }
@keyframes searchIn { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: translateY(0); } }
.search-label { display: block; margin-bottom: 9px; color: #dce3ef; font-size: 12px; font-weight: 700; }
.search-field-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 7px 6px 12px;
  background: #0c111c;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.search-field-wrap > svg { flex: 0 0 auto; color: var(--muted); }
.search-field-wrap input {
  width: 100%;
  min-width: 0;
  padding: 9px 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 13px;
}
.search-field-wrap input::placeholder { color: #68758a; }
.search-field-wrap button {
  padding: 9px 14px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #ed3978);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: filter .2s ease, transform .2s ease;
}
.search-field-wrap button:hover { filter: brightness(1.12); transform: translateY(-1px); }
.suggestions { color: var(--muted); font-size: 12px; }

.menu-toggle-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.menu-toggle-button { display: none; }

.main-content {
  grid-column: 1;
  width: min(100%, 1120px);
  justify-self: end;
  min-width: 0;
  padding: 38px 0 70px 24px;
}
.recent-section, .blog-section {
  width: 100%;
  margin-bottom: 48px;
}
.recent-heading, .blog-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.recent-kicker, .blog-section-kicker, .popular-kicker {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}
.recent-heading h2, .blog-section-heading h2, .popular-heading h2 {
  margin: 0;
  color: var(--text);
  font: 700 clamp(23px, 2.3vw, 30px)/1.2 'Outfit', sans-serif;
  letter-spacing: -.8px;
}
.recent-heading h2 span, .blog-section-heading h2 span { color: var(--accent); }
.recent-heading-copy p, .blog-section-heading p, .popular-heading p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.recent-controls { display: flex; gap: 8px; flex: 0 0 auto; }
.recent-arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: #dce3ef;
  font-size: 19px;
  cursor: pointer;
  transition: .2s ease;
}
.recent-arrow:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.recent-slider {
  display: grid;
  grid-auto-columns: clamp(155px, 19%, 190px);
  grid-auto-flow: column;
  gap: 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 13px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #354057 transparent;
}
.recent-card { min-width: 0; scroll-snap-align: start; }
.recent-poster-wrap, .blog-poster {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface-2);
  border: 1px solid rgba(167, 183, 211, .12);
  border-radius: 15px;
  aspect-ratio: 3 / 4;
  box-shadow: 0 9px 24px rgba(0, 0, 0, .18);
}
.recent-poster-wrap::after, .blog-poster::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(4, 6, 12, .65));
}
.recent-poster-wrap img, .blog-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2,.7,.2,1), filter .3s ease;
}
.recent-card:hover img, .blog-item:hover .blog-poster img { transform: scale(1.07); filter: saturate(1.12); }
.recent-episode-badge, .episode-count {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 5px 9px;
  color: #fff;
  background: rgba(9, 11, 18, .78);
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 7px;
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
}
.recent-play, .blog-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding-left: 3px;
  color: #fff;
  background: rgba(255, 79, 145, .92);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  box-shadow: 0 7px 25px rgba(255, 79, 145, .35);
  opacity: 0;
  transform: translate(-50%, -42%) scale(.8);
  transition: .25s ease;
}
.recent-card:hover .recent-play, .blog-item:hover .blog-card-play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.recent-card-info { padding: 11px 2px 0; }
.recent-card-info h3 {
  overflow: hidden;
  margin: 0 0 5px;
  color: #edf1f8;
  font: 600 14px/1.4 'Outfit', sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s ease;
}
.recent-card:hover h3, .blog-item:hover h3 { color: var(--accent); }
.recent-card-meta { display: flex; align-items: center; gap: 7px; color: var(--muted-2); font-size: 11px; }
.recent-live-dot, .blog-meta-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #35d39a;
  box-shadow: 0 0 9px rgba(53, 211, 154, .55);
}
.recent-empty, .no-posts, .popular-empty {
  padding: 24px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 14px;
  text-align: center;
  font-size: 13px;
}
.blog-section { margin-top: 8px; }
.blog-section-heading { align-items: center; }
.blog-total-label {
  flex: 0 0 auto;
  padding: 7px 12px;
  color: #f5c2d7;
  background: rgba(255, 79, 145, .1);
  border: 1px solid rgba(255, 79, 145, .2);
  border-radius: 9px;
  font-size: 11px;
  font-weight: 800;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 25px 17px;
}
.blog-item { min-width: 0; }
.blog-poster { aspect-ratio: 3 / 4.15; border-radius: 14px; }
.blog-details { padding: 11px 2px 0; }
.blog-details h3 {
  overflow: hidden;
  margin: 0 0 7px;
  color: #edf1f8;
  font: 600 14px/1.4 'Outfit', sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s ease;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: var(--muted-2);
  font-size: 10px;
  white-space: nowrap;
}
.blog-meta-dot { width: 5px; height: 5px; }
.blog-meta-separator { color: #4e5a70; }
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 38px 0 4px;
}
.pagination a, .pagination span {
  min-width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  padding: 0 11px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  transition: .2s ease;
}
.pagination a:hover, .pagination a.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #e83b83);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(255, 79, 145, .2);
}
.pagination span { border-color: transparent; background: transparent; }

.sidebar {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  padding: 42px 24px 60px 0;
}
.popular-posts {
  position: sticky;
  top: 106px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(23, 30, 46, .96), rgba(15, 20, 32, .96));
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: var(--shadow);
}
.popular-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 21px 19px 17px;
  border-bottom: 1px solid var(--line);
}
.popular-heading h2 { font-size: 20px; }
.popular-heading p { font-size: 11px; }
.popular-heading-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(255, 166, 77, .1);
  border: 1px solid rgba(255, 166, 77, .18);
  border-radius: 12px;
  font-size: 19px;
}
.popular-list { padding: 5px 14px 12px; }
.popular-item {
  display: grid;
  grid-template-columns: 20px 58px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid rgba(167, 183, 211, .09);
  transition: background .2s ease, transform .2s ease;
}
.popular-item:last-child { border-bottom: 0; }
.popular-item:hover { background: rgba(255, 255, 255, .035); transform: translateX(3px); }
.popular-rank {
  color: var(--muted-2);
  font: 700 13px 'Outfit', sans-serif;
  text-align: center;
}
.popular-item:nth-child(-n+3) .popular-rank { color: var(--accent); }
.popular-thumb {
  width: 58px;
  height: 66px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface-3);
  border-radius: 9px;
  color: var(--muted);
  font-size: 17px;
}
.popular-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.popular-item:hover .popular-thumb img { transform: scale(1.08); }
.popular-info { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.popular-info strong {
  overflow: hidden;
  color: #e9edf5;
  font: 600 12px/1.35 'Outfit', sans-serif;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.popular-info small { color: var(--muted-2); font-size: 10px; }
.popular-arrow { color: #67748a; font-size: 13px; transition: color .2s ease; }
.popular-item:hover .popular-arrow { color: var(--accent); }

.footer {
  position: relative;
  grid-column: 1 / -1;
  overflow: hidden;
  margin-top: 15px;
  padding: 54px max(24px, calc((100vw - var(--content-width)) / 2)) 0;
  background: #0c101a;
  border-top: 1px solid var(--line);
}
.footer-glow {
  position: absolute;
  top: -160px;
  left: 50%;
  width: 550px;
  height: 250px;
  pointer-events: none;
  background: radial-gradient(ellipse, rgba(168, 85, 247, .13), transparent 70%);
  transform: translateX(-50%);
}
.footer-container {
  position: relative;
  display: grid;
  grid-template-columns: 1.55fr .8fr .9fr 1fr;
  gap: clamp(25px, 4vw, 65px);
  max-width: var(--content-width);
  margin: 0 auto;
  padding-bottom: 42px;
}
.footer-brand-name { font-size: 17px; letter-spacing: .6px; }
.footer-brand-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 11px;
  font-size: 21px;
  box-shadow: 0 7px 22px rgba(255, 79, 145, .2);
}
.footer-description { max-width: 310px; margin: 17px 0 12px; color: #aab4c5; font-size: 12px; line-height: 1.8; }
.footer-disclaimer { max-width: 330px; margin: 0; color: #68758a; font-size: 10px; line-height: 1.7; }
.footer-section h3 { margin: 3px 0 17px; color: #f1f3f8; font: 700 14px 'Outfit', sans-serif; }
.footer-section ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-section li a { color: #8995a9; font-size: 12px; transition: color .2s ease, padding .2s ease; }
.footer-section li a:hover { padding-left: 4px; color: var(--accent); }
.footer-social-copy { margin: -5px 0 15px; color: #8995a9; font-size: 11px; }
.social-links { display: flex; gap: 9px; }
.social-links a {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  color: #b5bfd0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 11px;
  transition: .2s ease;
}
.social-links a:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.social-links svg { width: 17px; height: 17px; }
.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 17px 0 20px;
  border-top: 1px solid var(--line);
  color: #6f7b90;
  font-size: 10px;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #b5bfd0; }
.footer-bottom a:hover { color: var(--accent); }
.footer-bottom > span { color: #8995a9; }
.footer-heart { color: var(--accent); }

/* Keyboard focus */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline-offset: 3px;
}

/* Laptop and tablet */
@media (max-width: 1180px) {
  body { grid-template-columns: minmax(0, 1fr) 275px; column-gap: 22px; }
  .main-content { padding-left: 24px; }
  .sidebar { padding-right: 20px; }
  .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 15px; }
  .site-nav { width: min(100% - 40px, var(--content-width)); gap: 20px; }
}
@media (max-width: 900px) {
  body { display: block; }
  .site-nav { min-height: 70px; }
  .main-content { width: min(100% - 40px, 760px); margin: 0 auto; padding: 32px 0 48px; }
  .sidebar { width: min(100% - 40px, 760px); margin: 0 auto; padding: 0 0 48px; }
  .popular-posts { position: static; }
  .popular-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .popular-item:nth-last-child(2) { border-bottom: 0; }
  .footer { margin-top: 0; }
  .footer-container { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-social-section { grid-column: 2 / 4; }
}
@media (max-width: 640px) {
  .site-nav { width: calc(100% - 30px); min-height: 64px; gap: 12px; }
  .site-brand { font-size: 19px; gap: 8px; }
  .site-brand-mark { width: 30px; height: 30px; }
  .menu-toggle-button {
    width: 39px;
    height: 39px;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    order: 3;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: var(--surface);
    cursor: pointer;
  }
  .menu-toggle-button span { width: 17px; height: 2px; display: block; background: #e7ebf3; border-radius: 2px; transition: .2s ease; }
  .site-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 12px 15px 16px;
    background: rgba(12, 16, 26, .98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 28px rgba(0,0,0,.25);
  }
  .menu-toggle-input:checked ~ .site-menu { display: flex; }
  .menu-toggle-input:checked + .menu-toggle-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle-input:checked + .menu-toggle-button span:nth-child(2) { opacity: 0; }
  .menu-toggle-input:checked + .menu-toggle-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { flex-wrap: wrap; }
  .site-brand { margin-right: auto; }
  .site-nav-actions { order: 2; gap: 8px; }
  .language-link { padding: 8px 9px; font-size: 11px; }
  .search-toggle { width: 38px; height: 38px; }
  .search-form { right: -48px; }
  .main-content, .sidebar { width: calc(100% - 30px); }
  .main-content { padding-top: 27px; }
  .recent-section, .blog-section { margin-bottom: 38px; }
  .recent-heading, .blog-section-heading { align-items: center; gap: 12px; }
  .recent-heading h2, .blog-section-heading h2 { font-size: 23px; }
  .recent-heading-copy p, .blog-section-heading p { max-width: 260px; font-size: 11px; }
  .recent-slider { grid-auto-columns: 43%; gap: 12px; }
  .recent-arrow { width: 35px; height: 35px; }
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 13px; }
  .blog-details h3, .recent-card-info h3 { font-size: 13px; }
  .blog-card-meta { font-size: 9px; gap: 5px; }
  .blog-total-label { padding: 6px 8px; font-size: 9px; }
  .popular-list { grid-template-columns: 1fr; }
  .popular-item:nth-last-child(2) { border-bottom: 1px solid rgba(167, 183, 211, .09); }
  .popular-item:last-child { border-bottom: 0; }
  .footer { padding: 40px 20px 0; }
  .footer-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-social-section { grid-column: auto; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 5px; padding: 15px 0 18px; }
}
@media (max-width: 380px) {
  .site-brand { font-size: 17px; }
  .language-link { gap: 5px; padding: 7px; }
  .recent-slider { grid-auto-columns: 48%; }
  .recent-controls { gap: 5px; }
  .recent-arrow { width: 32px; height: 32px; }
  .footer-container { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* =========================================================
   Watch and episode page
   ========================================================= */


/* =========================================================
   ANIME SAKURA — WATCH / EPISODE PAGE
   Uses the same visual theme as the homepage above.
   ========================================================= */

body.watch-page {
  display: block;
  min-height: 100vh;
}
.watch-page .watch-layout {
  width: min(100% - 48px, 1440px);
  margin: 38px auto 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 26px;
}
.watch-main { min-width: 0; }
.watch-page .eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.player-panel {
  overflow: hidden;
  padding: 18px;
  background: linear-gradient(145deg, rgba(23, 30, 46, .98), rgba(14, 18, 29, .98));
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}
.player-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}
.player-heading .episode-status {
  margin: 0;
  color: #e8edf7;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2px;
}
#iframe-embed {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  background: #03050a;
  border: 1px solid rgba(167, 183, 211, .13);
  border-radius: 13px;
}
#iframe-embed iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #03050a;
}
.player-empty {
  min-height: 250px;
  display: grid;
  place-items: center;
  padding: 25px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}
.player-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.note-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--cyan);
  background: rgba(84, 215, 239, .1);
  border-radius: 50%;
  font-size: 11px;
}
.anime-info {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 22px;
  margin-top: 22px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.anime-poster {
  width: 145px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}
.anime-details { min-width: 0; align-self: center; }
.anime-details h2 {
  margin: 7px 0 10px;
  color: var(--text);
  font: 700 clamp(21px, 2.2vw, 29px)/1.2 'Outfit', sans-serif;
  letter-spacing: -.6px;
}
.anime-description {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #aab5c7;
  font-size: 12px;
  line-height: 1.8;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
}
.anime-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 15px;
}
.anime-meta span {
  color: var(--muted);
  font-size: 11px;
}
.anime-meta b {
  margin-right: 5px;
  color: #e6ebf4;
  font-weight: 700;
}

/* Episode list panel */
.episode-panel {
  position: sticky;
  top: 98px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(23, 30, 46, .98), rgba(14, 18, 29, .98));
  border: 1px solid var(--line);
  border-radius: 19px;
  box-shadow: var(--shadow);
}
.episode-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--line);
}
.episode-panel-head h2 {
  margin: 4px 0 0;
  color: var(--text);
  font: 700 23px/1.2 'Outfit', sans-serif;
}
.episode-total {
  flex: 0 0 auto;
  padding: 6px 9px;
  color: #f6c3d8;
  background: rgba(255, 79, 145, .1);
  border: 1px solid rgba(255, 79, 145, .2);
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}
.episode-tools {
  padding: 14px 15px 11px;
  border-bottom: 1px solid rgba(167, 183, 211, .08);
}
#episode-search {
  width: 100%;
  min-height: 41px;
  padding: 0 12px;
  color: var(--text);
  background: #0b101a;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  font-size: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
#episode-search::placeholder { color: #6f7b90; }
#episode-search:focus {
  border-color: rgba(255, 79, 145, .6);
  box-shadow: 0 0 0 3px rgba(255, 79, 145, .1);
}
.episode-hint {
  display: block;
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 10px;
}
.episode-container {
  max-height: 590px;
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: #38445c transparent;
}
.episode-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.episode-list li { min-width: 0; }
.episode-button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 11px;
  color: #b7c1d1;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.episode-button:hover {
  color: #fff;
  background: rgba(255, 255, 255, .055);
  border-color: var(--line);
  transform: translateX(2px);
}
.episode-button.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(255, 79, 145, .18), rgba(168, 85, 247, .1));
  border-color: rgba(255, 79, 145, .3);
}
.episode-play {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--muted);
  background: var(--surface-3);
  border-radius: 8px;
  font-size: 11px;
}
.episode-button.active .episode-play {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 4px 13px rgba(255, 79, 145, .2);
}
.episode-label {
  overflow: hidden;
  flex: 1;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.episode-number {
  color: #657187;
  font: 700 10px 'Outfit', sans-serif;
}
.episode-button.active .episode-number { color: #f5a9c8; }
.episode-empty {
  margin: 8px;
  padding: 18px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, .025);
  border: 1px dashed var(--line);
  border-radius: 10px;
  text-align: center;
  font-size: 11px;
}

/* Related anime carousel */
.related-section {
  width: min(100% - 48px, 1440px);
  overflow: hidden;
  margin: 0 auto 58px;
  padding: 25px;
  background: rgba(18, 23, 37, .75);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.related-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 19px;
}
.related-kicker {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.8px;
}
.related-heading h2 {
  margin: 0;
  color: var(--text);
  font: 700 25px/1.2 'Outfit', sans-serif;
}
.related-heading p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.related-controls { display: flex; gap: 8px; }
.related-arrow {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #e8edf7;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 23px;
  cursor: pointer;
  transition: .2s ease;
}
.related-arrow:hover {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.related-viewport { overflow: hidden; width: 100%; }
.related-track {
  display: flex;
  gap: 14px;
  will-change: transform;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.related-card {
  min-width: 0;
  flex: 0 0 calc((100% - 56px) / 5);
}
.related-image-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.related-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.related-card:hover .related-image-wrap img { transform: scale(1.07); }
.related-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding-left: 3px;
  color: #fff;
  background: rgba(255, 79, 145, .92);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -40%) scale(.8);
  transition: .25s ease;
}
.related-card:hover .related-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.related-card h3 {
  overflow: hidden;
  margin: 10px 2px 0;
  color: #e9edf5;
  font: 600 13px/1.4 'Outfit', sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color .2s ease;
}
.related-card:hover h3 { color: var(--accent); }
.related-progress {
  height: 3px;
  overflow: hidden;
  margin-top: 20px;
  background: var(--surface-3);
  border-radius: 10px;
}
.related-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: inherit;
  transition: width .3s ease;
}

/* Watch page responsive layout */
@media (max-width: 1050px) {
  .watch-page .watch-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 18px;
  }
  .related-card { flex-basis: calc((100% - 42px) / 4); }
}
@media (max-width: 800px) {
  .watch-page .watch-layout {
    grid-template-columns: minmax(0, 1fr);
    width: min(100% - 36px, 760px);
    margin-top: 25px;
  }
  .episode-panel { position: static; }
  .episode-container { max-height: 390px; }
  .related-section { width: min(100% - 36px, 760px); }
  .related-card { flex-basis: calc((100% - 28px) / 3); }
}
@media (max-width: 560px) {
  .watch-page .watch-layout {
    width: calc(100% - 24px);
    gap: 15px;
    margin: 17px auto 35px;
  }
  .player-panel { padding: 11px; border-radius: 15px; }
  .player-heading { margin-bottom: 10px; }
  .player-heading .episode-status { font-size: 10px; }
  #iframe-embed { min-height: 190px; border-radius: 9px; }
  .player-note { font-size: 10px; }
  .anime-info {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 13px;
    margin-top: 14px;
    padding: 13px;
    border-radius: 14px;
  }
  .anime-poster { width: 92px; border-radius: 9px; }
  .anime-details h2 { margin: 5px 0 7px; font-size: 18px; }
  .anime-description { font-size: 10px; line-height: 1.65; -webkit-line-clamp: 4; }
  .anime-meta { gap: 5px 10px; margin-top: 9px; }
  .anime-meta span { font-size: 9px; }
  .episode-panel { border-radius: 15px; }
  .episode-panel-head { padding: 15px; }
  .episode-panel-head h2 { font-size: 20px; }
  .episode-tools { padding: 11px 12px; }
  .episode-container { max-height: 330px; padding: 7px; }
  .episode-button { min-height: 44px; }
  .related-section {
    width: calc(100% - 24px);
    margin-bottom: 35px;
    padding: 15px;
    border-radius: 15px;
  }
  .related-heading h2 { font-size: 21px; }
  .related-heading p { font-size: 10px; }
  .related-card { flex-basis: calc((100% - 14px) / 2); }
  .related-arrow { width: 34px; height: 34px; }
}
@media (max-width: 360px) {
  .anime-info { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
  .anime-poster { width: 76px; }
  .anime-details h2 { font-size: 16px; }
  .related-card { flex-basis: 78%; }
}


/* =========================================================
   Search results page
   ========================================================= */


/* =========================================================
   ANIME SAKURA — SEARCH RESULTS PAGE
   Same shared theme as Home + Watch pages.
   ========================================================= */
body:has(.container) {
  display: block;
  min-height: 100vh;
}
.container {
  width: min(100% - 48px, 1440px);
  min-height: 55vh;
  margin: 0 auto;
  padding: 42px 0 65px;
}
.results {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}
.results > h3 {
  margin: 0 0 25px;
  color: var(--text);
  font: 700 clamp(21px, 2.5vw, 30px)/1.25 'Outfit', sans-serif;
  letter-spacing: -.6px;
}
.results > h3 strong {
  color: var(--accent);
  overflow-wrap: anywhere;
}
.results > p:not(.no-results) {
  margin: 0;
  padding: 24px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 14px;
  text-align: center;
  font-size: 13px;
}
.results-container {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 17px;
}
.results-container .card {
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(23, 30, 46, .96), rgba(15, 20, 32, .96));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 9px 25px rgba(0, 0, 0, .16);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.results-container .card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 79, 145, .4);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .27), 0 0 22px rgba(255, 79, 145, .07);
}
.results-container .card > img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  transition: transform .45s ease, filter .3s ease;
}
.results-container .card:hover > img {
  filter: saturate(1.1);
}
.results-container .card-content {
  padding: 14px 14px 15px;
}
.results-container .card-content h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 8px;
  color: var(--text);
  font: 600 15px/1.4 'Outfit', sans-serif;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.results-container .card-content h3 a {
  color: inherit;
  transition: color .2s ease;
}
.results-container .card-content h3 a:hover { color: var(--accent); }
.results-container .card-content p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}
.results-container .card-content small {
  display: block;
  padding-top: 10px;
  color: var(--muted-2);
  border-top: 1px solid rgba(167, 183, 211, .09);
  font-size: 10px;
  line-height: 1.5;
}
.no-results {
  margin: 0;
  padding: 32px 20px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 15px;
  text-align: center;
  font-size: 13px;
}
.no-results strong { color: var(--accent); overflow-wrap: anywhere; }
.results .pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 35px 0 0;
}
.results .pagination a,
.results .pagination span {
  min-width: 39px;
  height: 39px;
  display: inline-grid;
  place-items: center;
  padding: 0 11px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  transition: .2s ease;
}
.results .pagination a:hover,
.results .pagination span.current {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #e83b83);
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(255, 79, 145, .2);
}
.results .pagination span:not(.current) {
  border-color: transparent;
  background: transparent;
}

/* Search page responsive cards */
@media (max-width: 1100px) {
  .results-container { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .container {
    width: min(100% - 36px, 680px);
    min-height: 50vh;
    padding: 30px 0 48px;
  }
  .results-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 13px; }
  .results-container .card-content { padding: 11px; }
  .results-container .card-content h3 { font-size: 13px; }
  .results-container .card-content p { font-size: 10px; }
}
@media (max-width: 380px) {
  .container { width: calc(100% - 24px); padding-top: 24px; }
  .results-container { gap: 13px 10px; }
  .results-container .card-content { padding: 9px; }
  .results-container .card-content h3 { font-size: 12px; }
}


/* =========================================================
   Latest updates page
   ========================================================= */


/* =========================================================
   ANIME SAKURA — LATEST UPDATES PAGE
   Same shared stylesheet: Home + Watch + Search + Updates.
   ========================================================= */
body:has(.recent-posts) {
  display: block;
  min-height: 100vh;
}
.recent-posts {
  width: min(100% - 48px, 1440px);
  min-height: 55vh;
  margin: 0 auto;
  padding: 42px 0 65px;
}
.recent-posts > h4 {
  position: relative;
  margin: 0 0 25px;
  padding-left: 16px;
  color: var(--text);
  font: 700 clamp(22px, 2.5vw, 30px)/1.25 'Outfit', sans-serif;
  letter-spacing: -.6px;
}
.recent-posts > h4::before {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: 4px;
  border-radius: 5px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px rgba(255, 79, 145, .3);
}
.recent-posts > .blog-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px 17px;
}
.recent-posts .blog-item {
  min-width: 0;
  overflow: hidden;
  padding: 0 0 12px;
  background: linear-gradient(155deg, rgba(23, 30, 46, .96), rgba(15, 20, 32, .96));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 9px 25px rgba(0, 0, 0, .16);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.recent-posts .blog-item:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 79, 145, .4);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .27), 0 0 22px rgba(255, 79, 145, .07);
}
.recent-posts .blog-item > img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  transition: filter .3s ease, transform .45s ease;
}
.recent-posts .blog-item:hover > img { filter: saturate(1.1); }
.recent-posts .blog-details { padding: 12px 13px 0; }
.recent-posts .blog-details h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #edf1f8;
  font: 600 14px/1.45 'Outfit', sans-serif;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color .2s ease;
}
.recent-posts .blog-item:hover .blog-details h3 { color: var(--accent); }
.recent-posts > p {
  margin: 0;
  padding: 25px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 14px;
  text-align: center;
  font-size: 13px;
}
@media (max-width: 1100px) {
  .recent-posts > .blog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 850px) {
  .recent-posts {
    width: min(100% - 36px, 760px);
    padding: 32px 0 48px;
  }
  .recent-posts > .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 19px 14px; }
}
@media (max-width: 560px) {
  .recent-posts {
    width: calc(100% - 24px);
    padding: 25px 0 40px;
  }
  .recent-posts > .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 11px; }
  .recent-posts .blog-details { padding: 10px 10px 0; }
  .recent-posts .blog-details h3 { font-size: 12px; }
}

/* Live anime search suggestions */
.site-search-form { width: min(460px, calc(100vw - 32px)); }
.search-field-wrap:focus-within {
  border-color: rgba(255, 79, 145, .7);
  box-shadow: 0 0 0 3px rgba(255, 79, 145, .10);
}
.suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 9px);
  left: 0;
  right: 0;
  z-index: 150;
  max-height: min(440px, 65vh);
  overflow-y: auto;
  padding: 7px;
  color: var(--text);
  background: #121a29;
  border: 1px solid rgba(167, 183, 211, .18);
  border-radius: 15px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, .48);
}
.suggestions.is-visible { display: block; animation: searchIn .16s ease-out; }
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 65px;
  padding: 8px;
  border-radius: 10px;
  transition: background .16s ease;
}
.suggestion-item:hover, .suggestion-item.is-active { background: #202a3d; }
.suggestion-item img {
  width: 43px;
  height: 53px;
  flex: 0 0 43px;
  object-fit: cover;
  border-radius: 7px;
  background: #252e40;
}
.suggestion-title {
  min-width: 0;
  flex: 1;
  color: #eef2fa;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.suggestion-arrow { color: var(--accent); font-size: 18px; }
.suggestion-all {
  display: block;
  margin-top: 5px;
  padding: 12px 10px 9px;
  color: var(--cyan);
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}
.suggestion-empty, .suggestion-loading {
  padding: 20px 12px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}
@media (max-width: 600px) {
  .site-search-form { right: -45px; width: min(390px, calc(100vw - 24px)); }
  .suggestions { max-height: 55vh; }
}
