:root {
  --bg: #05070a;
  --surface: #11141b;
  --surface-2: #171b24;
  --accent: #00ff88;
  --text: #ffffff;
  --text-dim: #94a3b8;
  --sidebar-w: 280px;
  --border: #222;
  --danger: #ff5f5f;
}

body.high-contrast {
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-2: #101010;
  --accent: #00ff88;
  --text-dim: #ffffff;
  --border: #00ff88;
}

::-webkit-scrollbar {
  width: 0;
  background: transparent;
}

* {
  box-sizing: border-box;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  margin: 0;
  display: flex;
  overflow-x: hidden;
}

.lock-scroll {
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  min-width: 20px;
  flex: 0 0 20px;
  display: inline-block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-right: 12px;
  overflow: visible;
  vertical-align: middle;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  stroke: var(--text-dim);
  margin-right: 0;
  pointer-events: none;
}

#sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  background: rgba(17, 20, 27, 0.98);
  backdrop-filter: blur(20px);
  position: fixed;
  left: 0;
  top: 0;
  z-index: 2000;
  padding: 40px 20px;
  border-right: 1px solid var(--border);
  overflow-y: auto;
  transform: translateX(calc(-1 * var(--sidebar-w)));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

#sidebar.open {
  transform: translateX(0);
}

#menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1500;
  display: none;
}

.brand {
  color: var(--accent);
  margin-bottom: 30px;
  font-weight: 800;
  letter-spacing: -1px;
}

.nav-group-label {
  font-size: 0.65rem;
  color: #555;
  text-transform: uppercase;
  margin: 25px 0 10px 15px;
  letter-spacing: 1px;
  font-weight: 800;
}

.nav-item {
  padding: 12px 15px;
  border-radius: 10px;
  cursor: pointer;
  margin-bottom: 5px;
  color: var(--text-dim);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  line-height: 1.2;
  user-select: none;
}

.nav-item:hover,
.nav-item.active {
  background: rgba(0, 255, 136, 0.1);
  color: var(--accent);
}

#genre-container {
  display: none;
  padding-left: 15px;
  margin-top: 5px;
  border-left: 1px solid var(--border);
  margin-left: 15px;
}

#genre-container.show {
  display: block;
}

main {
  flex: 1;
  padding: 20px;
  width: 100%;
}

.top-bar {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  position: sticky;
  top: 0;
  background: var(--bg);
  padding: 15px 0;
  z-index: 1000;
}

.menu-trigger {
  cursor: pointer;
  color: var(--accent);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.menu-trigger .icon,
.theme-toggle .icon {
  margin-right: 0;
  width: 24px;
  height: 24px;
  min-width: 24px;
  flex-basis: 24px;
}

.search-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

#search {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 14px 20px 14px 45px;
  border-radius: 12px;
  color: white;
  outline: none;
  font-size: 1rem;
}

#search::placeholder {
  color: var(--text-dim);
}

.ui-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.toggle-container {
  display: flex;
  background: var(--surface);
  border-radius: 50px;
  padding: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.toggle-btn {
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
}

.toggle-btn.active {
  background: var(--accent);
  color: #000;
}

#filter-select {
  background: var(--surface);
  color: white;
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 10px;
  outline: none;
}

.section-title {
  margin: 10px 0 20px 0;
  font-size: 1.1rem;
}

#top-10-row {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding: 10px 0 25px;
}

.top-card {
  min-width: 140px;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
}

.top-rank {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--accent);
  color: #000;
  font-weight: 900;
  padding: 4px 12px;
  border-bottom-right-radius: 12px;
  font-size: 1rem;
  z-index: 2;
}

.top-card img,
.card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #111;
  display: block;
}

#movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  border: 1px solid var(--border);
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
}

.card-rating {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  backdrop-filter: blur(4px);
  z-index: 6;
}

.card-info {
  padding: 12px;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-date {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.watchlist-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: #000;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 5;
}

.status-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.status-badge {
  background: rgba(0, 0, 0, 0.85);
  color: var(--accent);
  font-size: 0.6rem;
  font-weight: 900;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: fit-content;
}

.status-badge.favorite {
  color: #ff7aa2;
}

.status-badge.watched {
  color: #8ab4ff;
}

#loader {
  text-align: center;
  padding: 40px;
  color: var(--accent);
  display: none;
}

.empty-state {
  padding: 20px;
  color: var(--text-dim);
}

.loading-state {
  padding: 30px 0;
  color: var(--accent);
  text-align: center;
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  padding: 20px;
  backdrop-filter: blur(15px);
}

.modal-content {
  background: var(--surface);
  max-width: 980px;
  width: 100%;
  max-height: 90vh;
  border-radius: 24px;
  overflow-y: auto;
  padding: 34px;
  border: 1px solid var(--border);
  position: relative;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  cursor: pointer;
  font-size: 35px;
  color: var(--text-dim);
  line-height: 1;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 10px;
  margin-bottom: 10px;
  border: none;
  cursor: pointer;
  color: white;
}

.action-btn.secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
}

.action-btn.secondary.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.library-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 14px;
}

.custom-list-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px 0 22px;
}

.custom-list-select {
  min-width: 220px;
  background: var(--surface-2);
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  outline: none;
}

.list-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.list-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.panel {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.provider-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.provider-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 88px;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 10px;
}

.provider-chip:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.provider-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #333;
  display: block;
}

.provider-name {
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.2;
  color: var(--text-dim);
}

.modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 18px;
}

.modal-tab {
  background: var(--surface-2);
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.82rem;
}

.modal-tab.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.season-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 16px;
  overflow: hidden;
}

.season-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  background: transparent;
}

.season-header:hover {
  background: rgba(255, 255, 255, 0.02);
}

.season-title {
  font-weight: 800;
  font-size: 0.95rem;
}

.season-meta {
  color: var(--text-dim);
  font-size: 0.78rem;
}

.season-body {
  display: none;
  padding: 0 18px 18px;
}

.season-card.open .season-body {
  display: block;
}

.episode-row {
  display: grid;
  grid-template-columns: 80px 1fr 90px;
  gap: 12px;
  align-items: start;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.episode-row:first-child {
  border-top: 0;
}

.episode-num,
.episode-rating {
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
}

.episode-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.episode-overview {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.top-episode-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}

.top-episode-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
}

.top-episode-title {
  font-weight: 800;
  font-size: 0.92rem;
}

.top-episode-sub {
  color: var(--text-dim);
  font-size: 0.8rem;
}

@media (max-width: 700px) {
  .top-bar {
    flex-wrap: wrap;
  }

  .search-wrapper {
    order: 3;
    width: 100%;
  }

  #movie-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .ui-controls {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .modal-content {
    padding: 24px;
  }

  .episode-row {
    grid-template-columns: 62px 1fr 72px;
    gap: 10px;
  }

  .provider-chip {
    width: 82px;
  }

  .custom-list-select {
    width: 100%;
    min-width: 0;
  }
  

  .library-actions .action-btn,
  .custom-list-bar .action-btn {
    flex: 1 1 auto;
  }
}

.custom-lists-wrap {
  display: none;
  margin-bottom: 8px;
}

.custom-lists-wrap.show {
  display: block;
}

.my-lists-toggle {
  justify-content: flex-start;
  position: relative;
  padding-right: 42px;
}

.my-lists-toggle .my-lists-chevron {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%) rotate(90deg);
  margin-right: 0;
}

.my-lists-toggle.collapsed .my-lists-chevron {
  transform: translateY(-50%) rotate(0deg);
}

.my-lists-toggle .icon {
  margin-right: 12px;
}

.my-lists-chevron {
  transition: transform 0.2s ease;
}

.custom-list-empty {
  color: #666;
  font-size: 0.8rem;
  padding: 8px 15px;
}

.custom-list-item {
  justify-content: space-between;
  gap: 10px;
  padding-right: 10px;
}

.custom-list-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-list-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.custom-list-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1;
  padding: 0;
}

.custom-list-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.custom-list-btn.delete-btn:hover {
  color: #ff8f8f;
  border-color: #ff8f8f;
}
.recommendation-section {
  margin-top: 26px;
}

.recommendation-title {
  margin: 0 0 14px 0;
  font-size: 1rem;
}

.media-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.media-row-card {
  min-width: 150px;
  max-width: 150px;
  cursor: pointer;
  flex-shrink: 0;
}

.media-row-poster-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.media-row-poster-wrap:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.media-row-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  background: #111;
}

.media-row-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--accent);
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
}

.media-row-title {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.media-row-sub {
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--text-dim);
}

@media (max-width: 700px) {
  .media-row-card {
    min-width: 132px;
    max-width: 132px;
  }
}
.people-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.person-row-card {
  min-width: 120px;
  max-width: 120px;
  cursor: pointer;
  flex-shrink: 0;
}

.person-row-photo-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.person-row-photo-wrap:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.person-row-photo {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  background: #111;
}

.person-row-name {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.person-row-role {
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--text-dim);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.person-detail-header {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  margin-bottom: 26px;
  align-items: start;
}

.person-detail-photo {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--border);
  display: block;
  background: #111;
}

.person-detail-copy {
  min-width: 0;
}

.person-detail-meta {
  display: grid;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.person-detail-bio {
  line-height: 1.65;
  color: #cbd5e1;
  margin: 0;
}

@media (max-width: 700px) {
  .person-row-card {
    min-width: 108px;
    max-width: 108px;
  }

  .person-detail-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .person-detail-photo {
    max-width: 220px;
  }
}
.advanced-filters {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 24px;
}

.advanced-filter-control,
.advanced-filter-clear {
  width: 100%;
  background: var(--surface);
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
  font: inherit;
}

.advanced-filter-clear {
  cursor: pointer;
  font-weight: 700;
}

.advanced-filter-clear:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.modal-genre-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.modal-genre-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

@media (max-width: 900px) {
  .advanced-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .advanced-filters {
    grid-template-columns: 1fr;
  }
}
.homepage-rows {
  display: block;
  margin: 0 0 26px;
}

.homepage-row-block {
  margin-bottom: 26px;
}

.homepage-row-title {
  margin: 0 0 14px;
  font-size: 1rem;
}

.homepage-row-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.homepage-row-card {
  min-width: 150px;
  max-width: 150px;
  cursor: pointer;
  flex-shrink: 0;
}

.homepage-row-poster-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.homepage-row-poster-wrap:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.homepage-row-poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  display: block;
  background: #111;
}

.homepage-row-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: var(--accent);
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
}

.homepage-row-name {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.homepage-row-year {
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--text-dim);
}

.detail-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.detail-stat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.detail-stat-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.detail-stat-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.detail-block-row {
  margin-bottom: 14px;
}

.detail-block-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.detail-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-inline-chip,
.detail-inline-text {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

@media (max-width: 700px) {
  .homepage-row-card {
    min-width: 132px;
    max-width: 132px;
  }
}
.homepage-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.homepage-row-title {
  margin: 0;
  font-size: 1rem;
}

.homepage-row-more {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.homepage-row-more:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.toggle-container {
  display: flex;
  background: var(--surface);
  border-radius: 50px;
  padding: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.toggle-btn {
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  min-width: 58px;
  text-align: center;
}

.homepage-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.homepage-row-title {
  margin: 0;
  font-size: 1rem;
}

.homepage-row-more {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-dim);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.homepage-row-more:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.hero-showcase {
  display: none;
  margin: 0 0 28px;
}

.hero-shell {
  position: relative;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.42) 0%, rgba(5, 7, 10, 0.22) 42%, rgba(5, 7, 10, 0.10) 100%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.02) 0%, rgba(5, 7, 10, 0.42) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) 360px;
  gap: 24px;
  min-height: 520px;
  padding: 28px;
  align-items: end;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 7, 10, 0.42) 0%, rgba(5, 7, 10, 0.22) 42%, rgba(5, 7, 10, 0.10) 100%),
    linear-gradient(180deg, rgba(5, 7, 10, 0.02) 0%, rgba(5, 7, 10, 0.42) 100%);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000;
  background: var(--accent);
  margin-bottom: 14px;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  color: #dbe4ef;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-description {
  margin: 0 0 18px;
  max-width: 62ch;
  color: #eef4fb;
  line-height: 1.65;
  font-size: 0.96rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-btn {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.hero-btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-side {
  display: grid;
  gap: 12px;
  align-self: end;
}

.hero-side-card {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 18px;
  background: rgba(14, 18, 25, 0.68);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.hero-side-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.hero-side-poster {
  width: 74px;
  height: 108px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  background: #111;
}

.hero-side-title {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 6px;
}

.hero-side-sub {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.35;
}

@media (max-width: 980px) {
  .hero-content {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-side {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-side-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .hero-side-poster {
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
  }
}

@media (max-width: 700px) {
  .hero-shell {
    min-height: 0;
  }

  .hero-content {
    min-height: 0;
    padding: 18px;
    gap: 18px;
  }

  .hero-main {
    padding: 18px;
    border-radius: 20px;
  }

  .hero-description {
    font-size: 0.9rem;
  }

  .hero-side {
    grid-template-columns: 1fr;
  }
}
.auth-mini-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-mini-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-radius: 999px;
  padding: 9px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
}

.auth-mini-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.auth-mini-btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.auth-user-name {
  font-size: 0.82rem;
  color: var(--text-dim);
  font-weight: 700;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.auth-modal-content {
  max-width: 520px;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}

.auth-tab {
  flex: 1;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.auth-tab.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.auth-status {
  min-height: 22px;
  margin-bottom: 12px;
  font-size: 0.86rem;
  color: var(--text-dim);
}

.auth-status.error {
  color: #ff8f8f;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-dim);
  text-transform: uppercase;
}

.auth-input {
  width: 100%;
  background: var(--surface);
  color: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 14px;
  outline: none;
  font: inherit;
}

.auth-input:focus {
  border-color: var(--accent);
}

.auth-submit-btn {
  margin-top: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #000;
  border-radius: 14px;
  padding: 13px 16px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

@media (max-width: 900px) {
  .auth-user-name {
    display: none;
  }
}

@media (max-width: 700px) {
  .auth-mini-bar {
    width: 100%;
    justify-content: flex-end;
  }

  .auth-mini-btn {
    padding: 8px 10px;
  }
}