@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;900&display=swap");

:root {
  --primary: #ee7f38;
  --primary-dark: #d76523;
  --primary-soft: #fdeeef;
  --accent: #eab308;
  --accent-soft: #fef9c3;
  --secondary: #433f3c;
  --secondary-mid: #736d5f;
  --warm: #fdf8f6;
  --warm-strong: #f2e8e5;
  --line: #eaded7;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(67, 63, 60, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--warm);
  color: var(--secondary);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.wrap {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(234, 222, 215, 0.9);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 34px rgba(67, 63, 60, 0.08);
}

.nav-wrap {
  width: min(1280px, calc(100% - 32px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--secondary);
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 12px 28px rgba(238, 127, 56, 0.35);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  font-weight: 700;
  color: var(--secondary-mid);
  font-size: 14px;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  transition: color 0.22s ease;
}

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

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  border: 0;
  border-radius: 12px;
  background: var(--warm-strong);
  color: var(--secondary);
  width: 42px;
  height: 42px;
  font-size: 22px;
  cursor: pointer;
}

.mobile-panel {
  display: none;
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 16px;
}

.mobile-panel.is-open {
  display: grid;
  gap: 8px;
}

.mobile-link {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--secondary);
  background: rgba(242, 232, 229, 0.55);
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 620px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary), #ef9a59 48%, var(--accent));
}

.hero-track {
  min-height: 620px;
  position: relative;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  filter: saturate(1.08) contrast(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 24%, rgba(234, 179, 8, 0.44), transparent 26%),
    linear-gradient(90deg, rgba(35, 30, 26, 0.92) 0%, rgba(67, 63, 60, 0.78) 40%, rgba(238, 127, 56, 0.24) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.48), transparent 58%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1280px, calc(100% - 32px));
  min-height: 620px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  padding: 88px 0 96px;
  max-width: 780px;
  margin-left: max(16px, calc((100vw - 1280px) / 2));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.hero h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.06em;
  font-weight: 900;
}

.hero p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.9);
}

.hero-tags,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 12px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 16px 34px rgba(238, 127, 56, 0.35);
}

.btn.ghost {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
}

.btn.small {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 14px;
  color: var(--white);
  background: var(--primary);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
}

.hero-dot {
  width: 36px;
  height: 6px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--white);
}

.home-search {
  margin-top: -48px;
  position: relative;
  z-index: 4;
  display: grid;
  gap: 18px;
  padding: 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.home-search h2 {
  margin: 0 0 6px;
  font-size: clamp(24px, 3vw, 36px);
  letter-spacing: -0.03em;
}

.home-search p {
  margin: 0;
  color: var(--secondary-mid);
}

.search-box {
  position: relative;
  display: grid;
  gap: 10px;
}

.search-box input {
  width: 100%;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  font: inherit;
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(238, 127, 56, 0.14);
}

.search-empty {
  display: none;
  color: var(--secondary-mid);
  font-size: 14px;
  font-weight: 700;
}

.search-empty.is-visible {
  display: inline-flex;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--warm-strong);
  color: var(--secondary);
  font-weight: 800;
  font-size: 13px;
  transition: background 0.22s ease, color 0.22s ease;
}

.chip:hover {
  background: var(--primary);
  color: var(--white);
}

.section-block {
  padding: 58px 0;
}

.white-band {
  background: var(--white);
}

.soft-band {
  background: linear-gradient(90deg, var(--warm-strong), #fff7ed);
}

.section-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section-line {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), rgba(238, 127, 56, 0));
}

.section-more {
  color: var(--primary);
  font-weight: 900;
  white-space: nowrap;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.video-card {
  overflow: hidden;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 32px rgba(67, 63, 60, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 44px rgba(67, 63, 60, 0.16);
}

.card-cover {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

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

.card-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), transparent 58%);
}

.type-badge,
.card-rank {
  position: absolute;
  z-index: 2;
  top: 10px;
  border-radius: 999px;
  color: var(--white);
  font-size: 12px;
  font-weight: 900;
}

.type-badge {
  right: 10px;
  padding: 5px 9px;
  background: rgba(238, 127, 56, 0.9);
}

.card-rank {
  left: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: rgba(234, 179, 8, 0.95);
}

.play-badge {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.86);
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  font-weight: 900;
}

.video-card:hover .play-badge {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.card-body {
  padding: 16px;
}

.card-body h3 {
  margin: 0 0 7px;
  font-size: 17px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-body h3 a:hover {
  color: var(--primary);
}

.card-body p {
  margin: 0 0 12px;
  min-height: 46px;
  color: var(--secondary-mid);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta,
.meta-line,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--secondary-mid);
  font-size: 13px;
  font-weight: 700;
}

.card-meta span,
.meta-line span,
.detail-meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--warm-strong);
}

.rail-grid {
  display: grid;
  gap: 28px;
}

.rail-group h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(240px, 1fr);
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.page-hero {
  padding: 88px 0 70px;
  color: var(--white);
  background:
    radial-gradient(circle at 82% 22%, rgba(234, 179, 8, 0.5), transparent 28%),
    linear-gradient(135deg, var(--primary), #ef9a59 45%, var(--accent));
}

.page-hero h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-hero p {
  max-width: 820px;
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

.page-hero .search-box {
  max-width: 780px;
  margin-top: 22px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.category-panel {
  padding: 24px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(67, 63, 60, 0.09);
}

.category-title {
  display: inline-flex;
  margin-bottom: 10px;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.category-title:hover {
  color: var(--primary);
}

.category-panel p {
  margin: 0 0 14px;
  color: var(--secondary-mid);
}

.category-samples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.category-samples a {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--warm-strong);
  color: var(--secondary);
  font-weight: 700;
  font-size: 13px;
}

.row-list {
  display: grid;
  gap: 14px;
}

.media-row {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(67, 63, 60, 0.08);
}

.row-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: var(--secondary);
}

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

.row-body h3 {
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}

.row-body h3 a:hover {
  color: var(--primary);
}

.row-body p {
  margin: 0 0 10px;
  color: var(--secondary-mid);
}

.rank-num {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  font-size: 15px;
  font-weight: 900;
}

.detail-top {
  padding: 70px 0;
  color: var(--white);
  background:
    radial-gradient(circle at 80% 14%, rgba(234, 179, 8, 0.5), transparent 30%),
    linear-gradient(135deg, var(--secondary), #5f5148 50%, var(--primary));
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 36px;
  align-items: center;
}

.poster-card {
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
  background: var(--secondary);
}

.poster-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 700;
  margin-bottom: 14px;
}

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

.detail-copy h1 {
  margin: 0 0 14px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.lead {
  max-width: 840px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 20px;
}

.player-section {
  margin-top: -34px;
  position: relative;
  z-index: 2;
}

.player-shell {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #111;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.site-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #111;
}

.player-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.08));
  cursor: pointer;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.player-overlay span {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.92);
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.player-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.detail-article {
  max-width: 1000px;
}

.detail-article h2 {
  margin: 0 0 12px;
  font-size: 28px;
}

.detail-article p {
  margin: 0 0 26px;
  color: var(--secondary-mid);
  font-size: 18px;
}

.site-footer {
  margin-top: 48px;
  color: #f7ede9;
  background: var(--secondary);
}

.footer-inner {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  padding: 42px 0;
}

.footer-brand {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 900;
}

.site-footer p {
  margin: 0 0 10px;
  color: #e6d8d1;
}

.site-footer h3 {
  margin: 0 0 12px;
}

.site-footer a:hover {
  color: var(--accent-soft);
}

.copyright {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #d9c8c0;
  text-align: center;
  font-size: 14px;
}

[data-card].is-hidden {
  display: none;
}

@media (max-width: 1080px) {
  .nav-links {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .hero,
  .hero-track,
  .hero-content {
    min-height: 560px;
  }

  .hero-content {
    margin-left: 16px;
    padding-right: 16px;
  }

  .home-search {
    padding: 20px;
    border-radius: 18px;
  }

  .card-grid,
  .category-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .media-row {
    grid-template-columns: 118px 1fr;
    gap: 12px;
  }

  .row-body h3 {
    font-size: 17px;
  }

  .row-body p {
    display: none;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .section-line {
    width: 100%;
    flex: none;
  }
}

@media (max-width: 520px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .detail-top {
    padding: 42px 0 56px;
  }

  .player-overlay span {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }
}
