.site-body {
  min-height: 100vh;
  background: #f8fafc;
}

.site-header {
  position: sticky;
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: .85rem;
  background: linear-gradient(135deg, #f97316, #06b6d4);
  box-shadow: 0 12px 30px rgba(249, 115, 22, .3);
}

.footer-logo-mark {
  box-shadow: none;
}

.search-icon {
  position: absolute;
  left: .95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  font-size: 1.2rem;
  line-height: 1;
}

.mobile-search-icon {
  left: 1.95rem;
  top: calc(50% - .5rem);
}

.mobile-panel {
  display: none;
}

.mobile-panel.is-open {
  display: block;
}

.hero-section {
  background: #111827;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-bg {
  transform: scale(1.03);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fb923c;
}

.hero-kicker::before {
  content: "";
  width: 2rem;
  height: .15rem;
  border-radius: 9999px;
  background: linear-gradient(90deg, #f97316, #06b6d4);
}

.hero-desc {
  text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.hero-meta span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  padding: .35rem .7rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(12px);
}

.hero-tags .tag-badge {
  color: #ffffff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .18);
}

.hero-dot {
  width: .75rem;
  height: .75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .5);
  transition: all .3s ease;
}

.hero-dot.is-active {
  width: 2rem;
  background: #f97316;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 10;
  width: 3rem;
  height: 3rem;
  transform: translateY(-50%);
  border-radius: 9999px;
  color: #ffffff;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(10px);
  font-size: 2rem;
  line-height: 1;
  transition: all .25s ease;
}

.hero-arrow:hover {
  background: #f97316;
}

.hero-arrow-left {
  left: 1.5rem;
}

.hero-arrow-right {
  right: 1.5rem;
}

.search-hero-card {
  margin-top: -5rem;
  position: relative;
  z-index: 20;
}

.hero-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
}

.hero-search-form input,
.filter-input {
  width: 100%;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  padding: .85rem 1.1rem;
  color: #374151;
  outline: none;
  transition: all .25s ease;
  background: #ffffff;
}

.hero-search-form input:focus,
.filter-input:focus {
  border-color: #f97316;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, .14);
}

.hero-search-form button {
  border-radius: 9999px;
  padding: .85rem 1.4rem;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(135deg, #f97316, #06b6d4);
  box-shadow: 0 18px 35px rgba(249, 115, 22, .22);
}

.category-pill-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1rem;
}

.category-pill,
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .9rem;
  border-radius: 9999px;
  color: #374151;
  font-size: .9rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffedd5, #cffafe);
  border: 1px solid rgba(249, 115, 22, .12);
  transition: all .25s ease;
}

.category-pill:hover,
.tag-badge:hover {
  color: #f97316;
  transform: translateY(-1px);
}

.movie-card {
  min-width: 0;
}

.poster-wrap img {
  background: #111827;
}

.card-play-mark {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #f97316;
  transform: scale(.85);
  transition: transform .25s ease;
}

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

.card-category {
  max-width: calc(100% - 1.5rem);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hot-card {
  flex: 0 0 20rem;
}

.hot-rank,
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, #f97316, #ef4444);
}

.hot-rank {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
}

.hot-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 2.25rem;
}

.slider-controls {
  display: flex;
  gap: .5rem;
}

.slider-controls button {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #f97316;
  box-shadow: 0 10px 25px rgba(15, 23, 42, .12);
  font-size: 1.6rem;
  transition: all .25s ease;
}

.slider-controls button:hover {
  color: #ffffff;
  background: #f97316;
}

.rank-list {
  display: grid;
  gap: .75rem;
}

.rank-row {
  display: grid;
  grid-template-columns: auto 3.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: .85rem;
  padding: .7rem;
  border-radius: 1rem;
  background: #f9fafb;
  transition: all .25s ease;
}

.rank-row:hover {
  transform: translateX(3px);
  background: #fff7ed;
}

.rank-list-dark .rank-row {
  background: rgba(255, 255, 255, .08);
  color: #ffffff;
}

.rank-badge {
  width: 2rem;
  height: 2rem;
  font-size: .85rem;
}

.rank-row img {
  width: 3.5rem;
  height: 4.5rem;
  border-radius: .75rem;
  object-fit: cover;
  background: #111827;
}

.rank-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  color: inherit;
}

.rank-meta {
  color: #9ca3af;
  font-size: .85rem;
}

.category-cover {
  position: relative;
  height: 13rem;
  overflow: hidden;
}

.category-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  background: #111827;
}

.category-overview-card:hover .category-cover img {
  transform: scale(1.08);
}

.category-cover-layer {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .78), rgba(0, 0, 0, .05));
}

.category-cover h2 {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 800;
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.category-sample-link,
.related-text-link {
  display: inline-flex;
  max-width: 100%;
  padding: .45rem .7rem;
  border-radius: 9999px;
  color: #4b5563;
  background: #f3f4f6;
  font-size: .86rem;
  transition: all .25s ease;
}

.category-sample-link:hover,
.related-text-link:hover {
  color: #f97316;
  background: #ffedd5;
}

.filter-field span {
  display: block;
  margin-bottom: .45rem;
  color: #4b5563;
  font-size: .9rem;
  font-weight: 700;
}

.filter-empty {
  display: none;
  margin-top: 1rem;
  color: #9ca3af;
  text-align: center;
  font-weight: 700;
}

.filter-empty.is-visible {
  display: block;
}

.detail-hero {
  min-height: 36rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  color: #d1d5db;
  font-size: .95rem;
}

.breadcrumb a:hover {
  color: #fb923c;
}

.player-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #000000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}

.player-shell video,
.play-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.player-shell video {
  object-fit: contain;
  background: #000000;
}

.play-layer {
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #ffffff;
  text-align: center;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.play-layer.hidden {
  display: none;
}

.play-button-large {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-left: .2rem;
  color: #ffffff;
  background: linear-gradient(135deg, #f97316, #06b6d4);
  box-shadow: 0 20px 50px rgba(6, 182, 212, .3);
  font-size: 2rem;
  transition: transform .25s ease;
}

.play-layer:hover .play-button-large {
  transform: scale(1.06);
}

.play-layer-title {
  max-width: min(90%, 38rem);
  font-size: 1.35rem;
  font-weight: 800;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.detail-content {
  color: #374151;
  line-height: 1.9;
}

.detail-content h2 {
  margin-top: 1.5rem;
  margin-bottom: .75rem;
  color: #111827;
  font-size: 1.45rem;
  font-weight: 800;
}

.detail-content h2:first-child {
  margin-top: 0;
}

.detail-content p {
  margin-bottom: 1rem;
}

.related-text-list {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.line-clamp-1,
.line-clamp-2,
.line-clamp-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-1 {
  -webkit-line-clamp: 1;
}

.line-clamp-2 {
  -webkit-line-clamp: 2;
}

.line-clamp-3 {
  -webkit-line-clamp: 3;
}

@media (max-width: 768px) {
  .site-logo-text {
    font-size: 1.25rem;
  }

  .hero-section {
    height: 620px;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-arrow {
    display: none;
  }

  .search-hero-card {
    margin-top: -3rem;
  }

  .hero-search-form {
    grid-template-columns: 1fr;
  }

  .hot-card {
    flex-basis: 17rem;
  }

  .rank-row {
    grid-template-columns: auto 3rem minmax(0, 1fr);
  }

  .rank-row img {
    width: 3rem;
    height: 4rem;
  }

  .rank-meta {
    display: none;
  }

  .detail-hero {
    min-height: auto;
  }

  .player-shell {
    border-radius: 1rem;
  }
}
