/*
Theme Name: Anime 7 Stream
Theme URI: https://reanime.pw
Author: Anime 7 Team
Author URI: https://reanime.pw
Description: Ultra high-fidelity modern Anime Streaming WordPress theme with 1:1 Dark/Light mode, video player mirrors, and automated series/episode importer.
Version: 2.4.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anime7
*/
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap');

/* Anime 7 - Ultra High-Fidelity Stylesheet */
:root {
  --body: #0e1017;
  --surface: #141722;
  --soft: #1a1e2d;
  --mute: #161822;
  --line: #222638;
  --edge: #2c3248;
  --main: #00dfb6;
  --main-hover: #00c4a0;
  --main-rgb: 0, 223, 182;
  --lead: #f1f5f9;
  --subs: #94a3b8;
  --fore: #0e1017;
  --warn: #f59e0b;
  --wins: #10b981;
  --fire: #ef4444;
  --discord: #818cf8;
  --font: 'Satoshi', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="light"] {
  --body: #f8fafc;
  --surface: #ffffff;
  --soft: #f1f5f9;
  --mute: #e2e8f0;
  --line: #e2e8f0;
  --edge: #cbd5e1;
  --main: #00dfb6;
  --main-hover: #00c4a0;
  --main-rgb: 0, 223, 182;
  --lead: #0f172a;
  --subs: #475569;
  --fore: #0f172a;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--body);
  color: var(--lead);
  font-family: var(--font);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

button, input, select {
  font-family: inherit;
  color: inherit;
  outline: none;
  border: none;
}

/* Container */
.container {
  max-width: 1360px;
  margin-inline: auto;
  padding-inline: 1.5rem;
  width: 100%;
}

/* Header Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(14, 16, 23, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: none;
}

.site-header.has-border {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
}

.logo-text {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1;
}

.logo-badge-7 {
  color: var(--main);
  font-weight: 900;
  font-size: 2.35rem;
  display: inline-block;
  transform: skewX(-8deg);
  text-shadow: 0 0 16px rgba(var(--main-rgb), 0.4);
}

.header-logo-img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
  vertical-align: middle;
}

/* Dual Logo Switching (Dark Mode vs Light Mode) */
.header-logo-img.logo-for-dark,
.footer-logo-img.logo-for-dark {
  display: inline-block;
}

.header-logo-img.logo-for-light,
.footer-logo-img.logo-for-light {
  display: none !important;
}

[data-theme="light"] .header-logo-img.logo-for-dark,
[data-theme="light"] .footer-logo-img.logo-for-dark {
  display: none !important;
}

[data-theme="light"] .header-logo-img.logo-for-light,
[data-theme="light"] .footer-logo-img.logo-for-light {
  display: inline-block !important;
}

/* Search Box */
.header-search {
  flex: 1;
  max-width: 320px;
  position: relative;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 0.85rem;
  color: var(--subs);
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 2.5rem;
  background-color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding-left: 2.5rem;
  padding-right: 5rem;
  font-size: 0.875rem;
  color: var(--lead);
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--main);
}

.search-btn-filter {
  position: absolute;
  right: 0.35rem;
  height: 1.8rem;
  padding-inline: 0.6rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--subs);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}

.search-btn-filter:hover {
  color: var(--lead);
  border-color: var(--edge);
}

/* Navigation Links (Desktop only, mobile uses sticky bottom nav) */
.header-nav {
  display: none;
}

@media (min-width: 1024px) {
  .header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

@media (max-width: 639px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 0.65rem;
    padding-block: 0.65rem;
  }
  .header-brand {
    order: 1;
  }
  .header-actions {
    order: 2;
    margin-left: auto;
  }
  .header-search {
    order: 3;
    width: 100%;
    max-width: 100%;
  }
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--subs);
}

.nav-link:hover, .nav-link.active {
  color: var(--lead);
  background-color: var(--soft);
}

.nav-link.discord-link {
  color: var(--discord);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: var(--soft);
  border: 1px solid var(--line);
  color: var(--subs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.btn-icon:hover {
  color: var(--lead);
  border-color: var(--edge);
}

/* Theme Toggle Sun/Moon Icon display */
.theme-icon-sun {
  display: block;
}
.theme-icon-moon {
  display: none;
}
[data-theme="light"] .theme-icon-sun {
  display: none;
}
[data-theme="light"] .theme-icon-moon {
  display: block;
}

/* Hero Slider */
.hero-slider-container {
  position: relative;
  overflow: hidden;
  background-color: var(--body);
  margin-bottom: 2.5rem;
}

.hero-slide {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: center;
  padding-block: 4rem 3rem;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.65;
}

.hero-backdrop-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, #0e1017 32%, rgba(14, 16, 23, 0.85) 60%, rgba(14, 16, 23, 0.25) 100%),
              linear-gradient(to top, #0e1017 0%, transparent 35%),
              linear-gradient(to bottom, #0e1017 0%, transparent 15%);
}

[data-theme="light"] .hero-backdrop-gradient {
  background: linear-gradient(to right, #f8fafc 32%, rgba(248, 250, 252, 0.88) 60%, rgba(248, 250, 252, 0.3) 100%),
              linear-gradient(to top, #f8fafc 0%, transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hero-title {
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin: 0;
}

[data-theme="light"] .hero-title {
  color: #0f172a;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--subs);
}

[data-theme="light"] .hero-meta-row {
  color: #64748b;
}

.status-pulsing {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--subs);
  font-weight: 500;
}

[data-theme="light"] .status-pulsing {
  color: #64748b;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.25);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.9); }
}

/* 1:1 AnimeAV1 Hero Genre Pills */
.genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: -0.1rem;
}

.genre-pill {
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.26rem 0.85rem;
  border-radius: 9999px;
  background-color: rgba(22, 26, 38, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  line-height: 1.3;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.genre-pill:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-1px);
}

[data-theme="light"] .genre-pill {
  background-color: rgba(255, 255, 255, 0.85);
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .genre-pill:hover {
  background-color: #ffffff;
  border-color: #94a3b8;
  color: #0f172a;
}

.hero-synopsis {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--subs);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 640px;
  margin: 0;
}

[data-theme="light"] .hero-synopsis {
  color: #475569;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.25rem;
}

.btn-lead {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.45rem;
  border-radius: 0.5rem;
  background-color: #ffffff;
  color: #0e1017;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.2s, color 0.2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.btn-lead:hover {
  background-color: #e2e8f0;
  color: #0e1017;
  transform: translateY(-1px);
}

/* 1:1 AnimeAV1 Bottom-Right Hero Slider Controls */
.slider-controls {
  position: absolute;
  right: calc((100% - 1360px) / 2 + 1.5rem);
  bottom: 3.2rem;
  z-index: 25;
  display: flex;
  gap: 0.5rem;
}

@media (max-width: 1400px) {
  .slider-controls {
    right: 1.5rem;
  }
}

@media (max-width: 768px) {
  .slider-controls {
    bottom: 1.5rem;
    right: 1.25rem;
  }
}

.btn-slide {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background-color: #161a26;
  border: 1px solid #283148;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-slide:hover {
  background-color: #222a3d;
  border-color: #3b4766;
  color: #ffffff;
  transform: translateY(-1px);
}

[data-theme="light"] .btn-slide {
  background-color: #ffffff;
  border-color: #e2e8f0;
  color: #475569;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .btn-slide:hover {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

/* Section Common Styling */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.section-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--lead);
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--subs);
}

/* Episodes Grid (16:9 Thumbnail Cards - 1:1 AnimeAV1) */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  row-gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .episodes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    row-gap: 1.75rem;
  }
}

@media (min-width: 1200px) {
  .episodes-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    row-gap: 2rem;
  }
}

.episode-card {
  position: relative;
  min-width: 0;
  width: 100%;
  color: var(--body);
  display: flex;
  flex-direction: column;
}

.episode-thumb-outer {
  position: relative;
  background-color: var(--body);
  border-radius: 0.5rem;
  width: 100%;
  overflow: visible;
}

.episode-figure {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #000;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
}

.episode-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.episode-card:hover .episode-img {
  opacity: 0.5;
  transform: scale(1.02);
}

/* Time overlay in bottom-right */
.episode-time-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 0.5rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--subs);
  background: linear-gradient(to top left, rgba(14, 16, 23, 0.9) 0%, rgba(14, 16, 23, 0.35) 40%, transparent 70%);
  pointer-events: none;
  border-radius: 0.5rem;
  z-index: 2;
}

/* Comments count badge in top-right */
.episode-comments-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.6rem 0.8rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--subs);
  pointer-events: none;
  background: linear-gradient(220deg, rgba(20, 23, 34, 0.88) 0%, rgba(20, 23, 34, 0.4) 40%, transparent 100%);
  border-top-right-radius: 0.5rem;
}

/* AnimeAV1 Signature Curved Notch Badge */
.notch-badge-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
  background-color: var(--body);
  border-top-right-radius: 0.5rem;
  padding: 0.25rem 0.25rem 0 0;
  display: flex;
}

@media (min-width: 640px) {
  .notch-badge-wrap {
    padding: 0.35rem 0.35rem 0 0;
  }
}

/* Curved inverted-radius notch transitions using AnimeAV1 SVG mask */
.notch-badge-wrap::before,
.notch-badge-wrap::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--body);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M0 12h12C5.373 12 0 6.627 0 0v12z'/%3E%3C/svg%3E") no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M0 12h12C5.373 12 0 6.627 0 0v12z'/%3E%3C/svg%3E") no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  pointer-events: none;
}

.notch-badge-wrap::before {
  bottom: 100%;
  left: 0;
}

.notch-badge-wrap::after {
  bottom: 0;
  left: 100%;
}

.notch-badge-pill {
  background-color: #1a1f2e;
  color: #94a3b8;
  padding: 0.22rem 0.55rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  line-height: 1.2;
}

.notch-badge-pill .ep-num {
  color: #00dfb6 !important;
  font-weight: 800;
}

[data-theme="light"] .notch-badge-pill {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  color: #475569;
}

[data-theme="light"] .notch-badge-pill .ep-num {
  color: #0f172a !important;
  font-weight: 800;
}

/* Centered Play Button on Hover */
.play-hover-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: rgba(0, 223, 182, 0.85);
  color: #0e1017;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  box-shadow: 0 0 0 4px rgba(0, 223, 182, 0.35);
  z-index: 15;
  pointer-events: none;
}

.episode-card:hover .play-hover-btn {
  opacity: 1;
  transform: scale(1);
}

/* Episode Info Header & Anime Title Below Thumbnail */
.episode-card-header {
  margin-top: 0.5rem;
  padding: 0 0.1rem;
  display: block;
}

.episode-anime-title {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--subs);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.015em;
  transition: color 0.18s ease;
}

.episode-card:hover .episode-anime-title {
  color: var(--main);
}

/* Screen Reader Only Utility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border-width: 0 !important;
  display: none !important;
}

/* Stretched link covering the entire card */
.episode-stretched-link {
  position: absolute;
  inset: 0;
  z-index: 20;
  cursor: pointer;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
  text-decoration: none !important;
}

/* Activity Comments Section */
.activity-section {
  margin-bottom: 3rem;
}

.activity-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.tab-pill-group {
  display: flex;
  gap: 0.4rem;
}

.tab-pill {
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--subs);
  background-color: var(--soft);
  border: 1px solid var(--line);
  cursor: pointer;
}

.tab-pill.active {
  background-color: var(--line);
  color: var(--main);
  border-color: var(--main);
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .activity-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .activity-grid { grid-template-columns: repeat(4, 1fr); }
}

.comment-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.85rem;
}

.comment-user-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.comment-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--soft);
  object-fit: cover;
}

.comment-username {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--lead);
}

.comment-time {
  font-size: 0.7rem;
  color: var(--subs);
}

.comment-body {
  font-size: 0.85rem;
  color: var(--subs);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comment-thread-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--main);
}

.comment-thread-link:hover {
  text-decoration: underline;
}

/* Recently Added Anime Grid (Vertical Posters) */
.anime-posters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .anime-posters-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .anime-posters-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; }
}

.poster-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-width: 0;
  width: 100%;
}

.poster-thumb-wrap {
  position: relative;
  aspect-ratio: 300 / 425;
  border-radius: 0.6rem;
  overflow: hidden;
  background-color: #000;
}

.poster-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.poster-card:hover .poster-thumb-wrap img {
  transform: scale(1.04);
}

.poster-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--lead);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding-inline: 0.25rem;
}

/* Hover Preview Card Overlay */
.poster-hover-modal {
  position: absolute;
  inset: 0;
  z-index: 30;
  background-color: var(--surface);
  border-radius: 0.6rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  border: 1px solid var(--edge);
}

.poster-card:hover .poster-hover-modal {
  opacity: 1;
  pointer-events: auto;
}

.hover-type-badge {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subs);
}

.hover-modal-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--lead);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hover-modal-synopsis {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--subs);
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.btn-hover-play {
  width: 100%;
  padding-block: 0.5rem;
  border-radius: 0.4rem;
  background-color: var(--main);
  color: var(--fore);
  font-size: 0.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  cursor: pointer;
}

/* ==========================================================================
   Single Series Detail Page (1:1 AnimeAV1 Match)
   ========================================================================== */

.series-card-root {
  position: relative;
  background-color: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.series-card-bg-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: 1rem;
}

.series-backdrop-mask {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 65%;
  opacity: 0.18;
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,1) 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.5) 30%, rgba(0,0,0,1) 100%);
}

.series-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.series-card-body {
  position: relative;
  z-index: 10;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .series-card-body {
    flex-direction: row;
    align-items: flex-start;
  }
}

.series-poster-figure {
  width: 220px;
  flex-shrink: 0;
  margin: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media (min-width: 1200px) {
  .series-poster-figure {
    width: 250px;
  }
}

.series-poster-img {
  width: 100%;
  aspect-ratio: 300 / 425;
  object-fit: cover;
  display: block;
}

.series-info-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.series-details-header {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.series-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.series-title-text {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.series-subtitle-aka {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--main);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.series-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--subs);
}

.meta-separator {
  color: var(--edge);
}

.series-genre-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.series-genre-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--lead);
  transition: all 0.2s ease;
}

.series-genre-pill:hover {
  background-color: var(--line);
  border-color: var(--edge);
}

.series-synopsis-box {
  color: var(--subs);
  font-size: 0.875rem;
  line-height: 1.6;
  max-height: 115px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.series-synopsis-box::-webkit-scrollbar {
  width: 4px;
}
.series-synopsis-box::-webkit-scrollbar-thumb {
  background-color: var(--edge);
  border-radius: 4px;
}

.series-actions-flex {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

/* MAL Rating */
.mal-rating-widget {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
}

.mal-star-gold {
  color: var(--warn);
  font-size: 1.5rem;
  line-height: 1;
}

.mal-score-bold {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.mal-meta-stack {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  margin-left: 0.25rem;
}

.mal-label-top {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--subs);
}

.mal-votes-bottom {
  font-size: 0.75rem;
  color: var(--subs);
}

/* Trailer Button (White Pill) */
.btn-trailer-white {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.25rem;
  border-radius: 0.5rem;
  background-color: #ffffff;
  color: #0e1017;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s, transform 0.15s;
}

.btn-trailer-white:hover {
  background-color: #f1f5f9;
  transform: translateY(-1px);
}

/* Split Button: Agregar a lista */
.split-button-container {
  display: inline-flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  overflow: hidden;
}

.btn-split-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: transparent;
  color: var(--lead);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-split-action:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.btn-split-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.65rem;
  background: transparent;
  color: var(--subs);
  border: none;
  border-left: 1px solid var(--line);
  cursor: pointer;
}

.btn-split-toggle:hover {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--lead);
}

.btn-action-square {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.5rem;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--subs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action-square:hover,
.btn-action-square.active {
  color: #ffffff;
  border-color: var(--edge);
  background-color: var(--soft);
}

/* ==========================================================================
   Relacionados (Timeline Carousel)
   ========================================================================== */

.series-relations-block {
  margin-bottom: 3rem;
}

.relations-timeline-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.relations-timeline-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 0.75rem;
  width: 100%;
  scrollbar-width: none;
}

.relations-timeline-track::-webkit-scrollbar {
  display: none;
}

.relation-timeline-item {
  width: 280px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.relation-year-header {
  position: relative;
  display: flex;
  align-items: center;
}

.relation-year-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--line);
  margin-left: 0.5rem;
}

.relation-year-pill {
  background-color: var(--mute);
  color: var(--subs);
  padding: 0.15rem 0.6rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.relation-item-card {
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 2px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: background-color 0.2s, border-color 0.2s;
}

.relation-item-card:hover {
  background-color: var(--soft);
  border-color: var(--edge);
}

.relation-thumb-box {
  width: 54px;
  height: 54px;
  border-radius: 0.4rem;
  overflow: hidden;
  background-color: #000;
  flex-shrink: 0;
  margin: 0;
}

.relation-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.relation-text-box {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.relation-title-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lead);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}

.relation-type-text {
  font-size: 0.72rem;
  color: var(--subs);
}

.relation-stretched-link {
  position: absolute;
  inset: 0;
  z-index: 20;
}

.btn-relations-next {
  position: absolute;
  right: -1rem;
  top: 55%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--surface);
  border: 1px solid var(--edge);
  color: var(--lead);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 30;
}

/* ==========================================================================
   Series Episodes Grid (5-Columns 1:1 AnimeAV1 Match)
   ========================================================================== */

.episodes-header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ep-range-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ep-range-select {
  appearance: none;
  background-color: var(--soft);
  border: 1px solid var(--line);
  color: var(--subs);
  padding: 0.35rem 1.8rem 0.35rem 0.75rem;
  border-radius: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.ep-range-select:focus {
  border-color: var(--edge);
  color: var(--lead);
}

.ep-select-arrow {
  position: absolute;
  right: 0.5rem;
  pointer-events: none;
  color: var(--subs);
}

.btn-ctrl-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.4rem;
  background-color: var(--soft);
  border: 1px solid var(--line);
  color: var(--subs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
}

.btn-ctrl-icon:hover {
  color: var(--lead);
  border-color: var(--edge);
}

.series-episodes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  row-gap: 1.5rem;
}

@media (min-width: 640px) {
  .series-episodes-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .series-episodes-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .series-episodes-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
    row-gap: 1.75rem;
  }
}

/* Trailer Modal */
.trailer-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.trailer-modal-content {
  width: 100%;
  max-width: 860px;
  background-color: var(--surface);
  border: 1px solid var(--edge);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

.trailer-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--subs);
  font-size: 1.25rem;
  cursor: pointer;
}

.btn-close-modal:hover {
  color: #fff;
}

.trailer-video-stage {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
}

.trailer-video-stage iframe {
  width: 100%;
  height: 100%;
}

/* Single Episode Streaming Page */
.player-page-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-block: 1.5rem 3rem;
}

@media (min-width: 1024px) {
  .player-page-grid {
    grid-template-columns: 8fr 4fr;
  }
}

.player-main-col {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background-color: #000;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

.video-stage iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.player-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.player-nav-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-nav-ep {
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  background-color: var(--soft);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--subs);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-nav-ep:hover:not(:disabled) {
  background-color: var(--line);
  color: var(--lead);
}

.btn-nav-ep:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Server Mirror Switcher */
.servers-container {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.sub-tag-badge {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--main);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.server-pills-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-server-pill {
  padding: 0.4rem 0.85rem;
  border-radius: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  background-color: var(--soft);
  color: var(--subs);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.btn-server-pill:hover {
  background-color: var(--line);
  color: var(--lead);
}

.btn-server-pill.active {
  background-color: var(--main);
  color: var(--fore);
}

/* Episode Sidebar Selector */
.sidebar-episodes-box {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  height: fit-content;
}

.sidebar-episodes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  max-height: 480px;
  overflow-y: auto;
}

.btn-ep-item {
  aspect-ratio: 1 / 1;
  border-radius: 0.4rem;
  background-color: var(--soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--subs);
}

.btn-ep-item:hover {
  background-color: var(--line);
  color: var(--lead);
}

.btn-ep-item.active {
  border: 2px solid var(--main);
  background-color: rgba(var(--main-rgb), 0.15);
  color: var(--main);
}

/* MAL Rating & Actions Widget (1:1 AnimeAV1 Match) */
.series-actions-flex,
.series-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.mal-rating-widget,
.mal-rating-box {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.45rem 0.85rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  width: fit-content;
}

.mal-star-gold,
.mal-star {
  color: #f59e0b;
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
}

.mal-score-bold,
.mal-score-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--lead);
  line-height: 1;
  letter-spacing: -0.02em;
}

.mal-meta-stack,
.mal-subtext {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  line-height: 1;
}

.mal-label-top,
.mal-subtext strong {
  font-size: 0.62rem;
  font-weight: 800;
  color: var(--subs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1;
}

.mal-votes-bottom {
  font-size: 0.68rem;
  color: var(--subs);
  font-weight: 500;
  line-height: 1;
}

.mal-divider {
  width: 1px;
  height: 20px;
  background-color: var(--line);
  margin: 0 0.25rem;
}

.btn-icon-ghost {
  background: transparent;
  border: none;
  color: var(--subs);
  width: 2rem;
  height: 2rem;
  border-radius: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  padding: 0;
}

.btn-icon-ghost:hover {
  background-color: var(--line);
  color: var(--lead);
}

.btn-icon-ghost:active {
  transform: scale(0.92);
}

/* Action Square Buttons (Share, Report, Favorite) */
.btn-action-square,
.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.45rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  color: var(--subs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action-square:hover,
.btn-icon:hover {
  background-color: var(--line);
  color: var(--lead);
  border-color: var(--edge);
}

.btn-action-square.active,
.btn-icon.active {
  color: #ef4444;
  background-color: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
}

/* Trailer White Button */
.btn-trailer-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: 0.45rem;
  background-color: #ffffff;
  color: #0e1017;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-trailer-white:hover {
  background-color: #e2e8f0;
  transform: translateY(-1px);
}

/* Split Button (Agregar a lista) */
.split-button-container {
  display: inline-flex;
  align-items: stretch;
  border-radius: 0.45rem;
  overflow: hidden;
}

.btn-split-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background-color: var(--main);
  color: var(--fore);
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: background-color 0.2s ease;
}

.btn-split-action:hover {
  background-color: var(--main-hover);
}

.btn-split-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.6rem;
  background-color: var(--main-hover);
  color: var(--fore);
  cursor: pointer;
  border: none;
  border-left: 1px solid rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease;
}

.btn-split-toggle:hover {
  background-color: #00b090;
}

/* Metadata & Genres */
.hero-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--subs);
}

.meta-separator {
  color: var(--line);
}

.genre-pills,
.series-genre-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.genre-pill,
.series-genre-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  color: var(--subs);
  display: inline-flex;
  align-items: center;
}

.status-pulsing {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #10b981;
  font-weight: 700;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Horario (Schedule) Page */
.schedule-alert-box {
  background-color: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 0.5rem;
  padding: 0.85rem 1.25rem;
  color: #fcd34d;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.schedule-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.day-tabs-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-day-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  background-color: var(--soft);
  border: 1px solid var(--line);
  color: var(--subs);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-day-tab:hover {
  background-color: var(--line);
  color: var(--lead);
}

.btn-day-tab.active {
  background-color: var(--main);
  color: var(--fore);
}

.local-time-indicator {
  font-size: 0.85rem;
  color: #38bdf8;
  font-weight: 600;
}

.schedule-time-badge {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  background-color: rgba(14, 16, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.5rem;
  border-radius: 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--subs);
  z-index: 10;
}

/* Catalog Page Filters */
.alphabet-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
}

.btn-letter {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.4rem;
  background-color: var(--soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--subs);
}

.btn-letter:hover, .btn-letter.active {
  background-color: var(--main);
  color: var(--fore);
}

.filters-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 2rem;
}

.filter-select {
  flex: 1;
  min-width: 160px;
  height: 2.5rem;
  background-color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding-inline: 0.85rem;
  font-size: 0.85rem;
  color: var(--lead);
}

.btn-filter-submit {
  height: 2.5rem;
  padding-inline: 1.75rem;
  background-color: var(--main);
  color: var(--fore);
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 800;
  cursor: pointer;
}

/* Pagination */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-block: 2.5rem;
}

.page-link {
  min-width: 2.5rem;
  height: 2.5rem;
  padding-inline: 0.5rem;
  border-radius: 0.4rem;
  background-color: var(--soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--subs);
}

.page-link:hover {
  background-color: var(--line);
  color: var(--lead);
}

.page-link.active {
  background-color: var(--main);
  color: var(--fore);
}

/* Site Footer (1:1 AnimeAV1 Match - Aligned to the Right on Desktop) */
.site-footer {
  border-top: none;
  padding-top: 5rem;
  padding-bottom: 4rem;
  margin-top: 4rem;
  background-color: transparent;
  color: #94a3b8;
  position: relative;
}

.footer-centered-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  text-align: right;
  gap: 1.25rem;
}

.footer-brand-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.footer-logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.footer-logo .logo-text {
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
}

.footer-logo .logo-badge-7 {
  font-size: 2.35rem;
}

.footer-logo-img {
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.footer-slogan {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.footer-heart-svg {
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.footer-slogan:hover .footer-heart-svg {
  transform: scale(1.15);
}

.footer-pills-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-pill-btn {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background-color: #141824;
  border: 1px solid #232838;
  color: #94a3b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.footer-pill-btn:hover {
  color: #ffffff;
  background-color: #1c2233;
  border-color: #3b4461;
  transform: translateY(-1px);
}

.footer-custom-text {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 0.25rem;
}

@media (max-width: 768px) {
  .site-footer {
    padding-bottom: 6rem;
  }
  .footer-centered-wrap {
    align-items: center;
    text-align: center;
    justify-content: center;
  }
  .footer-brand-row {
    justify-content: center;
  }
  .footer-pills-row {
    justify-content: center;
  }
}

/* Mobile Bottom Navigation (1:1 with AnimeAV1) */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 4rem;
  background-color: rgba(14, 16, 23, 0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding-inline: 0.25rem;
}

@media (min-width: 1024px) {
  .mobile-bottom-nav { display: none; }
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  height: 100%;
  font-size: 0.65rem;
  color: var(--subs);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.18s ease;
}

.mobile-nav-item svg {
  width: 20px;
  height: 20px;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
  color: var(--main);
}

/* General Mobile View Enhancements */
@media (max-width: 1023px) {
  body {
    padding-bottom: 4.5rem;
  }
}

@media (max-width: 768px) {
  .hero-slide {
    min-height: 380px;
    padding-block: 2rem 1.75rem;
  }
  .hero-title {
    font-size: 1.85rem !important;
    line-height: 1.15;
  }
  .hero-synopsis {
    -webkit-line-clamp: 3 !important;
    font-size: 0.85rem !important;
  }
  .slider-controls {
    display: none;
  }
  .series-card-body {
    flex-direction: column !important;
    align-items: center;
    padding: 1.25rem 1rem !important;
  }
  .series-poster-figure {
    max-width: 190px;
    margin: 0 auto;
  }
  .series-info-column {
    width: 100%;
  }
  .series-title-text {
    font-size: 1.75rem !important;
  }
}

@media (max-width: 639px) {
  .container {
    padding-inline: 1rem;
  }
  .episodes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
    row-gap: 1rem !important;
  }
  .series-episodes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.65rem !important;
    row-gap: 1rem !important;
  }
  .notch-badge-pill {
    padding: 0.15rem 0.35rem;
    font-size: 0.68rem;
  }
  .episode-comments-badge {
    padding: 0.25rem 0.4rem 0.55rem 0.7rem;
    font-size: 0.68rem;
  }
  .episode-time-overlay {
    padding: 0.35rem 0.45rem;
    font-size: 0.65rem;
  }
}

/* ==========================================================================
   Theme Icon Switcher (Sun for Dark, Moon for Light)
   ========================================================================== */
.theme-icon-sun {
  display: block;
}
.theme-icon-moon {
  display: none;
}

[data-theme="light"] .theme-icon-sun {
  display: none;
}
[data-theme="light"] .theme-icon-moon {
  display: block;
}

/* ==========================================================================
   Light Mode Comprehensive Styles (1:1 AnimeAV1 Match)
   ========================================================================== */
[data-theme="light"] .site-header {
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: none;
}

[data-theme="light"] .site-header.has-border {
  border-bottom: 1px solid #e2e8f0;
}

[data-theme="light"] .logo-text {
  color: #0f172a;
}

[data-theme="light"] .search-input {
  background-color: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .search-input::placeholder {
  color: #94a3b8;
}

[data-theme="light"] .search-icon {
  color: #64748b;
}

[data-theme="light"] .search-btn-filter {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .search-btn-filter:hover {
  color: #0f172a;
  border-color: #cbd5e1;
}

[data-theme="light"] .nav-link {
  color: #475569;
}

[data-theme="light"] .nav-link:hover,
[data-theme="light"] .nav-link.active {
  color: #0f172a;
  background-color: #f1f5f9;
}

[data-theme="light"] .btn-icon {
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

[data-theme="light"] .btn-icon:hover {
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  background-color: #e2e8f0 !important;
}

[data-theme="light"] .theme-icon-sun {
  display: none !important;
}

[data-theme="light"] .theme-icon-moon {
  display: block !important;
  color: #334155 !important;
}

/* Hero Slider ALWAYS stays dark and cinematic */
.hero-slider-container {
  background-color: #0e1017 !important;
  color: #f1f5f9 !important;
}

.hero-backdrop-gradient {
  background: radial-gradient(circle at right, transparent 20%, #0e1017 80%),
              linear-gradient(to top, #0e1017 5%, transparent 60%) !important;
}

.hero-slide .hero-title {
  color: #ffffff !important;
}

.hero-slide .hero-meta-row {
  color: #94a3b8 !important;
}

.hero-slide .genre-pill {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #f1f5f9 !important;
}

.hero-slide .hero-synopsis {
  color: #94a3b8 !important;
}

.hero-slide .btn-lead {
  background-color: #ffffff !important;
  color: #0e1017 !important;
}

.slider-controls .btn-slide {
  background-color: rgba(20, 23, 34, 0.8) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

/* Headings in Light Mode */
[data-theme="light"] .section-title {
  color: #0f172a !important;
}

[data-theme="light"] .section-subtitle {
  color: #00dfb6 !important;
}

/* Episode Cards in Light Mode (1:1 Screenshot 1) */
[data-theme="light"] .episodes-grid {
  color: #0f172a;
}

[data-theme="light"] .episode-card {
  color: #0f172a;
}

[data-theme="light"] .episode-thumb-outer {
  background-color: var(--body) !important;
}

[data-theme="light"] .notch-badge-wrap {
  background-color: var(--body) !important;
}

[data-theme="light"] .notch-badge-wrap::before,
[data-theme="light"] .notch-badge-wrap::after {
  background-color: var(--body) !important;
}

[data-theme="light"] .notch-badge-pill {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .notch-badge-pill .ep-num {
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-theme="light"] .episode-time-overlay {
  color: #64748b !important;
  background: transparent !important;
}

[data-theme="light"] .episode-comments-badge {
  background: rgba(15, 23, 42, 0.75) !important;
  color: #ffffff !important;
}

[data-theme="light"] .episode-anime-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .episode-card:hover .episode-anime-title {
  color: #00dfb6 !important;
}

/* Series Cards in Light Mode (1:1 Screenshot 1 & 2) */
[data-theme="light"] .anime-poster-card,
[data-theme="light"] .catalogo-card {
  background: transparent !important;
}

[data-theme="light"] .poster-thumb-wrap,
[data-theme="light"] .catalogo-poster-box {
  background-color: #f1f5f9 !important;
}

[data-theme="light"] .series-notch-wrap {
  background-color: var(--body) !important;
}

[data-theme="light"] .series-notch-wrap::before,
[data-theme="light"] .series-notch-wrap::after {
  background-color: var(--body) !important;
}

[data-theme="light"] .series-notch-pill,
[data-theme="light"] .catalogo-type-badge {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .poster-title,
[data-theme="light"] .poster-title a,
[data-theme="light"] .catalogo-card-title,
[data-theme="light"] .catalogo-card-title a {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .anime-poster-card:hover .poster-title,
[data-theme="light"] .anime-poster-card:hover .poster-title a,
[data-theme="light"] .catalogo-card:hover .catalogo-card-title,
[data-theme="light"] .catalogo-card:hover .catalogo-card-title a {
  color: #00dfb6 !important;
}

/* Activity Comments in Light Mode */
[data-theme="light"] .activity-card,
[data-theme="light"] .comment-card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .activity-username,
[data-theme="light"] .comment-author {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .activity-message,
[data-theme="light"] .comment-text {
  color: #334155 !important;
}

[data-theme="light"] .activity-target-link,
[data-theme="light"] .comment-anime-title {
  color: #64748b !important;
  font-weight: 600 !important;
}

[data-theme="light"] .activity-target-link:hover {
  color: #00dfb6 !important;
}

[data-theme="light"] .activity-tab-btn,
[data-theme="light"] .tab-pill {
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

[data-theme="light"] .activity-tab-btn.active,
[data-theme="light"] .tab-pill.active {
  background-color: #00dfb6 !important;
  color: #0e1017 !important;
  border-color: #00dfb6 !important;
  font-weight: 800 !important;
}

/* CatÃ¡logo Page in Light Mode (1:1 Screenshot 2) */
[data-theme="light"] .catalogo-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-theme="light"] .btn-alphabet-pill,
[data-theme="light"] .btn-letter {
  background-color: #f1f3f7 !important;
  border: 1px solid #e2e8f0 !important;
  color: #4b5563 !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
}

[data-theme="light"] .btn-alphabet-pill:hover,
[data-theme="light"] .btn-letter:hover {
  background-color: #e2e6ea !important;
  color: #111827 !important;
}

[data-theme="light"] .btn-alphabet-pill.active,
[data-theme="light"] .btn-letter.active {
  background-color: #00dfb6 !important;
  color: #0e1017 !important;
  border-color: #00dfb6 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(0, 223, 182, 0.28) !important;
}

[data-theme="light"] .catalogo-select-wrap {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
}

[data-theme="light"] .catalogo-select-wrap:hover {
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .catalogo-select-prefix {
  color: #64748b !important;
  font-weight: 500 !important;
}

[data-theme="light"] .catalogo-select {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .catalogo-select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

[data-theme="light"] .catalogo-select-arrow {
  color: #64748b !important;
}

[data-theme="light"] .btn-catalogo-filter,
[data-theme="light"] .btn-filter-submit {
  background-color: #00dfb6 !important;
  color: #0e1017 !important;
  font-weight: 800 !important;
  border-radius: 6px !important;
}

[data-theme="light"] .catalogo-results-count {
  color: #64748b !important;
}

[data-theme="light"] .catalogo-sort-label {
  color: #64748b !important;
}

[data-theme="light"] .catalogo-sort-select {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .btn-pagination-pill,
[data-theme="light"] .page-link {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  border-radius: 6px !important;
}

[data-theme="light"] .btn-pagination-pill:hover,
[data-theme="light"] .page-link:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

[data-theme="light"] .btn-pagination-pill.active,
[data-theme="light"] .page-link.active {
  background-color: #00dfb6 !important;
  color: #0e1017 !important;
  border-color: #00dfb6 !important;
  font-weight: 800 !important;
}

/* Horario Page in Light Mode (1:1 Screenshot 3) */
[data-theme="light"] .horario-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-theme="light"] .horario-notice-alert {
  background-color: #fef9ee !important;
  border: 1px solid #fef08a !important;
  color: #b45309 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

[data-theme="light"] .horario-notice-bold {
  color: #92400e !important;
  font-weight: 700 !important;
}

[data-theme="light"] .horario-day-btn,
[data-theme="light"] .day-tab-btn {
  background-color: #f1f3f7 !important;
  border: 1px solid #e2e8f0 !important;
  color: #4b5563 !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  font-size: 0.85rem !important;
}

[data-theme="light"] .horario-day-btn:hover,
[data-theme="light"] .day-tab-btn:hover {
  background-color: #e2e6ea !important;
  color: #111827 !important;
}

[data-theme="light"] .horario-day-btn.active,
[data-theme="light"] .day-tab-btn.active {
  background-color: #00dfb6 !important;
  color: #0e1017 !important;
  border-color: #00dfb6 !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 223, 182, 0.28) !important;
}

[data-theme="light"] .horario-clock-pill {
  color: #64748b !important;
}

[data-theme="light"] .horario-clock-label {
  color: #64748b !important;
}

[data-theme="light"] .horario-clock-time {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .horario-card {
  background: transparent !important;
}

[data-theme="light"] .horario-poster-wrap {
  border-radius: 10px !important;
  background-color: #f1f5f9 !important;
}

[data-theme="light"] .horario-time-badge {
  background: rgba(0, 0, 0, 0.65) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

[data-theme="light"] .horario-type-badge {
  background: rgba(255, 255, 255, 0.88) !important;
  color: #0f172a !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  font-weight: 700 !important;
}

[data-theme="light"] .horario-card-title {
  color: #0f172a !important;
  font-weight: 700 !important;
}

[data-theme="light"] .horario-card:hover .horario-card-title {
  color: #00dfb6 !important;
}

/* Series Detail Page in Light Mode */
[data-theme="light"] .series-card-root {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .series-title-text {
  color: #0f172a !important;
}

[data-theme="light"] .series-subtitle-aka {
  color: #64748b !important;
}

[data-theme="light"] .series-meta-row {
  color: #475569 !important;
}

[data-theme="light"] .series-synopsis-box {
  color: #334155 !important;
}

[data-theme="light"] .series-genre-pill {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}

[data-theme="light"] .series-genre-pill:hover {
  background-color: #e2e8f0 !important;
}

[data-theme="light"] .mal-rating-widget {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .mal-score-bold {
  color: #0f172a !important;
}

[data-theme="light"] .mal-label-top,
[data-theme="light"] .mal-votes-bottom {
  color: #64748b !important;
}

[data-theme="light"] .btn-trailer-white {
  background-color: #0f172a !important;
  color: #ffffff !important;
}

[data-theme="light"] .btn-trailer-white:hover {
  background-color: #1e293b !important;
}

[data-theme="light"] .split-button-container {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .btn-split-action {
  background-color: #00dfb6 !important;
  color: #0e1017 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .btn-split-toggle {
  background-color: #00c4a0 !important;
  color: #0e1017 !important;
}

[data-theme="light"] .btn-action-square {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

[data-theme="light"] .btn-action-square:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .relation-year-pill {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

[data-theme="light"] .relation-item-card {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .ep-range-select {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .btn-ctrl-icon {
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

[data-theme="light"] .btn-ctrl-icon:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Video Player Page in Light Mode */
[data-theme="light"] .servers-card {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .sub-tag-badge {
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

[data-theme="light"] .btn-server-pill {
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  font-weight: 600 !important;
}

[data-theme="light"] .btn-server-pill:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .btn-server-pill.active {
  background-color: #00dfb6 !important;
  color: #0e1017 !important;
  border-color: #00dfb6 !important;
  font-weight: 800 !important;
}

[data-theme="light"] .btn-nav-ep {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

[data-theme="light"] .btn-nav-ep:hover:not(:disabled) {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

[data-theme="light"] .btn-action-icon {
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}

[data-theme="light"] .btn-action-icon:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .episode-series-link {
  color: #00dfb6 !important;
  font-weight: 700 !important;
}

[data-theme="light"] .episode-main-title {
  color: #0f172a !important;
  font-weight: 800 !important;
}

[data-theme="light"] .sidebar-episodes-box {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .btn-ep-num,
[data-theme="light"] .btn-ep-item {
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
}

[data-theme="light"] .btn-ep-num:hover,
[data-theme="light"] .btn-ep-item:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .btn-ep-num.active,
[data-theme="light"] .btn-ep-item.active {
  background-color: #00dfb6 !important;
  color: #0e1017 !important;
  border-color: #00dfb6 !important;
  font-weight: 800 !important;
}

/* Footer in Light Mode */
[data-theme="light"] .site-footer {
  background-color: transparent !important;
  border-top: none !important;
  color: #64748b !important;
}

[data-theme="light"] .footer-logo .logo-text {
  color: #0f172a !important;
}

[data-theme="light"] .footer-slogan {
  color: #64748b !important;
}

[data-theme="light"] .footer-pill-btn {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

[data-theme="light"] .footer-pill-btn:hover {
  color: #0f172a !important;
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

[data-theme="light"] .mobile-bottom-nav {
  background-color: rgba(255, 255, 255, 0.96) !important;
  border-top: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .mobile-nav-item {
  color: #475569 !important;
}

[data-theme="light"] .mobile-nav-item.active {
  color: var(--main) !important;
}

/* ==========================================================================
   Actividad (Ãšltimos Comentarios) & Animes (Recientemente Agregados) Styles
   ========================================================================== */

/* Activity Section */
.activity-section {
  margin-bottom: 3.5rem;
}

.activity-header-flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.activity-tabs {
  display: inline-flex;
  align-items: center;
  background-color: #12151f;
  border: 1px solid #1e2436;
  border-radius: 9999px;
  padding: 0.2rem 0.35rem;
  gap: 0.25rem;
}

.activity-tab-btn {
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  background: transparent;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.activity-tab-btn:hover {
  color: #cbd5e1;
}

/* 1:1 AnimeAV1 Active Tab: Clean turquoise text with NO solid background button */
.activity-tab-btn.active {
  background: transparent;
  color: #00dfb6;
  font-weight: 700;
  box-shadow: none;
}

/* 4-Column Grid rigidly constrained to container (No overflow blowout) */
.activity-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
}

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

@media (max-width: 640px) {
  .activity-cards-grid {
    grid-template-columns: 1fr;
  }
}

.activity-card {
  background-color: #11141e;
  border: 1px solid #1c2233;
  border-radius: 0.65rem;
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.activity-card:hover {
  transform: translateY(-2px);
  border-color: #28324a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.activity-user-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.activity-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  background-color: #1a1e2d;
  flex-shrink: 0;
}

.activity-avatar-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #22293a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-user-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.activity-username {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: none;
}

.activity-time {
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 2px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.activity-message {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-block: 0.85rem 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  flex: 1;
}

/* 1:1 AnimeAV1 Target Link: Small cyan circle play icon + cyan text, NO heavy pill background */
.activity-target-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  color: #00dfb6;
  text-decoration: none;
  background: transparent;
  padding: 0;
  border: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

.activity-target-link:hover {
  color: #4ef0ce;
}

.activity-play-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-target-text {
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Animes (Recientemente Agregados) Section */
.animes-section {
  margin-bottom: 4rem;
}

.btn-catalogo-lead {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--soft);
  border: 1px solid var(--line);
  color: var(--lead);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.5rem 1.1rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
}

.btn-catalogo-lead:hover {
  background-color: var(--line);
  color: var(--main);
}

/* AnimeAV1 Signature 5-Column Series Card & Curved Notch (1:1 Match with media_1789171984057.png) */
.animes-poster-grid,
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .animes-poster-grid,
  .catalogo-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 900px) {
  .animes-poster-grid,
  .catalogo-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 600px) {
  .animes-poster-grid,
  .catalogo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

.anime-poster-card,
.catalogo-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.poster-thumb-wrap,
.catalogo-poster-box {
  position: relative;
  width: 100%;
  aspect-ratio: 300 / 425;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--surface);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.poster-figure {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background-color: #000000;
}

.poster-img,
.catalogo-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.anime-poster-card:hover .poster-img,
.catalogo-card:hover .catalogo-poster-img {
  transform: scale(1.04);
}

/* AnimeAV1 Signature Curved Notch at Bottom-Left of Series Poster */
.series-notch-wrap {
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
  background-color: var(--body);
  border-top-right-radius: 0.5rem;
  padding: 0.35rem 0.35rem 0 0;
  display: flex;
}

.series-notch-wrap::before,
.series-notch-wrap::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background-color: var(--body);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M0 12h12C5.373 12 0 6.627 0 0v12z'/%3E%3C/svg%3E") no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M0 12h12C5.373 12 0 6.627 0 0v12z'/%3E%3C/svg%3E") no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  pointer-events: none;
}

.series-notch-wrap::before {
  bottom: 100%;
  left: 0;
}

.series-notch-wrap::after {
  bottom: 0;
  left: 100%;
}

.series-notch-pill {
  background-color: #1a1f2e;
  color: #94a3b8;
  padding: 0.2rem 0.55rem;
  border-radius: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

/* Light Mode 1:1 colors from media_1789171984057.png */
[data-theme="light"] .series-notch-wrap {
  background-color: var(--body);
}

[data-theme="light"] .series-notch-wrap::before,
[data-theme="light"] .series-notch-wrap::after {
  background-color: var(--body);
}

[data-theme="light"] .series-notch-pill {
  background-color: #e2e8f0;
  color: #475569;
}

/* Card Stretched Hit Link */
.card-stretched-hit {
  position: absolute;
  inset: 0;
  z-index: 15;
}

/* 1:1 Desktop Hover Spotlight Preview Box */
.series-card-spotlight,
.catalogo-hover-spotlight {
  position: absolute;
  inset: 0;
  z-index: 20;
  background-color: #141722;
  border-radius: 0.5rem;
  opacity: 0;
  pointer-events: none;
  display: none;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.25s ease;
  border: 1px solid #283148;
}

@media (min-width: 1024px) {
  .series-card-spotlight,
  .catalogo-hover-spotlight {
    display: flex;
  }
}

.anime-poster-card:hover .series-card-spotlight,
.catalogo-card:hover .catalogo-hover-spotlight {
  opacity: 1;
  pointer-events: none;
}

.series-card-spotlight .spotlight-btn-cta,
.catalogo-hover-spotlight .spotlight-btn-cta {
  pointer-events: auto;
  cursor: pointer;
  position: relative;
  z-index: 25;
}

.spotlight-ghost-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  filter: grayscale(100%);
  pointer-events: none;
}

.spotlight-inner {
  position: relative;
  z-index: 2;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.spotlight-type-tag {
  font-size: 0.65rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.spotlight-heading {
  font-size: 0.92rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-synopsis-text {
  font-size: 0.78rem;
  color: #94a3b8;
  line-height: 1.45;
  margin: 0 0 auto 0;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-btn-cta {
  background-color: #ffffff;
  color: #0e1017;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  margin-top: 0.75rem;
  transition: background-color 0.2s, color 0.2s;
}

.spotlight-btn-cta:hover {
  background-color: #00dfb6;
  color: #0e1017;
}

/* Poster Card Header and Title Below Poster */
.poster-card-header {
  padding: 0.5rem 0.15rem 0;
}

.poster-title,
.catalogo-card-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--lead);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}

.poster-title a,
.catalogo-card-title a {
  color: inherit;
  text-decoration: none;
}

.anime-poster-card:hover .poster-title,
.catalogo-card:hover .catalogo-card-title {
  color: var(--main);
}

[data-theme="light"] .poster-title,
[data-theme="light"] .catalogo-card-title {
  color: #0f172a;
}

[data-theme="light"] .anime-poster-card:hover .poster-title,
[data-theme="light"] .catalogo-card:hover .catalogo-card-title {
  color: var(--main-hover);
}

/* Light Mode specific overrides for Activity & Animes */
[data-theme="light"] .activity-card {
  background-color: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .activity-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .activity-tabs {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
}

[data-theme="light"] .activity-tab-btn {
  color: #64748b;
}

[data-theme="light"] .activity-tab-btn.active {
  background: transparent;
  color: #00a887;
  font-weight: 700;
}

[data-theme="light"] .activity-username {
  color: #0f172a;
}

[data-theme="light"] .activity-message {
  color: #475569;
}

[data-theme="light"] .activity-target-link {
  color: #00a887;
}

[data-theme="light"] .activity-target-link:hover {
  color: #008f73;
}

[data-theme="light"] .btn-catalogo-lead {
  background-color: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .btn-catalogo-lead:hover {
  background-color: #f1f5f9;
  color: var(--main);
}

[data-theme="light"] .poster-thumb-wrap {
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

/* ==========================================================================
   Single Episode Video Player & Sidebar (1:1 AnimeAV1 Match)
   ========================================================================== */

.player-page-container {
  padding-top: 2rem;
  padding-bottom: 5rem;
}

.player-page-grid {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

@media (max-width: 1024px) {
  .player-page-grid {
    flex-direction: column;
  }
}

.player-main-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.player-sidebar-col {
  width: 310px;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .player-sidebar-col {
    width: 100%;
  }
}

/* Video Stage */
.video-stage {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #000000;
  border-radius: 0.75rem;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

.video-stage iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0b0d13;
  color: #64748b;
}

.play-icon-large {
  color: #64748b;
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

.video-stage:hover .play-icon-large {
  transform: scale(1.1);
  color: var(--main);
}

/* Player Navigation Bar */
.player-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.player-nav-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-nav-ep {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.15rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  background-color: var(--surface);
  border: 1px solid var(--line);
  color: var(--subs);
  transition: all 0.2s ease;
}

.btn-nav-ep:hover {
  background-color: var(--soft);
  color: var(--lead);
  border-color: var(--edge);
}

.btn-nav-ep.disabled,
.btn-nav-ep:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-action-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--line);
  background-color: var(--surface);
  color: var(--subs);
  transition: all 0.2s ease;
}

.btn-action-icon:hover,
.btn-action-icon.active {
  color: var(--main);
  border-color: var(--main);
  background-color: rgba(var(--main-rgb), 0.1);
}

/* Server Switcher Card */
.servers-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.sub-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--main);
  background-color: rgba(var(--main-rgb), 0.1);
  border: 1px solid rgba(var(--main-rgb), 0.25);
  padding: 0.4rem 0.75rem;
  border-radius: 0.4rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.server-pills-list {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  flex: 1;
}

.btn-server-pill {
  background-color: var(--soft);
  border: 1px solid var(--line);
  color: var(--subs);
  padding: 0.45rem 1rem;
  border-radius: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-server-pill:hover {
  color: var(--lead);
  border-color: var(--edge);
}

.btn-server-pill.active {
  background-color: var(--main) !important;
  color: #0e1017 !important;
  border-color: var(--main) !important;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(var(--main-rgb), 0.3);
}

/* Episode Details Section */
.episode-details-section {
  margin-top: 0.5rem;
}

.episode-series-link {
  color: var(--main);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 0.35rem;
  transition: opacity 0.2s ease;
}

.episode-series-link:hover {
  opacity: 0.85;
}

.episode-main-title {
  font-size: 2.15rem;
  font-weight: 900;
  color: var(--lead);
  margin-bottom: 0.65rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.episode-synopsis-text {
  font-size: 0.95rem;
  color: var(--subs);
  line-height: 1.6;
  margin-bottom: 1.35rem;
}

.episode-actions-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-action-ghost {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid var(--line);
  background-color: var(--surface);
  color: var(--subs);
  transition: all 0.2s ease;
}

.btn-action-ghost:hover {
  color: var(--lead);
  border-color: var(--edge);
  background-color: var(--soft);
}

/* Sidebar Episode Selector ("EstÃ¡s viendo") */
.sidebar-episodes-box {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 1.35rem;
}

.sidebar-header-wrap {
  margin-bottom: 1.25rem;
}

.sidebar-subtitle {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--subs);
  display: block;
}

.sidebar-ep-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--lead);
  margin-top: 0.15rem;
  letter-spacing: -0.01em;
}

.sidebar-episodes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
}

.btn-ep-num {
  aspect-ratio: 1 / 1;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  background-color: var(--soft);
  border: 1px solid var(--line);
  color: var(--subs);
  transition: all 0.2s ease;
}

.btn-ep-num:hover {
  background-color: var(--line);
  color: var(--lead);
}

.btn-ep-num.active {
  background-color: var(--surface) !important;
  border: 2px solid var(--main) !important;
  color: var(--main) !important;
  font-weight: 900;
  box-shadow: 0 0 10px rgba(var(--main-rgb), 0.2);
}

/* Light Mode Overrides for Video Player Page */
[data-theme="light"] .btn-nav-ep {
  background-color: #ffffff;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .btn-nav-ep:hover {
  background-color: #f8fafc;
  color: #0f172a;
}

[data-theme="light"] .btn-action-icon {
  background-color: #ffffff;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .servers-card {
  background-color: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .btn-server-pill {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .btn-action-ghost {
  background-color: #ffffff;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .btn-action-ghost:hover {
  background-color: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

[data-theme="light"] .sidebar-episodes-box {
  background-color: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .btn-ep-num {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .btn-ep-num:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .btn-ep-num.active {
  background-color: #ffffff !important;
  border-color: var(--main) !important;
  color: var(--main) !important;
}

/* ==========================================================================
   Single Anime Series Overview Page (1:1 AnimeAV1 Match)
   ========================================================================== */

/* Main Series Hero Card */
.series-card-root {
  background-color: #141722;
  border: 1px solid #222638;
  border-radius: 1rem;
  overflow: hidden;
  position: relative;
  margin-bottom: 2.5rem;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
}

.series-card-bg-wrap {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.series-backdrop-mask {
  width: 100%;
  height: 100%;
  position: relative;
}

.series-backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
  filter: blur(12px);
  transform: scale(1.1);
}

.series-card-body {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 2rem;
  padding: 2rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .series-card-body {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem;
    gap: 1.5rem;
  }
}

.series-poster-figure {
  width: 260px;
  flex-shrink: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  aspect-ratio: 2 / 3;
}

@media (max-width: 640px) {
  .series-poster-figure {
    width: 180px;
  }
}

.series-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.series-info-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.series-title-text {
  font-size: 2.15rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.series-subtitle-aka {
  font-size: 1.05rem;
  font-weight: 700;
  color: #00dfb6;
  margin-top: 0.25rem;
  letter-spacing: 0.02em;
}

.series-meta-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: #94a3b8;
  font-weight: 600;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .series-meta-row {
    justify-content: center;
  }
}

.series-genre-pills {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .series-genre-pills {
    justify-content: center;
  }
}

.series-genre-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.series-genre-pill:hover {
  background: #00dfb6;
  color: #0e1017;
  border-color: #00dfb6;
}

.series-synopsis-box {
  max-height: 110px;
  overflow-y: auto;
  padding-right: 0.75rem;
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-block: 0.35rem;
}

.series-synopsis-box::-webkit-scrollbar {
  width: 6px;
}

.series-synopsis-box::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.series-synopsis-box::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
}

.series-actions-flex {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

@media (max-width: 900px) {
  .series-actions-flex {
    justify-content: center;
  }
}

.mal-rating-widget {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  padding: 0.45rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.mal-star-gold {
  color: #f59e0b;
  font-size: 1.25rem;
  line-height: 1;
}

.mal-score-bold {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
}

.mal-meta-stack {
  display: flex;
  flex-direction: column;
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.btn-trailer-white {
  background-color: #ffffff;
  color: #0e1017;
  font-weight: 800;
  border-radius: 9999px;
  padding: 0.6rem 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: none;
  cursor: pointer;
  font-size: 0.88rem;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-trailer-white:hover {
  transform: scale(1.03);
  background-color: #f1f5f9;
}

.split-button-container {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  overflow: hidden;
}

.btn-split-action {
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.btn-split-toggle {
  background: rgba(255, 255, 255, 0.04);
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.btn-action-square {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-action-square:hover,
.btn-action-square.active {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

/* Section: Relacionados */
.series-relations-block {
  margin-bottom: 3.5rem;
}

.relations-timeline-wrapper {
  position: relative;
  margin-top: 1rem;
}

.relations-timeline-track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  scrollbar-width: none;
}

.relations-timeline-track::-webkit-scrollbar {
  display: none;
}

.relation-timeline-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 280px;
  flex-shrink: 0;
}

.relation-year-header {
  display: flex;
}

.relation-year-pill {
  display: inline-block;
  background: var(--soft);
  border: 1px solid var(--line);
  color: var(--subs);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.2rem 0.65rem;
  border-radius: 0.35rem;
}

.relation-item-card {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  position: relative;
  transition: all 0.2s ease;
}

.relation-item-card:hover {
  border-color: var(--edge);
  transform: translateY(-2px);
}

.relation-thumb-box {
  width: 52px;
  height: 52px;
  border-radius: 0.4rem;
  overflow: hidden;
  flex-shrink: 0;
}

.relation-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.relation-text-box {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.relation-title-text {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--lead);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.relation-type-text {
  font-size: 0.75rem;
  color: var(--subs);
  margin-top: 2px;
}

.relation-stretched-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.btn-relations-next {
  position: absolute;
  right: -1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--lead);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 10;
  transition: all 0.2s ease;
}

.btn-relations-next:hover {
  background: var(--main);
  color: #0e1017;
  border-color: var(--main);
}

/* Section: Episodios in Series Page */
.series-episodes-block {
  margin-bottom: 4rem;
}

.episodes-header-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ctrl-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  background-color: var(--surface);
  border: 1px solid var(--line);
  color: var(--subs);
  transition: all 0.2s ease;
}

.btn-ctrl-icon:hover {
  color: var(--lead);
  border-color: var(--edge);
  background-color: var(--soft);
}

.ep-range-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ep-range-select {
  appearance: none;
  background-color: var(--surface);
  border: 1px solid var(--line);
  color: var(--lead);
  padding: 0.45rem 2rem 0.45rem 0.85rem;
  border-radius: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.ep-select-arrow {
  position: absolute;
  right: 0.65rem;
  pointer-events: none;
  color: var(--subs);
}

.series-episodes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 1.25rem;
}

@media (max-width: 1100px) {
  .series-episodes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .series-episodes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
}

/* Light Mode Overrides for Series Overview Page */
[data-theme="light"] .relation-item-card {
  background-color: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .relation-year-pill {
  background-color: #f1f5f9;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .btn-ctrl-icon {
  background-color: #ffffff;
  border-color: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .ep-range-select {
  background-color: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
}

/* ==========================================================================
   HORARIO DE EMISIÃ“N (SCHEDULE PAGE) - 1:1 ANIMEAV1 CLONE
   ========================================================================== */

.horario-page-container {
  padding-top: 2rem;
  padding-bottom: 5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.horario-header {
  margin-bottom: 1.25rem;
}

.horario-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--lead);
  letter-spacing: -0.02em;
  margin: 0;
}

/* Notice / Disclaimer Alert Box */
.horario-notice-alert {
  background-color: #fef9ee;
  border: 1px solid #fef08a;
  color: #b45309;
  padding: 0.85rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1.75rem;
  font-size: 0.92rem;
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}

.horario-notice-bold {
  font-weight: 700;
  color: #92400e;
}

[data-theme="dark"] .horario-notice-alert {
  background-color: #221a0d;
  border-color: #452b0f;
  color: #f59e0b;
}

[data-theme="dark"] .horario-notice-bold {
  color: #fbbf24;
}

/* Navigation & Live Clock Controls Bar */
.horario-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.horario-days-nav {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.horario-day-btn {
  background-color: #f1f3f7;
  color: #4b5563;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
  border-radius: 0.45rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.horario-day-btn:hover {
  background-color: #e2e6ea;
  color: #111827;
}

.horario-day-btn.active {
  background-color: #00dfb6 !important;
  color: #0e1017 !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 223, 182, 0.28);
}

[data-theme="dark"] .horario-day-btn {
  background-color: #1a1e2b;
  color: #94a3b8;
}

[data-theme="dark"] .horario-day-btn:hover {
  background-color: #252b3d;
  color: #f1f5f9;
}

[data-theme="dark"] .horario-day-btn.active {
  background-color: #00dfb6 !important;
  color: #0e1017 !important;
}

.horario-meta-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.horario-clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 600;
  user-select: none;
}

[data-theme="dark"] .horario-clock-pill {
  color: #94a3b8;
}

.horario-clock-time {
  font-weight: 700;
  color: var(--lead);
}

.horario-admin-sync-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: rgba(0, 223, 182, 0.1);
  color: #00dfb6;
  border: 1px solid rgba(0, 223, 182, 0.3);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.horario-admin-sync-btn:hover {
  background-color: #00dfb6;
  color: #0e1017;
}

.horario-admin-sync-btn.rotating svg {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 5-Column Responsive Cards Grid */
.horario-grids-container {
  min-height: 400px;
}

.horario-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .horario-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .horario-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .horario-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

/* Individual Schedule Card */
.horario-card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.horario-card:hover {
  transform: translateY(-4px);
}

.horario-card-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.horario-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #141722;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .horario-poster-wrap {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.horario-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.horario-card:hover .horario-poster-img {
  transform: scale(1.05);
}

/* Time Badge Floating Top-Right */
.horario-time-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: rgba(14, 16, 23, 0.76);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  pointer-events: none;
  letter-spacing: 0.02em;
  z-index: 2;
}

/* Type / Format Badge Floating Bottom-Left */
.horario-type-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #111827;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
}

[data-theme="dark"] .horario-type-badge {
  background-color: rgba(20, 24, 35, 0.88);
  color: #f1f5f9;
}

/* Card Title below Poster */
.horario-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--lead);
  margin: 0.55rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.2em;
  transition: color 0.2s ease;
}

.horario-card:hover .horario-card-title {
  color: #00dfb6;
}

/* Empty Day State */
.horario-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 2rem;
  background-color: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 0.75rem;
  color: var(--subs);
  text-align: center;
  gap: 0.75rem;
}

.horario-empty-state svg {
  color: var(--subs);
  opacity: 0.7;
}

.horario-empty-state p {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

/* ==========================================================================
   CATÃLOGO DE ANIMES (CATALOG PAGE) - 1:1 ANIMEAV1 CLONE
   ========================================================================== */

.catalogo-page-container {
  padding-top: 2rem;
  padding-bottom: 5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.catalogo-header {
  margin-bottom: 1.25rem;
}

.catalogo-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--lead);
  letter-spacing: -0.02em;
  margin: 0;
}

/* Alphabet Filter Bar */
.catalogo-alphabet-bar {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  width: 100%;
}

.btn-alphabet-pill {
  flex: 1;
  min-width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f3f7;
  color: #4b5563;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.btn-alphabet-pill:hover {
  background-color: #e2e6ea;
  color: #111827;
}

.btn-alphabet-pill.active {
  background-color: #00dfb6 !important;
  color: #0e1017 !important;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 223, 182, 0.28);
}

[data-theme="dark"] .btn-alphabet-pill {
  background-color: #1a1e2b;
  color: #94a3b8;
}

[data-theme="dark"] .btn-alphabet-pill:hover {
  background-color: #252b3d;
  color: #f1f5f9;
}

[data-theme="dark"] .btn-alphabet-pill.active {
  background-color: #00dfb6 !important;
  color: #0e1017 !important;
}

/* Dropdown Filters Form */
.catalogo-filters-form {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.catalogo-select-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  height: 38px;
  padding: 0 0.85rem;
  transition: border-color 0.2s;
}

.catalogo-select-wrap:hover {
  border-color: #cbd5e1;
}

[data-theme="dark"] .catalogo-select-wrap {
  background-color: #1a1e2b;
  border-color: #2c3248;
}

[data-theme="dark"] .catalogo-select-wrap:hover {
  border-color: #3b4259;
}

.catalogo-select-prefix {
  font-size: 0.82rem;
  font-weight: 500;
  color: #64748b;
  margin-right: 0.35rem;
  white-space: nowrap;
  pointer-events: none;
}

[data-theme="dark"] .catalogo-select-prefix {
  color: #94a3b8;
}

.catalogo-select {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--lead);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 1.25rem;
  width: 100%;
}

.catalogo-select option {
  background-color: var(--surface);
  color: var(--lead);
}

.catalogo-select-arrow {
  position: absolute;
  right: 0.75rem;
  pointer-events: none;
  color: #64748b;
}

[data-theme="dark"] .catalogo-select-arrow {
  color: #94a3b8;
}

.btn-catalogo-filter {
  background-color: #00dfb6;
  color: #0e1017;
  font-weight: 800;
  font-size: 0.92rem;
  height: 38px;
  padding: 0 1.75rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, transform 0.1s;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 223, 182, 0.2);
}

.btn-catalogo-filter:hover {
  opacity: 0.92;
}

.btn-catalogo-filter:active {
  transform: scale(0.98);
}

/* Results Meta & Sort Bar */
.catalogo-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.catalogo-results-count {
  font-size: 0.88rem;
  font-weight: 500;
  color: #64748b;
}

[data-theme="dark"] .catalogo-results-count {
  color: #94a3b8;
}

.catalogo-sort-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.catalogo-sort-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
}

[data-theme="dark"] .catalogo-sort-label {
  color: #94a3b8;
}

.catalogo-sort-select {
  background: transparent;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--lead);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 1.25rem;
}

.catalogo-sort-select option {
  background-color: var(--surface);
  color: var(--lead);
}

/* 5-Column Responsive Cards Grid */
.catalogo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 1100px) {
  .catalogo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .catalogo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .catalogo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

/* Individual CatÃ¡logo Card */
.catalogo-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.catalogo-poster-box {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: #141722;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .catalogo-poster-box {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.catalogo-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.catalogo-card:hover .catalogo-poster-img {
  transform: scale(1.05);
}

.catalogo-type-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #111827;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
}

[data-theme="dark"] .catalogo-type-badge {
  background-color: rgba(20, 24, 35, 0.88);
  color: #f1f5f9;
}

.catalogo-card-title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--lead);
  margin: 0.55rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 2.2em;
  transition: color 0.2s ease;
}

.catalogo-card-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.catalogo-card:hover .catalogo-card-title a {
  color: #00dfb6;
}

/* 1:1 Desktop Hover Spotlight Preview (Screenshot 2 / Card 15) */
.catalogo-hover-spotlight {
  position: absolute;
  inset: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.25s;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
}

@media (hover: hover) and (min-width: 768px) {
  .catalogo-card:hover .catalogo-hover-spotlight {
    opacity: 1;
    visibility: visible;
  }
}

.spotlight-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(14px) brightness(0.35);
  transform: scale(1.2);
  z-index: 1;
}

.spotlight-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.spotlight-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #94a3b8;
  text-transform: uppercase;
}

.spotlight-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-synopsis {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.4;
  margin: 0.2rem 0 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.spotlight-btn-cta {
  background-color: #ffffff;
  color: #0e1017;
  font-weight: 800;
  font-size: 0.82rem;
  border-radius: 9999px;
  padding: 0.45rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  width: 100%;
}

.spotlight-btn-cta:hover {
  background-color: #00dfb6;
  color: #0e1017;
}

/* Pagination Bar (Screenshot 3) */
.catalogo-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn-pagination-pill {
  min-width: 36px;
  height: 36px;
  padding: 0 0.6rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f1f3f7;
  color: #4b5563;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s;
  user-select: none;
}

.btn-pagination-pill:hover {
  background-color: #e2e6ea;
  color: #111827;
}

.btn-pagination-pill.active {
  background-color: #00dfb6 !important;
  color: #0e1017 !important;
  font-weight: 800;
  cursor: default;
}

[data-theme="dark"] .btn-pagination-pill {
  background-color: #1a1e2b;
  color: #94a3b8;
}

[data-theme="dark"] .btn-pagination-pill:hover {
  background-color: #252b3d;
  color: #f1f5f9;
}

.pagination-dots {
  padding: 0 0.4rem;
  color: #94a3b8;
  font-weight: 700;
}

.catalogo-empty-state {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 2rem;
  background-color: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 0.75rem;
  color: var(--subs);
  text-align: center;
  gap: 0.75rem;
}

.catalogo-empty-state svg {
  color: var(--subs);
  opacity: 0.7;
}

.catalogo-empty-state p {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
}

.catalogo-reset-link {
  color: #00dfb6;
  font-weight: 700;
  text-decoration: underline;
  margin-top: 0.5rem;
}

/* ==========================================================================
   AnimeAV1 Community Comments Section (1:1 with AnimeAV1)
   ========================================================================== */
.animeav1-comments-container {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* 1. Header Bar: Title & Sort Dropdown */
.animeav1-comments-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.animeav1-comments-heading {
  font-size: 1.35rem;
  font-weight: 800;
  color: #f1f5f9;
  margin: 0;
  letter-spacing: -0.02em;
}

.animeav1-sort-dropdown-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: #94a3b8;
}

.animeav1-sort-label {
  font-weight: 500;
}

.animeav1-sort-select-box {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.animeav1-sort-select-box select {
  appearance: none;
  background: transparent;
  border: none;
  color: #f1f5f9;
  font-size: 0.875rem;
  font-weight: 700;
  padding-right: 1.25rem;
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.animeav1-sort-select-box select option {
  background: #141724;
  color: #f1f5f9;
}

.animeav1-sort-chevron {
  position: absolute;
  right: 0;
  pointer-events: none;
  color: #94a3b8;
}

/* 2. New Comment Input Box (1:1 with Screenshot) */
.animeav1-input-area-wrap {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.animeav1-user-avatar-col {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.animeav1-avatar-circle-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.animeav1-avatar-silhouette-box {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #252b3e;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.animeav1-comment-card-box {
  flex: 1;
  min-width: 0;
  background: #141724;
  border: 1px solid #23283b;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.animeav1-comment-card-box:focus-within {
  border-color: #333d59;
}

.animeav1-replying-banner {
  background: rgba(0, 223, 182, 0.1);
  border-bottom: 1px solid rgba(0, 223, 182, 0.2);
  padding: 0.4rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #00dfb6;
}

.animeav1-replying-banner .btn-cancel-reply {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.9rem;
}

.animeav1-replying-banner .btn-cancel-reply:hover {
  color: #ffffff;
}

.animeav1-textarea-wrapper {
  padding: 0.85rem 1rem 0.5rem;
}

.animeav1-main-textarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #f1f5f9;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 70px;
}

.animeav1-main-textarea::placeholder {
  color: #64748b;
}

.animeav1-guest-row {
  display: flex;
  gap: 0.75rem;
  padding: 0 1rem 0.75rem;
}

.animeav1-guest-field {
  flex: 1;
}

.animeav1-guest-field input {
  width: 100%;
  background: #0f121d;
  border: 1px solid #1f2537;
  border-radius: 0.4rem;
  padding: 0.45rem 0.75rem;
  color: #f1f5f9;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.animeav1-guest-field input:focus {
  border-color: #00dfb6;
}

/* Bottom Toolbar */
.animeav1-card-toolbar {
  border-top: 1px solid #1e2436;
  padding: 0.45rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.animeav1-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tb-action-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 600;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.35rem;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.tb-action-btn:hover {
  background: #1e2537;
  color: #ffffff;
}

.btn-responder-submit {
  background: #252b3e;
  color: #94a3b8;
  border: none;
  border-radius: 0.5rem;
  padding: 0.45rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.2s, color 0.2s;
}

.btn-responder-submit:hover {
  background: #2f3852;
  color: #ffffff;
}

/* 3. Comments Feed & Threaded Structure */
.animeav1-comments-feed {
  margin-top: 2rem;
}

.animeav1-comments-ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.animeav1-comment-item {
  list-style: none;
  display: flex;
  gap: 1rem;
  position: relative;
}

.animeav1-comment-avatar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40px;
  flex-shrink: 0;
}

.animeav1-avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: #262c3e;
}

.animeav1-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.animeav1-comment-thread-line {
  width: 2px;
  flex: 1;
  background: #1e2436;
  margin-top: 0.5rem;
  min-height: 20px;
  border-radius: 1px;
}

.animeav1-comment-content-col {
  flex: 1;
  min-width: 0;
}

.animeav1-comment-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.animeav1-author-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.animeav1-comment-author {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
}

.animeav1-badge-staff {
  background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.animeav1-comment-time {
  font-size: 0.825rem;
  color: #64748b;
  font-weight: 400;
}

.animeav1-more-menu-wrap {
  position: relative;
}

.animeav1-btn-more {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  transition: color 0.15s;
}

.animeav1-btn-more:hover {
  color: #ffffff;
}

.animeav1-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #191f2e;
  border: 1px solid #283248;
  border-radius: 0.5rem;
  padding: 0.35rem 0;
  min-width: 140px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  z-index: 20;
}

.animeav1-drop-item {
  width: 100%;
  display: block;
  background: transparent;
  border: none;
  color: #cbd5e1;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.animeav1-drop-item:hover {
  background: #232c3f;
  color: #ffffff;
}

/* Comment Body Text & Embedded Media */
.animeav1-comment-body {
  color: #cbd5e1;
  font-size: 0.925rem;
  line-height: 1.55;
  word-break: break-word;
}

.animeav1-comment-body p {
  margin: 0 0 0.5rem;
}

.animeav1-comment-body p:last-child {
  margin-bottom: 0;
}

.animeav1-moderation-notice {
  font-size: 0.82rem;
  color: #f59e0b;
  font-style: italic;
  margin-bottom: 0.5rem;
}

/* Embedded Media (Like Nico865's anime banner) */
.animeav1-comment-media {
  margin-top: 0.75rem;
  max-width: 580px;
  width: 100%;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #23283b;
  background: #000000;
}

.animeav1-comment-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.animeav1-comment-media img:hover {
  opacity: 0.95;
}

/* Spoilers (AnimeAV1 tap to reveal) */
.animeav1-spoiler-tag {
  display: inline-block;
  background: #252b3e;
  color: transparent;
  border-radius: 4px;
  padding: 0 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s, color 0.2s;
}

.animeav1-spoiler-tag:hover,
.animeav1-spoiler-tag.active {
  background: #1b2030;
  color: #f1f5f9;
  user-select: text;
}

.anime-quote {
  border-left: 3px solid #00dfb6;
  padding-left: 0.85rem;
  margin: 0.5rem 0;
  color: #94a3b8;
  font-style: italic;
}

/* Action Row (Like, Reply) */
.animeav1-comment-actions-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.65rem;
}

.animeav1-action-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0;
  font-family: inherit;
  transition: color 0.15s;
}

.animeav1-action-btn:hover {
  color: #00dfb6;
}

.animeav1-action-btn.active-liked {
  color: #00dfb6;
}

.animeav1-action-btn.btn-reply:hover {
  color: #f1f5f9;
}

/* Nested Replies */
.animeav1-comments-ol .children {
  list-style: none;
  padding-left: 1.5rem;
  margin: 1.25rem 0 0;
  border-left: 2px solid #1e2436;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Empty State */
.animeav1-empty-comments {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #141724;
  border: 1px dashed #23283b;
  border-radius: 0.75rem;
}

.empty-bubble-icon {
  color: #64748b;
  margin-bottom: 0.75rem;
}

.animeav1-empty-comments h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
  font-weight: 800;
}

.animeav1-empty-comments p {
  color: #94a3b8;
  font-size: 0.88rem;
  margin: 0;
}

/* 4. Light Mode Overrides (1:1 Clean Contrast) */
[data-theme="light"] .animeav1-comments-container {
  border-top-color: #e2e8f0;
}

[data-theme="light"] .animeav1-comments-heading {
  color: #0f172a;
}

[data-theme="light"] .animeav1-sort-select-box select {
  color: #0f172a;
}

[data-theme="light"] .animeav1-sort-select-box select option {
  background: #ffffff;
  color: #0f172a;
}

[data-theme="light"] .animeav1-avatar-silhouette-box {
  background: #e2e8f0;
  color: #64748b;
}

[data-theme="light"] .animeav1-comment-card-box {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .animeav1-comment-card-box:focus-within {
  border-color: #cbd5e1;
}

[data-theme="light"] .animeav1-main-textarea {
  color: #0f172a;
}

[data-theme="light"] .animeav1-guest-field input {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .animeav1-card-toolbar {
  border-top-color: #f1f5f9;
}

[data-theme="light"] .tb-action-btn {
  color: #64748b;
}

[data-theme="light"] .tb-action-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .btn-responder-submit {
  background: #f1f5f9;
  color: #475569;
}

[data-theme="light"] .btn-responder-submit:hover {
  background: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .animeav1-comment-thread-line {
  background: #e2e8f0;
}

[data-theme="light"] .animeav1-comment-author {
  color: #0f172a;
}

[data-theme="light"] .animeav1-btn-more:hover {
  color: #0f172a;
}

[data-theme="light"] .animeav1-dropdown-menu {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .animeav1-drop-item {
  color: #334155;
}

[data-theme="light"] .animeav1-drop-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

[data-theme="light"] .animeav1-comment-body {
  color: #334155;
}

[data-theme="light"] .animeav1-comment-media {
  border-color: #e2e8f0;
}

[data-theme="light"] .animeav1-spoiler-tag {
  background: #e2e8f0;
}

[data-theme="light"] .animeav1-spoiler-tag:hover,
[data-theme="light"] .animeav1-spoiler-tag.active {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .animeav1-action-btn.btn-reply:hover {
  color: #0f172a;
}

[data-theme="light"] .animeav1-comments-ol .children {
  border-left-color: #e2e8f0;
}

[data-theme="light"] .animeav1-empty-comments {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .animeav1-empty-comments h4 {
  color: #0f172a;
}

/* Standard & Legal Policy Pages (AnimeAV1 Style) */
.page-standard-main {
  padding: 3rem 0 5rem;
  min-height: calc(100vh - 200px);
}

.page-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--subs);
  margin-bottom: 1.5rem;
}

.page-breadcrumbs a {
  color: var(--subs);
  text-decoration: none;
  transition: color 0.2s;
}

.page-breadcrumbs a:hover {
  color: var(--main);
}

.breadcrumb-separator {
  color: var(--edge);
}

.breadcrumb-current {
  color: var(--lead);
  font-weight: 500;
}

.page-article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  max-width: 960px;
  margin: 0 auto;
}

.page-article-header {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.page-article-title {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--lead);
  letter-spacing: -0.025em;
  margin: 0 0 0.75rem 0;
  line-height: 1.2;
}

.page-article-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--subs);
}

.page-article-meta .meta-tag {
  background: rgba(0, 223, 182, 0.12);
  color: var(--main);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.page-article-meta .meta-bullet {
  color: var(--edge);
}

.page-article-body {
  color: var(--subs);
  font-size: 1rem;
  line-height: 1.8;
}

.page-article-body .lead-paragraph {
  font-size: 1.125rem;
  color: var(--lead);
  line-height: 1.7;
  margin-bottom: 2rem;
  font-weight: 500;
}

.page-article-body h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--lead);
  margin: 2.25rem 0 0.875rem 0;
  letter-spacing: -0.015em;
}

.page-article-body p {
  margin: 0 0 1.25rem 0;
}

.page-article-body strong {
  color: var(--lead);
}

.page-article-body ul {
  margin: 0 0 1.5rem 1.5rem;
  padding: 0;
  list-style-type: disc;
}

.page-article-body li {
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .page-article-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
  }
  .page-article-title {
    font-size: 1.75rem;
  }
}







/* ==========================================================================
   MOBILE UI — AnimeAV1 reference layout
   Only applies to phones; desktop/tablet layout remains unchanged.
   ========================================================================== */
@media (max-width: 639px) {
  body {
    padding-bottom: 4.35rem;
    overflow-x: hidden;
  }

  .container {
    width: 100%;
    max-width: none;
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }

  /* Header: single compact row like the reference */
  .site-header {
    position: sticky;
    top: 0;
    background-color: var(--surface);
    border-bottom: 0;
  }

  .header-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem 0;
    min-height: 4.35rem;
  }

  .header-brand {
    order: 1;
    min-height: 0;
    flex: 1 1 auto;
    min-width: 0;
  }

  .logo-text {
    font-size: 1.75rem;
    line-height: 1;
  }

  .logo-badge-7 {
    font-size: 1.95rem;
  }

  .header-logo-img {
    max-height: 36px !important;
    max-width: 145px;
  }

  /* Compact search icon; full search remains available on desktop. */
  .header-search {
    order: 3;
    flex: 0 0 2.5rem;
    width: 2.5rem;
    max-width: 2.5rem;
    height: 2.5rem;
  }

  .search-form {
    width: 2.5rem;
    height: 2.5rem;
  }

  .search-input {
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    font-size: 0;
    color: transparent;
    caret-color: transparent;
    cursor: pointer;
    border-radius: 0.55rem;
  }

  .search-input::placeholder {
    color: transparent;
  }

  .search-icon {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 18px;
    height: 18px;
  }

  .search-btn-filter {
    display: none;
  }

  /* Keep only Discord in the top row; schedule/catalog remain in bottom nav. */
  .header-nav {
    order: 2;
    display: flex !important;
    align-items: center;
    flex: 0 0 auto;
  }

  .header-nav .nav-link {
    display: none;
  }

  .header-nav .nav-link.discord-link {
    display: inline-flex;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    justify-content: center;
    border-radius: 0.55rem;
    font-size: 0;
  }

  .header-nav .nav-link.discord-link svg {
    width: 18px;
    height: 18px;
  }

  .header-actions {
    order: 2;
    margin-left: 0;
    gap: 0.45rem;
    flex: 0 0 auto;
  }

  .header-actions .btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.55rem;
  }

  /* The admin/import shortcut is desktop-only. */
  .header-actions .btn-icon[href*="animeav1-importer"] {
    display: none;
  }

  /* Reference hero proportions and spacing. */
  .hero-slide {
    min-height: 460px;
    padding: 5.2rem 0 2rem;
  }

  .hero-inner-container {
    padding-left: 1.35rem;
    padding-right: 1.35rem;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title,
  .hero-slide .hero-title {
    font-size: 2rem !important;
    line-height: 1.12;
    margin-bottom: 0.85rem;
  }

  .hero-meta-row,
  .hero-slide .hero-meta-row {
    gap: 0.4rem;
    font-size: 0.78rem;
    flex-wrap: wrap;
  }

  .genre-pills {
    gap: 0.4rem;
    margin-top: 0.75rem;
  }

  .hero-slide .genre-pill {
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
  }

  .hero-synopsis,
  .hero-slide .hero-synopsis {
    margin-top: 0.9rem;
    font-size: 0.88rem !important;
    line-height: 1.5;
    -webkit-line-clamp: 4 !important;
  }

  .hero-actions {
    margin-top: 1.15rem;
  }

  .hero-slide .btn-lead {
    min-height: 48px;
    padding: 0.7rem 1rem;
    border-radius: 0.55rem;
  }

  /* Section spacing and episode cards */
  .section-header {
    margin-bottom: 0.95rem;
  }

  .section-title {
    font-size: 1.45rem;
  }

  .section-subtitle {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .episodes-grid,
  .series-episodes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    column-gap: 0.85rem !important;
    row-gap: 1.35rem !important;
  }

  .episode-figure {
    border-radius: 0.55rem;
  }

  .episode-time-overlay {
    padding: 0.3rem 0.45rem;
    font-size: 0.64rem;
  }

  .episode-comments-badge {
    padding: 0.3rem 0.45rem 0.65rem 0.65rem;
    font-size: 0.65rem;
  }

  .notch-badge-wrap {
    padding: 0.25rem 0.25rem 0 0;
  }

  .notch-badge-pill {
    padding: 0.22rem 0.5rem;
    font-size: 0.68rem;
  }

  .episode-card-header {
    margin-top: 0.42rem;
  }

  .episode-anime-title {
    font-size: 0.67rem;
    line-height: 1.35;
  }

  /* Single episode/player page: match the narrow reference layout. */
  .player-page-container {
    padding-top: 0.95rem;
    padding-bottom: 4.75rem;
  }

  .player-page-grid {
    gap: 0.85rem;
  }

  .player-main-col {
    gap: 0.75rem;
  }

  .video-stage {
    border-radius: 0.55rem;
    box-shadow: none;
  }

  .player-nav-bar {
    gap: 0.5rem;
  }

  .player-nav-group {
    gap: 0.45rem;
  }

  .btn-nav-ep {
    min-height: 40px;
    padding: 0.45rem 0.8rem;
    font-size: 0.75rem;
  }

  .btn-action-icon {
    width: 2.5rem;
    height: 2.5rem;
  }

  .servers-card {
    padding: 0.75rem;
    gap: 0.45rem;
    align-items: flex-start;
  }

  .sub-tag-badge {
    padding: 0.38rem 0.65rem;
    font-size: 0.72rem;
  }

  .server-pills-list {
    gap: 0.4rem;
  }

  .btn-server-pill {
    padding: 0.42rem 0.72rem;
    font-size: 0.72rem;
  }

  .episode-details-section {
    margin-top: 0.15rem;
  }

  .episode-series-link {
    font-size: 0.98rem;
  }

  .episode-main-title {
    font-size: 1.65rem;
    margin-bottom: 0.55rem;
  }

  .series-meta-row {
    gap: 0.45rem;
    font-size: 0.75rem;
  }

  .series-genre-pills {
    gap: 0.4rem;
    margin-top: 0.7rem;
  }

  .series-genre-pill {
    padding: 0.3rem 0.65rem;
    font-size: 0.72rem;
  }

  .episode-synopsis-text {
    font-size: 0.84rem;
    line-height: 1.55;
    margin-bottom: 1rem;
  }

  .episode-actions-row {
    gap: 0.55rem;
  }

  .mal-rating-widget {
    padding: 0.4rem 0.65rem;
    gap: 0.45rem;
  }

  .mal-score-bold {
    font-size: 1.25rem;
  }

  .btn-action-ghost {
    width: 2.5rem;
    height: 2.5rem;
  }

  .player-sidebar-col {
    width: 100%;
  }

  .sidebar-episodes-box {
    padding: 1rem;
    border-radius: 0.65rem;
  }

  .sidebar-header-wrap {
    margin-bottom: 0.85rem;
  }

  .sidebar-subtitle {
    font-size: 0.72rem;
  }

  .sidebar-ep-title {
    font-size: 1.05rem;
  }

  .sidebar-episodes-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 0.4rem;
  }

  .btn-ep-num {
    min-height: 40px;
    font-size: 0.78rem;
  }

  /* Bottom navigation: fixed five-item AnimeAV1-style bar. */
  .mobile-bottom-nav {
    height: 4.15rem;
    padding: 0 0.15rem;
    background-color: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e2e8f0;
    backdrop-filter: blur(12px);
  }

  .mobile-nav-item {
    gap: 0.18rem;
    font-size: 0.62rem;
    color: #475569;
  }

  .mobile-nav-item svg {
    width: 20px;
    height: 20px;
  }

  .mobile-nav-item.active,
  .mobile-nav-item:hover {
    color: var(--main);
  }

  [data-theme="dark"] .mobile-bottom-nav {
    background-color: rgba(14, 16, 23, 0.98);
    border-top-color: var(--line);
  }

  [data-theme="dark"] .mobile-nav-item {
    color: var(--subs);
  }
}
