:root {
  --bg: #050505;
  --panel: #111113;
  --panel-2: #171719;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.2);
  --text: #f7f7f8;
  --dim: #b9b9be;
  --muted: #7e7e86;
  --red: #e50914;
  --red-dark: #9f0710;
  --teal: #00d4bd;
  --gold: #f2c14e;
  --max: 1600px;
  --gutter: 44px;
  --topbar: 76px;
  --headerh: calc(var(--topbar) + 1px);
  --catbar: 0px;
  --sidew: 188px;
  --radius: 8px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--headerh);
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-top: var(--headerh);
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

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

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-thumb {
  background: #303035;
  border-radius: 99px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 100;
  background: #212121;
  border-bottom: 1px solid var(--line);
}

.site-header.is-scrolled {
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.34);
}

.topbar {
  height: var(--topbar);
  width: 100%;
  margin: 0;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.line-menu-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.line-menu-button img {
  width: 20px;
  height: 14px;
  object-fit: contain;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: max-content;
  font-weight: 950;
}

.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--red);
  box-shadow: 0 14px 34px rgba(229, 9, 20, 0.34);
}

.brand-mark svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  stroke-width: 0;
}

.brand span:not(.brand-mark) {
  font-size: 23px;
  line-height: 1;
}

.brand b {
  min-width: 28px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 5px;
  background: rgba(0, 212, 189, 0.12);
  color: var(--teal);
  font-size: 12px;
}

.search {
  height: 42px;
  width: min(450px, 36vw);
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted);
}

.search:focus-within {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.08);
}

.search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
}

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

.account {
  display: flex;
  align-items: center;
  gap: 9px;
}

.account button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.account svg {
  width: 18px;
  height: 18px;
}

.account .avatar {
  background: #fff;
  color: #050505;
  font-size: 12px;
  font-weight: 950;
}

.side-menu {
  position: fixed;
  left: 0;
  top: var(--headerh);
  z-index: 70;
  width: var(--sidew);
  height: calc(100vh - var(--headerh));
  overflow-y: auto;
  background: #212121;
  border-right: 1px solid #343434;
  transition: width 0.2s var(--ease), transform 0.2s var(--ease);
}

.side-menu-section {
  padding: 16px 14px;
  border-bottom: 1px solid #343434;
}

.side-menu-section a,
.side-menu-section strong {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 650;
}

.side-menu-section.primary a {
  min-height: 44px;
  font-weight: 780;
}

.side-menu-section strong {
  margin-bottom: 7px;
}

.side-menu-section a {
  color: #999;
}

.side-menu-section.primary a {
  color: #fff;
}

.side-menu-section a:hover,
.side-menu-section a.is-active {
  color: #fff;
}

.side-menu-section a.is-active {
  color: var(--red);
}

.side-menu svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: currentColor;
}

.side-menu-section a svg[data-lucide="minus"] {
  width: 8px;
  height: 8px;
  margin-left: 28px;
  flex-basis: 8px;
}

.side-menu span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

body.menu-collapsed {
  --sidew: 52px;
}

body.menu-collapsed .side-menu-section {
  padding: 0;
  border-bottom: 0;
}

body.menu-collapsed .side-menu-section strong,
body.menu-collapsed .side-menu-section a {
  justify-content: center;
  min-height: 52px;
  gap: 0;
}

body.menu-collapsed .side-menu-section span {
  display: none;
}

body.menu-collapsed .side-menu-section a svg[data-lucide="minus"] {
  margin-left: 0;
}

.site-banner-strip {
  margin-left: var(--sidew);
  padding: 10px var(--gutter) 5px;
  background: #050505;
  transition: margin-left 0.2s var(--ease);
}

.site-banner-grid {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.site-banner-grid a,
.video-banner-area a {
  min-width: 0;
  display: block;
  overflow: hidden;
  background: #111;
}

.site-banner-grid img,
.video-banner-area img {
  width: 100%;
  height: auto;
  display: block;
}

main {
  min-height: 100vh;
  margin-left: var(--sidew);
  transition: margin-left 0.2s var(--ease);
}

main#home {
  scroll-margin-top: var(--headerh);
}

.hero {
  position: relative;
  min-height: max(700px, calc(100vh - var(--headerh) - var(--catbar)));
  overflow: hidden;
  background: #050505;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.48s var(--ease), visibility 0.48s;
}

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

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.2);
  filter: saturate(1.08) contrast(1.04);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, 0.88) 31%, rgba(5, 5, 5, 0.34) 62%, #050505 100%),
    linear-gradient(0deg, #050505 0%, rgba(5, 5, 5, 0.55) 29%, rgba(5, 5, 5, 0.25) 64%, rgba(5, 5, 5, 0.8) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max);
  min-height: max(700px, calc(100vh - var(--headerh) - var(--catbar)));
  margin: 0 auto;
  padding: 70px var(--gutter) 140px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  align-items: center;
  gap: 72px;
}

.hero-copy {
  max-width: 760px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 11px;
  border-radius: 6px;
  background: rgba(229, 9, 20, 0.16);
  color: #fff;
  font-size: 13px;
  font-weight: 920;
}

.hero-label svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: 76px;
  line-height: 1.02;
  font-weight: 950;
  letter-spacing: 0;
  text-shadow: 0 24px 58px rgba(0, 0, 0, 0.72);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--dim);
  font-size: 16px;
  font-weight: 780;
}

.hero-meta b {
  color: var(--gold);
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
}

.hero-meta span::before {
  content: "";
  width: 3px;
  height: 3px;
  margin-right: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.36);
}

.hero-meta em {
  height: 24px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.hero p {
  max-width: 650px;
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.72;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.watch-button,
.sub-button {
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 19px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 900;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}

.watch-button {
  min-width: 126px;
  background: #fff;
  color: #050505;
}

.sub-button {
  min-width: 108px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.watch-button:hover,
.sub-button:hover {
  transform: translateY(-1px);
}

.watch-button svg,
.sub-button svg {
  width: 19px;
  height: 19px;
}

.hero-poster {
  justify-self: end;
  width: 322px;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 34px 82px rgba(0, 0, 0, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.hero-menu {
  position: absolute;
  left: 50%;
  bottom: 32px;
  z-index: 5;
  width: min(calc(100% - var(--gutter) * 2), var(--max));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-menu button {
  min-width: 0;
  height: 86px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(12, 12, 14, 0.86);
  color: var(--dim);
  text-align: left;
}

.hero-menu button.is-active,
.hero-menu button:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero-menu img {
  width: 56px;
  height: 66px;
  border-radius: 6px;
  object-fit: cover;
}

.hero-menu span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 15px;
  font-weight: 900;
}

.live-strip,
.top10-section,
.rail-section {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  scroll-margin-top: calc(var(--headerh) + var(--catbar) + 18px);
}

.live-strip {
  padding-top: 34px;
  padding-bottom: 10px;
}

.strip-head,
.rail-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.strip-head span,
.rail-head span {
  display: block;
  margin-bottom: 3px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
}

.strip-head h2,
.rail-head h2 {
  margin: 0;
  color: #fff;
  font-size: 25px;
  line-height: 1.22;
  font-weight: 940;
}

.live-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.live-row article {
  min-width: 0;
  height: 86px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
}

.live-row time {
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
}

.live-row strong {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 16px;
  font-weight: 900;
}

.live-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.top10-section {
  padding-top: 28px;
  padding-bottom: 20px;
}

.top10-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  padding: 4px 2px 8px;
}

.top10-card {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 8px;
}

.top10-card > b {
  position: absolute;
  left: -10px;
  top: 28px;
  z-index: 0;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(255, 255, 255, 0.38);
  font-size: 102px;
  line-height: 0.8;
  font-weight: 950;
}

.top10-card a {
  position: relative;
  z-index: 1;
  width: 168px;
  aspect-ratio: 2 / 3;
  margin-left: 44px;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.top10-card img,
.poster-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top10-card strong,
.top10-card > span {
  margin-left: 44px;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.top10-card strong {
  color: #fff;
  font-size: 15px;
  font-weight: 920;
}

.top10-card > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 740;
}

.rail-section {
  padding-top: 30px;
  padding-bottom: 18px;
}

.rail-actions {
  display: none;
}

.section-more {
  flex: 0 0 auto;
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 850;
}

.section-more:hover {
  border-color: var(--line-2);
  color: #fff;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(164px, 1fr));
  gap: 16px;
  padding: 3px 2px 8px;
}

.poster-grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(184px, 1fr));
}

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

.poster-frame {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.poster-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 18px;
  background: linear-gradient(135deg, #222, #0d0d0f);
  color: var(--dim);
  font-size: 15px;
  font-weight: 900;
  text-align: center;
}

.poster-frame::after,
.top10-card a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 50%;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), transparent);
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.poster-frame:hover,
.top10-card a:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.48);
}

.poster-frame:hover::after,
.top10-card a:hover::after {
  opacity: 1;
}

.badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 3;
  min-width: 42px;
  height: 25px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 5px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #050505;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}

.play svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke-width: 0;
}

.poster-frame:hover .play,
.top10-card a:hover .play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.poster-info {
  display: grid;
  gap: 5px;
  padding-top: 10px;
}

.poster-info strong,
.poster-info span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.poster-info strong {
  color: #fff;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 920;
}

.poster-info span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 720;
}

.poster-info b {
  color: var(--gold);
}

.progress {
  display: block;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.progress em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--teal));
}

.page-shell {
  width: auto;
  max-width: none;
  margin-left: var(--sidew);
  margin-right: 0;
  padding: 38px var(--gutter) 28px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

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

.breadcrumb svg {
  width: 14px;
  height: 14px;
}

.page-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 950;
}

.catalog-head {
  padding: 8px 0 22px;
}

.catalog-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.catalog-title-row h1 {
  margin: 0;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.05;
  font-weight: 950;
}

.catalog-title-row em {
  min-width: 72px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--dim);
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.chips {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip,
.select-group a {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 850;
}

.chip:hover,
.select-group a:hover,
.chip.is-active,
.select-group a.is-active {
  border-color: rgba(255, 255, 255, 0.42);
  background: #fff;
  color: #050505;
}

.select-group {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
}

.catalog-grid {
  padding-bottom: 28px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0 8px;
}

.pagination a {
  min-width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--dim);
  font-size: 13px;
  font-weight: 900;
}

.pagination a:hover,
.pagination a.is-active {
  border-color: #fff;
  background: #fff;
  color: #050505;
}

.empty-state {
  min-height: 360px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}

.empty-state svg {
  width: 42px;
  height: 42px;
}

.empty-state p {
  margin: 0;
  color: var(--dim);
  font-size: 16px;
  font-weight: 850;
}

.empty-state a {
  height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 7px;
  background: #fff;
  color: #050505;
  font-size: 13px;
  font-weight: 900;
}

.watch-page {
  padding-bottom: 28px;
}

.watch-hero {
  position: relative;
  overflow: hidden;
}

.watch-backdrop {
  position: absolute;
  inset: 0 0 auto;
  height: 520px;
  z-index: -1;
  overflow: hidden;
  background: #080808;
}

.watch-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transform: scale(1.16);
  filter: saturate(1.05) contrast(1.05);
  opacity: 0.42;
}

.watch-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, #050505 0%, rgba(5, 5, 5, 0.68) 45%, rgba(5, 5, 5, 0.48) 100%),
    linear-gradient(90deg, #050505 0%, rgba(5, 5, 5, 0.72) 42%, rgba(5, 5, 5, 0.36) 100%);
}

.watch-shell,
.watch-block {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.watch-shell {
  padding-top: 42px;
}

.watch-player {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.55);
}

.watch-player::before {
  content: "";
  display: block;
  aspect-ratio: 16 / 9;
}

.watch-player iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-banner-area {
  width: 100%;
  display: grid;
  gap: 10px;
  margin: 15px 0 0;
}

.watch-player-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  background-size: cover;
  background-position: center 20%;
}

.watch-player-empty::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.48)),
    rgba(0, 0, 0, 0.46);
}

.player-play,
.watch-player-empty span {
  position: relative;
  z-index: 1;
}

.player-play {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #050505;
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.42);
}

.player-play svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
  stroke-width: 0;
}

.watch-player-empty span {
  color: var(--dim);
  font-size: 14px;
  font-weight: 900;
}

.watch-info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: start;
  padding: 26px 0 28px;
  border-bottom: 1px solid var(--line);
}

.watch-kicker {
  margin-bottom: 7px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 950;
}

.watch-info h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 1.06;
  font-weight: 950;
}

.watch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 13px;
  margin-bottom: 14px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 820;
}

.watch-meta .rating {
  color: var(--gold);
}

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

.genre-tags a {
  height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--dim);
  font-size: 13px;
  font-weight: 850;
}

.genre-tags a:hover {
  border-color: var(--line-2);
  color: #fff;
}

.watch-copy p {
  max-width: 880px;
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 16px;
  line-height: 1.75;
}

.watch-detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.watch-detail-list div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  color: var(--dim);
  font-size: 14px;
  font-weight: 760;
}

.watch-detail-list dt,
.watch-detail-list dd {
  margin: 0;
}

.watch-detail-list dt {
  color: var(--muted);
}

.watch-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.watch-actions .icon-only {
  min-width: 48px;
  padding: 0;
}

.watch-block {
  display: grid;
  gap: 14px;
  padding-top: 28px;
}

.watch-empty {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.watch-block-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.watch-block-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 950;
}

.watch-block-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.episode-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 9px;
}

.episode-item {
  min-width: 0;
  min-height: 56px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--dim);
}

.episode-item:hover,
.episode-item.is-active {
  border-color: rgba(255, 255, 255, 0.42);
  background: #fff;
  color: #050505;
}

.episode-item strong,
.episode-item span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.episode-item strong {
  font-size: 14px;
  font-weight: 920;
}

.episode-item span {
  font-size: 12px;
  font-weight: 760;
  opacity: 0.78;
}

.comment-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.comment-item {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.comment-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.comment-head strong {
  color: #fff;
  font-size: 14px;
  font-weight: 920;
}

.comment-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.comment-head em {
  margin-left: auto;
  color: var(--gold);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}

.comment-item p {
  margin: 0;
  color: var(--dim);
  font-size: 14px;
  line-height: 1.62;
}

.related-section {
  padding-top: 36px;
}

.site-footer {
  width: auto;
  max-width: none;
  margin: 38px 0 0 var(--sidew);
  padding: 30px var(--gutter) 40px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  transition: margin-left 0.2s var(--ease);
}

.site-footer strong {
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  font-weight: 800;
}

.site-footer a:hover {
  color: #fff;
}

.is-hidden-by-search {
  display: none !important;
}

@media (max-width: 1240px) {
  :root {
    --gutter: 30px;
  }

  .hero-inner {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 44px;
  }

  .hero h1 {
    font-size: 62px;
  }

  .hero-poster {
    width: 280px;
  }
}

@media (max-width: 920px) {
  :root {
    --topbar: 62px;
    --catbar: 0px;
    --gutter: 22px;
    --sidew: 0px;
  }

  .topbar {
    gap: 14px;
    padding: 0 16px;
  }

  .brand span:not(.brand-mark) {
    font-size: 20px;
  }

  .search {
    width: 44px;
    padding: 0;
    justify-content: center;
  }

  .search input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .account button:first-child {
    display: none;
  }

  .side-menu {
    top: var(--headerh);
    width: 204px;
    height: calc(100vh - var(--headerh));
    transform: translateX(-100%);
    box-shadow: 24px 0 60px rgba(0, 0, 0, 0.52);
  }

  body.menu-open .side-menu {
    transform: translateX(0);
  }

  body.menu-collapsed {
    --sidew: 0px;
  }

  body.menu-collapsed .side-menu-section {
    padding: 16px 14px;
    border-bottom: 1px solid #343434;
  }

  body.menu-collapsed .side-menu-section strong,
  body.menu-collapsed .side-menu-section a {
    justify-content: flex-start;
    min-height: 30px;
    gap: 10px;
  }

  body.menu-collapsed .side-menu-section.primary a {
    min-height: 44px;
  }

  body.menu-collapsed .side-menu-section span {
    display: inline;
  }

  body.menu-collapsed .side-menu-section a svg[data-lucide="minus"] {
    margin-left: 28px;
  }

  .site-banner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
  }

  .site-banner-strip {
    padding: 6px 4px 2px;
  }

  .hero {
    min-height: 680px;
  }

  .hero-inner {
    min-height: 680px;
    grid-template-columns: 1fr;
    align-items: start;
    padding-top: 48px;
    padding-bottom: 178px;
  }

  .hero h1 {
    font-size: 46px;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-poster {
    display: none;
  }

  .hero-menu {
    grid-template-columns: 1fr;
    bottom: 24px;
  }

  .hero-menu button {
    height: 62px;
  }

  .hero-menu img {
    width: 42px;
    height: 46px;
  }

  .top10-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .top10-card a {
    width: 146px;
    margin-left: 38px;
  }

  .top10-card > b {
    font-size: 86px;
  }

  .top10-card strong,
  .top10-card > span {
    margin-left: 38px;
  }

  .poster-grid,
  .poster-grid-wide {
    grid-template-columns: repeat(auto-fill, minmax(142px, 1fr));
    gap: 12px;
  }

  .page-shell {
    padding-top: 28px;
  }

  .catalog-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .select-group {
    flex-wrap: wrap;
  }

  .watch-shell,
  .watch-block {
    padding-left: var(--gutter);
    padding-right: var(--gutter);
  }

  .watch-info {
    grid-template-columns: 1fr;
  }

  .watch-actions {
    flex-wrap: wrap;
  }

  .comment-list {
    grid-template-columns: 1fr;
  }

  .poster-info strong {
    font-size: 15px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  :root {
    --gutter: 16px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
  }

  .account .avatar {
    display: none;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-meta {
    font-size: 13px;
  }

  .hero-buttons {
    gap: 8px;
  }

  .watch-button,
  .sub-button {
    height: 42px;
    min-width: 98px;
    padding: 0 13px;
    font-size: 14px;
  }

  .strip-head h2,
  .rail-head h2 {
    font-size: 21px;
  }

  .rail-actions {
    display: none;
  }

  .section-more {
    height: 32px;
    padding: 0 10px;
    font-size: 12px;
  }

  .catalog-title-row h1,
  .watch-info h1 {
    font-size: 32px;
  }

  .filter-bar {
    padding: 12px;
  }

  .chip,
  .select-group a,
  .genre-tags a {
    height: 31px;
    padding: 0 10px;
    font-size: 12px;
  }

  .watch-shell {
    padding-top: 22px;
  }

  .watch-player {
    margin-left: calc(var(--gutter) * -1);
    margin-right: calc(var(--gutter) * -1);
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .video-banner-area {
    gap: 7px;
    margin-left: calc(var(--gutter) * -1);
    width: calc(100% + (var(--gutter) * 2));
  }

  .player-play {
    width: 62px;
    height: 62px;
  }

  .player-play svg {
    width: 28px;
    height: 28px;
  }

  .watch-detail-list div {
    grid-template-columns: 62px minmax(0, 1fr);
  }

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

  .top10-card a,
  .top10-card strong,
  .top10-card > span {
    width: min(132px, calc(100% - 28px));
    margin-left: 28px;
  }

  .top10-card > b {
    left: -6px;
    font-size: 76px;
  }
}
