﻿/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #000000;
  --purple: #8b5cf6;
  --purple-dark: #7c3aed;
  --purple-darker: #4c1d95;
  --purple-light: #9f54ff;
  --white: #ffffff;
  --gray-light: #a1a1aa;
  --gray-dark: #111111;
  --gray-border: #1a1a1a;
  --gray-input: #2a2a2a;
  --text-secondary: var(--gray-light);
}

:root {
  --black: #000000;
  --purple: #8b5cf6;
  --purple-dark: #7c3aed;
  --purple-darker: #4c1d95;
  --purple-light: #9f54ff;
  --white: #ffffff;
  --gray-light: #a1a1aa;
  --gray-dark: #111111;
  --gray-border: #1a1a1a;
  --gray-input: #2a2a2a;
  --text-secondary: var(--gray-light);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--purple-dark);
}

/* ===== NAVBAR ===== */
.topbar {
  background: var(--black);
  border-bottom: 1px solid var(--gray-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.topbar-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  color: var(--white);
  letter-spacing: 0.05em;
  position: relative;
}

.brand::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--purple);
}

.main-nav {
  display: flex;
  gap: 32px;
  flex: 1;
  margin-left: 48px;
}

.main-nav a {
  font-size: 14px;
  color: var(--gray-light);
  text-decoration: none;
  transition: all 200ms ease;
  position: relative;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--white);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--purple);
  transition: width 200ms ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-container {
  position: relative;
}

.search-wrap {
  position: relative;
}

.search-wrap span {
  display: none;
}

.search-wrap input {
  width: 200px;
  height: 40px;
  background: var(--gray-dark);
  border: 1px solid var(--gray-input);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--white);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 200ms ease;
}

.search-wrap input::placeholder {
  color: var(--gray-light);
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--purple);
  width: 280px;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.notification-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--gray-input);
  border-radius: 8px;
  color: var(--gray-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
}

.notification-btn:hover {
  color: var(--white);
  border-color: var(--purple);
}

.ghost-btn {
  height: 40px;
  padding: 0 20px;
  background: var(--purple);
  border: none;
  border-radius: 9999px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 200ms ease;
}

.ghost-btn:hover {
  background: var(--purple-dark);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* ===== SEARCH DROPDOWN ===== */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #0a0a0a;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  max-height: 400px;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 200ms ease;
}

.search-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-dropdown-empty {
  padding: 24px;
  text-align: center;
  color: var(--gray-light);
  font-size: 14px;
}

.search-result-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--gray-border);
  cursor: pointer;
  transition: all 200ms ease;
  text-decoration: none;
  color: inherit;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--gray-dark);
  padding-left: 16px;
}

.search-result-thumbnail {
  width: 48px;
  height: 64px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--purple-darker), var(--black));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
  font-family: 'Bebas Neue', sans-serif;
  flex-shrink: 0;
}

.search-result-info {
  min-width: 0;
}

.search-result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-light);
  flex-wrap: wrap;
}

.search-result-channel {
  text-transform: capitalize;
}

.search-result-highlight {
  background: rgba(139, 92, 246, 0.3);
  color: var(--white);
  padding: 0 2px;
  border-radius: 2px;
}

/* ===== PROMO BAR ===== */
.promo-bar {
  background: var(--black);
  border-bottom: 1px solid var(--gray-border);
}

.promo-inner {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--gray-light);
}

.promo-inner strong {
  color: var(--white);
  font-weight: 600;
}

/* ===== PAGE LAYOUT ===== */
.page {
  padding: 32px 0 80px;
}

.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.02em;
  margin: 0 0 24px;
  color: var(--white);
}

.card {
  margin-bottom: 48px;
}

.rail {
  margin-bottom: 64px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

/* ===== HERO SECTION ===== */
.hero-section {
  position: relative;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 48px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--purple-darker) 0%, var(--black) 100%);
  transition: opacity 400ms ease, background 400ms ease;
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  width: fit-content;
  background: var(--purple);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--white);
}

.hero-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-light);
  margin: 0 0 16px;
  max-width: 600px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.hero-btn {
  height: 48px;
  padding: 0 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 200ms ease;
  border: none;
}

.hero-btn.primary {
  background: var(--purple);
  color: var(--white);
}

.hero-btn.primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.hero-btn.secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.hero-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ===== TABS CONTAINER ===== */
.tabs-container {
  margin-bottom: 48px;
}

/* ===== SECTION ===== */
.section {
  margin-bottom: 64px;
}

.entries-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.popular-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ===== HERO FEATURED SECTION ===== */
.hero-featured {
  position: relative;
  height: 480px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 64px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--purple-darker) 0%, var(--black) 100%);
  filter: blur(60px) scale(1.1);
  opacity: 0.3;
  transition: opacity 400ms ease;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--black) 0%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  max-width: 700px;
}

.featured-badge {
  display: inline-block;
  width: fit-content;
  background: var(--purple);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 56px;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin: 0 0 16px;
  color: var(--white);
}

.hero-genre-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.genre-tag {
  background: rgba(139, 92, 246, 0.2);
  border: 1px solid var(--purple);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.stars {
  color: #fbbf24;
  font-size: 16px;
  letter-spacing: 2px;
}

.rating-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}

.hero-synopsis {
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-light);
  margin: 0 0 24px;
  max-width: 600px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  gap: 16px;
}

.btn-primary,
.btn-outline {
  height: 48px;
  padding: 0 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 200ms ease;
  border: none;
}

.btn-primary {
  background: var(--purple);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ===== TABS & FILTERS ===== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tab {
  height: 40px;
  padding: 0 24px;
  background: var(--gray-dark);
  border: 1px solid var(--gray-input);
  border-radius: 9999px;
  color: var(--gray-light);
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 200ms ease;
  text-transform: capitalize;
}

.tab:hover {
  color: var(--white);
  border-color: var(--purple);
}

.tab.active {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}

/* ===== POSTER RAIL (TRENDING CARDS) ===== */
.rail-nav {
  display: flex;
  gap: 8px;
}

.rail-nav-btn {
  width: 40px;
  height: 40px;
  background: var(--gray-dark);
  border: 1px solid var(--gray-input);
  border-radius: 8px;
  color: var(--gray-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
}

.rail-nav-btn:hover {
  color: var(--white);
  border-color: var(--purple);
  background: var(--gray-input);
}

.rail-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.poster-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 160px;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.poster-rail::-webkit-scrollbar {
  display: none;
}

.poster-card {
  width: 160px;
  height: 240px;
  border-radius: 6px;
  background: var(--gray-dark);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 200ms ease;
  display: flex;
  flex-direction: column;
  background-size: cover;
  background-position: center;
}

.poster-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 100%);
  z-index: 1;
}

.poster-card:hover {
  transform: scale(1.04);
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
  cursor: pointer;
}

.poster-card-content {
  position: relative;
  z-index: 2;
  padding: 12px;
  margin-top: auto;
  text-align: center;
}

.poster-card-content strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chapter-count {
  font-size: 12px;
  color: var(--gray-light);
}

.hot-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #ef4444;
  color: var(--white);
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 3;
}

/* ===== LATEST UPDATES SECTION ===== */
.latest-block {
  background: transparent;
  border: none;
  padding: 0;
}

.entry-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.entry-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-border);
  transition: all 200ms ease;
}

.entry-item:hover {
  padding-left: 8px;
}

.entry-item:last-child {
  border-bottom: none;
}

.entry-thumbnail {
  width: 48px;
  height: 64px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--purple-darker), var(--black));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
  font-family: 'Bebas Neue', sans-serif;
}

.entry-info h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 8px;
  font-family: 'Inter', sans-serif;
}

.entry-info p {
  font-size: 13px;
  color: var(--gray-light);
  margin: 0 0 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.entry-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--gray-light);
  flex-wrap: wrap;
}

.entry-meta a {
  color: var(--purple);
  text-decoration: none;
  transition: color 200ms ease;
}

.entry-meta a:hover {
  color: var(--purple-dark);
}

.time-ago {
  color: var(--gray-light);
  font-weight: 500;
}

/* ===== POPULAR SECTION ===== */
.popular-block {
  background: transparent;
  border: none;
  padding: 0;
}

.popular-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.popular-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--gray-border);
  transition: all 200ms ease;
}

.popular-list li:hover {
  padding-left: 8px;
}

.popular-list li:last-child {
  border-bottom: none;
}

.popular-list .rank {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--purple-darker);
  text-align: center;
  line-height: 1;
}

.popular-list strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}

.popular-list .entry-meta {
  font-size: 12px;
  color: var(--gray-light);
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 300ms ease;
  padding: 24px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #0a0a0a;
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: all 300ms ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 32px 0;
  margin-bottom: 16px;
}

.modal-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--white);
}

.modal-close {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--gray-input);
  border-radius: 8px;
  color: var(--gray-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 200ms ease;
  flex-shrink: 0;
}

.modal-close:hover {
  color: #ef4444;
  border-color: #ef4444;
  transform: rotate(90deg);
}

.modal-description {
  color: var(--gray-light);
  font-size: 14px;
  margin: 0 32px 24px;
}

/* ===== FORM ===== */
.suggestion-form {
  padding: 0 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.preview-card {
  background: var(--gray-dark);
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 8px;
}

.preview-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.preview-content {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
}

.preview-thumbnail {
  width: 80px;
  height: 112px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--purple-darker), var(--black));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
  font-family: 'Bebas Neue', sans-serif;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.preview-info {
  min-width: 0;
}

.preview-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.preview-info p {
  font-size: 13px;
  color: var(--gray-light);
  line-height: 1.5;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.preview-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--gray-light);
}

.preview-meta span {
  text-transform: capitalize;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  height: 48px;
  background: var(--gray-dark);
  border: 1px solid var(--gray-input);
  border-radius: 8px;
  padding: 0 16px;
  color: var(--white);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  transition: all 200ms ease;
}

.form-input:focus {
  outline: 2px solid var(--purple);
  outline-offset: 0;
  border-color: transparent;
}

.form-input::placeholder {
  color: var(--gray-light);
}

textarea.form-input {
  height: auto;
  min-height: 120px;
  padding: 16px;
  resize: vertical;
}

select.form-input {
  cursor: pointer;
}

.btn-submit {
  width: 100%;
  height: 48px;
  background: var(--purple);
  border: none;
  border-radius: 8px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 200ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover:not(:disabled) {
  background: var(--purple-dark);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.btn-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.spinner {
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
}

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

.form-message {
  margin: 0;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--purple);
  color: var(--purple);
}

/* ===== SKELETON LOADING ===== */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.skeleton-card,
.skeleton-entry,
.skeleton-popular {
  background: linear-gradient(
    90deg,
    var(--gray-dark) 0%,
    var(--gray-border) 50%,
    var(--gray-dark) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: 6px;
}

.skeleton-card {
  width: 160px;
  height: 240px;
}

.skeleton-entry {
  height: 96px;
  margin-bottom: 16px;
}

.skeleton-popular {
  height: 64px;
  margin-bottom: 16px;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: #0a0a0a;
  border: 1px solid var(--purple);
  border-radius: 8px;
  padding: 16px 24px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  z-index: 10001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 300ms ease;
  max-width: 400px;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.toast.success {
  border-color: #10b981;
}

.toast.error {
  border-color: #ef4444;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  background: var(--purple);
  border: none;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 200ms ease;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--purple-dark);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.6);
}

/* ===== ADMIN PAGE STYLES ===== */
.list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 32px 0;
}

.list li {
  background: #0a0a0a;
  border: 1px solid var(--gray-border);
  border-radius: 12px;
  padding: 24px;
  transition: all 200ms ease;
}

.list li:hover {
  border-color: var(--purple);
  transform: translateX(4px);
}

.list h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 12px;
}

.list p {
  font-size: 14px;
  color: var(--gray-light);
  line-height: 1.6;
  margin: 0 0 12px;
}

.list small {
  display: block;
  font-size: 12px;
  color: var(--gray-light);
  margin-bottom: 16px;
}

.actions {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.actions button {
  flex: 1;
  height: 40px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 200ms ease;
}

.actions button[data-action="accept"] {
  background: #10b981;
  color: var(--white);
}

.actions button[data-action="accept"]:hover {
  background: #059669;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.actions button[data-action="reject"] {
  background: #ef4444;
  color: var(--white);
}

.actions button[data-action="reject"]:hover {
  background: #dc2626;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

#loadBtn {
  height: 48px;
  padding: 0 32px;
  background: var(--purple);
  border: none;
  border-radius: 8px;
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 200ms ease;
  margin-top: 16px;
}

#loadBtn:hover {
  background: var(--purple-dark);
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

#adminMessage {
  margin: 16px 0;
  padding: 16px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid var(--purple);
  color: var(--purple);
}

#adminMessage:empty {
  display: none;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .poster-rail {
    grid-auto-columns: 140px;
  }
  
  .poster-card {
    width: 140px;
    height: 210px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .topbar-inner {
    height: 64px;
  }
  
  .main-nav {
    display: none;
  }
  
  .brand {
    font-size: 20px;
  }
  
  .search-wrap input {
    width: 140px;
  }
  
  .search-wrap input:focus {
    width: 200px;
  }
  
  .search-dropdown {
    left: -100px;
    right: -100px;
    max-width: 400px;
  }
  
  .top-actions {
    gap: 8px;
  }
  
  .promo-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 16px;
  }
  
  .hero-featured {
    height: 400px;
  }
  
  .hero-content {
    padding: 32px 24px;
  }
  
  .hero-title {
    font-size: 40px;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-primary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .poster-rail {
    grid-auto-columns: 130px;
  }
  
  .poster-card {
    width: 130px;
    height: 195px;
  }
  
  .entry-item {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }
  
  .entry-thumbnail {
    width: 40px;
    height: 56px;
    font-size: 20px;
  }
  
  .modal-header {
    padding: 24px 24px 0;
  }
  
  .modal-description {
    margin: 0 24px 24px;
  }
  
  .suggestion-form {
    padding: 0 24px 24px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .modal-title {
    font-size: 28px;
  }
  
  .back-to-top {
    width: 48px;
    height: 48px;
    bottom: 24px;
    right: 24px;
  }
  
  .toast {
    bottom: 24px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .hero-featured {
    height: 360px;
  }
  
  .hero-content {
    padding: 24px 16px;
  }
  
  .hero-title {
    font-size: 32px;
  }
  
  .featured-badge {
    font-size: 10px;
    padding: 6px 16px;
  }
  
  .hero-synopsis {
    font-size: 14px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .poster-rail {
    grid-auto-columns: 120px;
  }
  
  .poster-card {
    width: 120px;
    height: 180px;
  }
  
  .poster-card-content strong {
    font-size: 13px;
  }
  
  .chapter-count {
    font-size: 11px;
  }
  
  .notification-btn {
    width: 36px;
    height: 36px;
  }
  
  .ghost-btn {
    padding: 0 16px;
    font-size: 13px;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

/* ===== BROWSE PAGE ===== */
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 60px;
  height: 40px;
  padding: 0 16px;
  background: var(--purple);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
}

.browse-filters {
  margin-bottom: 48px;
}

.filter-group {
  margin-bottom: 32px;
}

.filter-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-btn {
  height: 36px;
  padding: 0 20px;
  background: var(--gray-dark);
  border: 1px solid var(--gray-input);
  border-radius: 9999px;
  color: var(--gray-light);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 200ms ease;
  text-transform: capitalize;
}

.filter-btn:hover {
  color: var(--white);
  border-color: var(--purple);
}

.filter-btn.active {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}

.genre-dropdown {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.genre-dropdown-btn {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--gray-dark);
  border: 1px solid var(--gray-input);
  border-radius: 8px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 200ms ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.genre-dropdown-btn:hover {
  border-color: var(--purple);
}

.genre-dropdown-btn svg {
  transition: transform 200ms ease;
}

.genre-dropdown-menu.active + .genre-dropdown-btn svg {
  transform: rotate(180deg);
}

.genre-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-height: 400px;
  background: #0a0a0a;
  border: 1px solid var(--gray-border);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 200ms ease;
  display: flex;
  flex-direction: column;
}

.genre-dropdown-menu.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.genre-search {
  width: 100%;
  height: 40px;
  padding: 0 16px;
  background: var(--gray-dark);
  border: none;
  border-bottom: 1px solid var(--gray-border);
  color: var(--white);
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  border-radius: 8px 8px 0 0;
}

.genre-search:focus {
  outline: none;
  background: var(--gray-input);
}

.genre-search::placeholder {
  color: var(--gray-light);
}

.genre-options {
  overflow-y: auto;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.genre-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 200ms ease;
  border-radius: 4px;
  font-size: 14px;
  color: var(--white);
}

.genre-option:hover {
  background: var(--gray-dark);
}

.genre-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--purple);
}

.results-count {
  font-size: 14px;
  color: var(--gray-light);
  margin-bottom: 24px;
  font-weight: 500;
}

.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.browse-card {
  position: relative;
  aspect-ratio: 2/3;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: all 200ms ease;
  background-size: cover;
  background-position: center;
}

.browse-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.4);
}

.browse-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, transparent 60%);
  z-index: 1;
}

.browse-card-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
}

.browse-card-channel {
  display: inline-block;
  width: fit-content;
  background: var(--purple);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.browse-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  margin: 0 0 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.browse-card-genres {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.browse-genre-tag {
  background: rgba(139, 92, 246, 0.3);
  border: 1px solid var(--purple);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.browse-card-link {
  display: inline-block;
  color: var(--purple-light);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 200ms ease;
}

.browse-card-link:hover {
  color: var(--white);
}

@media (max-width: 768px) {
  .browse-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }
  
  .filter-buttons {
    gap: 6px;
  }
  
  .filter-btn {
    font-size: 12px;
    padding: 0 16px;
    height: 32px;
  }
}

.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }

.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}
