/* ============================================================
   黄色仓库影视资源归档与片单推荐社区 - 主样式表
   Design Tokens & CSS Custom Properties
   ============================================================ */

:root {
  --primary: #0D1B2A;
  --secondary: #FFD700;
  --bg: #0D1B2A;
  --card-bg: #1B2838;
  --accent: #FFC107;
  --text: #E0E0E0;
  --text-muted: #8B9EB0;
  --border-color: rgba(255, 255, 255, 0.1);
  --success: #4CAF50;
  --danger: #F44336;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 40px rgba(0, 0, 0, 0.5);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --font-heading: 'Montserrat', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'Roboto Mono', 'DIN Alternate', Consolas, monospace;
  --container-max: 1400px;
  --header-height: 70px;
}

/* ============================================================
   Reset & Base
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-family: inherit;
}

/* ============================================================
   Typography
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-gold { color: var(--secondary); }

.font-mono {
  font-family: var(--font-mono);
}

/* ============================================================
   Layout & Container
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section__title {
  font-size: 1.75rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section__title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 24px;
  background: var(--secondary);
  border-radius: 2px;
}

.section__subtitle {
  color: var(--text-muted);
  margin-bottom: 30px;
  font-size: 0.95rem;
}

.section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
}

.section__more {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 4px;
}

.section__more:hover {
  color: var(--secondary);
}

/* ============================================================
   Header & Navigation
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: rgba(13, 27, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: var(--transition);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

.header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
}

.header__logo img {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.header__logo span {
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.header__search {
  flex: 1;
  max-width: 500px;
  margin: 0 30px;
  position: relative;
}

.header__search input {
  width: 100%;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 0 40px 0 16px;
  color: var(--text);
  font-size: 0.9rem;
  transition: var(--transition);
}

.header__search input:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.1);
}

.header__search input::placeholder {
  color: var(--text-muted);
}

.header__search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header__nav a {
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}

.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.header__nav a:hover::after,
.header__nav a.active::after {
  width: 100%;
}

.header__nav a:hover,
.header__nav a.active {
  color: var(--secondary);
}

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

.header__user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--secondary);
}

/* Mobile Menu */
.header__menu-toggle {
  display: none;
  background: none;
  color: var(--text);
  font-size: 1.5rem;
  padding: 4px;
}

/* ============================================================
   Hero Banner
   ============================================================ */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  margin-top: var(--header-height);
  overflow: hidden;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero__slide.active {
  opacity: 1;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(13, 27, 42, 0.95) 0%,
    rgba(13, 27, 42, 0.7) 50%,
    rgba(13, 27, 42, 0.3) 100%
  );
}

.hero__content {
  position: absolute;
  bottom: 15%;
  left: 0;
  padding: 0 60px;
  max-width: 650px;
  z-index: 2;
}

.hero__tag {
  display: inline-block;
  background: var(--secondary);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero__title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero__desc {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.7;
  opacity: 0.9;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero__meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero__meta-item .rating {
  color: var(--secondary);
  font-family: var(--font-mono);
  font-weight: 700;
}

.hero__actions {
  display: flex;
  gap: 12px;
}

.hero__dots {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.hero__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  cursor: pointer;
  transition: var(--transition);
}

.hero__dot.active {
  background: var(--secondary);
  width: 30px;
  border-radius: 5px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--accent);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

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

.btn--outline:hover {
  border-color: var(--secondary);
  color: var(--secondary);
  transform: translateY(-2px);
}

.btn--ghost {
  background: rgba(255,255,255,0.1);
  color: var(--text);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.2);
}

/* ============================================================
   Movie Card Grid
   ============================================================ */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.movie-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  transition: var(--transition);
}

.movie-card:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
  z-index: 2;
}

.movie-card__poster {
  position: relative;
  aspect-ratio: 2/3;
  overflow: hidden;
}

.movie-card__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.movie-card:hover .movie-card__poster img {
  transform: scale(1.1);
}

.movie-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.movie-card:hover .movie-card__overlay {
  opacity: 1;
}

.movie-card__play {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  transform: scale(0);
  transition: var(--transition);
}

.movie-card:hover .movie-card__play {
  transform: scale(1);
}

.movie-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--secondary);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.movie-card__info {
  padding: 12px;
}

.movie-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.movie-card__rating {
  color: var(--secondary);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ============================================================
   Playlist Card Grid
   ============================================================ */
.playlist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.playlist-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.playlist-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.playlist-card__cover {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.playlist-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-card__body {
  padding: 16px;
}

.playlist-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.playlist-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.playlist-card__author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.playlist-card__author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.playlist-card__author span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.playlist-card__stats {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   Today's Pick / Editor's Choice
   ============================================================ */
.editors-pick {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  padding: 24px;
}

.editors-pick__poster {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 2/3;
}

.editors-pick__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.editors-pick__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.editors-pick__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--secondary);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.editors-pick__title {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.editors-pick__desc {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.editors-pick__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 215, 0, 0.1);
  color: var(--secondary);
  border-radius: 20px;
  font-size: 0.8rem;
  border: 1px solid rgba(255, 215, 0, 0.2);
  transition: var(--transition);
}

.tag:hover {
  background: rgba(255, 215, 0, 0.2);
}

/* ============================================================
   Carousel (Horizontal Scroll)
   ============================================================ */
.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 10px;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel .movie-card {
  flex: 0 0 180px;
  scroll-snap-align: start;
}

/* ============================================================
   Review Cards
   ============================================================ */
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 20px;
  border-left: 3px solid var(--secondary);
  transition: var(--transition);
}

.review-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.review-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.review-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.review-card__author-info {
  flex: 1;
}

.review-card__author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
}

.review-card__date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.review-card__rating {
  color: var(--secondary);
  font-family: var(--font-mono);
  font-weight: 700;
}

.review-card__movie {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 8px;
}

.review-card__text {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   Tag Cloud
   ============================================================ */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 20px;
}

.tag-cloud__item {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  color: var(--text);
  font-size: 0.85rem;
  transition: var(--transition);
  cursor: pointer;
}

.tag-cloud__item:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--secondary);
  color: var(--secondary);
  transform: scale(1.05);
}

.tag-cloud__item--lg {
  font-size: 1.1rem;
  padding: 10px 20px;
}

.tag-cloud__item--sm {
  font-size: 0.75rem;
  padding: 6px 12px;
}

/* ============================================================
   Rankings / Charts
   ============================================================ */
.ranking-list {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.ranking-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.ranking-item:hover {
  background: rgba(255, 255, 255, 0.03);
}

.ranking-item__rank {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
  width: 36px;
  text-align: center;
  color: var(--text-muted);
}

.ranking-item__rank--top {
  color: var(--secondary);
}

.ranking-item__poster {
  width: 45px;
  height: 65px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.ranking-item__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ranking-item__info {
  flex: 1;
}

.ranking-item__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.ranking-item__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ranking-item__score {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
}

/* ============================================================
   Filter / Sidebar
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-group__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.filter-group__options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-option {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
}

.filter-option:hover,
.filter-option.active {
  background: rgba(255, 215, 0, 0.1);
  border-color: var(--secondary);
  color: var(--secondary);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #0A1420;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer__brand {
  max-width: 300px;
}

.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer__brand-logo img {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.footer__brand-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.footer__col-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}

.footer__links li {
  margin-bottom: 10px;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer__links a:hover {
  color: var(--secondary);
}

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

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer__social a:hover {
  background: var(--secondary);
  color: var(--primary);
}

.footer__bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer__bottom-links {
  display: flex;
  gap: 20px;
}

.footer__bottom-links a {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================================================
   Detail Page
   ============================================================ */
.detail-hero {
  position: relative;
  min-height: 500px;
  margin-top: var(--header-height);
  display: flex;
  align-items: flex-end;
  padding: 60px 0;
}

.detail-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.detail-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2px);
}

.detail-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--primary) 0%, rgba(13,27,42,0.8) 50%, rgba(13,27,42,0.6) 100%);
}

.detail-hero__content {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.detail-hero__poster {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
}

.detail-hero__poster img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

.detail-hero__info {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* ============================================================
   Breadcrumb
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 0;
  font-size: 0.85rem;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--secondary);
}

.breadcrumb__separator {
  color: var(--text-muted);
}

.breadcrumb__current {
  color: var(--text);
}

/* ============================================================
   Radar Chart Container
   ============================================================ */
.radar-chart {
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

/* ============================================================
   Progress Bar (Viewing Progress)
   ============================================================ */
.progress-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

.progress-bar__fill--watching {
  background: var(--accent);
}

.progress-bar__fill--completed {
  background: var(--success);
}

/* ============================================================
   Skeleton Loading
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg, var(--card-bg) 25%, rgba(255,255,255,0.05) 50%, var(--card-bg) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   Pagination
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.pagination__item {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
}

.pagination__item:hover,
.pagination__item.active {
  background: var(--secondary);
  color: var(--primary);
  border-color: var(--secondary);
}

/* ============================================================
   Tabs
   ============================================================ */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 24px;
}

.tabs__item {
  padding: 12px 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.tabs__item:hover,
.tabs__item.active {
  color: var(--secondary);
  border-bottom-color: var(--secondary);
}

/* ============================================================
   Responsive Design
   ============================================================ */
@media (max-width: 1200px) {
  .movie-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

@media (max-width: 992px) {
  .movie-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .playlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .editors-pick {
    grid-template-columns: 200px 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .header__nav {
    display: none;
  }
  .header__menu-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .movie-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .playlist-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    height: 70vh;
    min-height: 450px;
  }
  .hero__content {
    padding: 0 20px;
    max-width: 100%;
  }
  .hero__title {
    font-size: 2rem;
  }
  .editors-pick {
    grid-template-columns: 1fr;
  }
  .editors-pick__poster {
    max-width: 200px;
    margin: 0 auto;
  }
  .detail-hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .detail-hero__poster {
    max-width: 200px;
    margin: 0 auto;
  }
  .section {
    padding: 40px 0;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .header__search {
    display: none;
  }
}

@media (max-width: 480px) {
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .hero__title {
    font-size: 1.5rem;
  }
  .hero__desc {
    font-size: 0.9rem;
  }
  .filter-bar {
    padding: 12px;
  }
}

/* ============================================================
   Utility Classes
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.lazy-load {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.lazy-load.loaded {
  opacity: 1;
}

.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-40 { margin-top: 40px; }
.mb-40 { margin-bottom: 40px; }
