.desktop-view {
  --web-max: 1440px;
  --web-gutter: clamp(17px, 3.5vw, 56px);
  --web-width: min(calc(100% - var(--web-gutter) * 2), var(--web-max));
  background: #111015;
}
.desktop-view body { background: #111015; }
.desktop-view .shell { width: 100%; box-shadow: none; background: #111015; }
.desktop-view .web-bar {
  display: block;
  position: sticky;
  top: 0;
  z-index: 12;
  background: #151318f2;
  border-bottom: 1px solid #ffffff0f;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.web-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  width: var(--web-width);
  min-height: 68px;
  margin-inline: auto;
}
.web-lead, .web-tools, .web-nav { display: flex; align-items: center; }
.web-lead { gap: clamp(18px, 3vw, 49px); min-width: 0; }
.web-tools { flex: 0 1 460px; justify-content: flex-end; gap: 13px; }
.web-brand { display: inherit; flex: none; }
.web-brand .brand { font-size: 19px; letter-spacing: .015em; }
.web-brand .brand img { width: 36px; height: 36px; border-radius: 10px; }
.web-nav { gap: clamp(12px, 2.1vw, 33px); white-space: nowrap; }
.web-nav a, .web-nav button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: 0;
  padding: 8px 0;
  height: 68px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}
.web-nav a:hover, .web-nav button:hover { color: var(--text); }
.web-nav [aria-current="page"], .web-nav button.active { color: var(--gold-light); }
.web-nav [aria-current="page"]::after, .web-nav button.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 4px 4px 0 0;
  background: var(--gold);
}
.web-search {
  display: flex;
  align-items: center;
  min-width: 112px;
  width: min(100%, 300px);
  height: 39px;
  border: 1px solid #ffffff16;
  border-radius: 9px;
  background: #211e25;
  color: var(--muted);
}
.web-search:focus-within { border-color: #ffbd5980; }
.web-search input { flex: 1; width: 0; height: 100%; background: transparent; border: 0; padding-left: 11px; font-size: 12px; }
.web-search input:focus-visible { outline: none; }
.web-search button { display: grid; flex: 0 0 38px; place-items: center; height: 100%; padding: 0; border: 0; background: transparent; color: var(--muted); }
.web-search button:hover { color: var(--gold-light); }
.web-vip, .web-account {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 38px;
  color: var(--muted);
  padding-inline: 8px;
  font-size: 13px;
  font-weight: 700;
}
.web-vip { color: var(--gold-light); }
.web-vip.gold { padding-inline: 10px; border-radius: 8px; border: 1px solid #6b4b30; background: #31251e; }
.web-account:hover, .web-vip:hover { color: white; }
.desktop-view .homebar { display: none; }

.desktop-view .content, .desktop-view .subbar:not(.over), .desktop-view .searchbar {
  width: var(--web-width);
  margin-inline: auto;
  padding-inline: 0;
}
.desktop-view .subbar:not(.over), .desktop-view .searchbar {
  position: relative;
  top: auto;
  min-height: 78px;
  padding-top: 0;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.desktop-view .subbar:not(.over) { gap: 9px; }
.desktop-view .bar-title h1 { font-size: clamp(19px, 2vw, 27px); }
.desktop-view .bar-title small { font-size: 12px; }
.desktop-view .bar-right .text-button, .desktop-view .more-link { font-size: 13px; }
.desktop-view .searchbar form { flex: 0 1 670px; }
.desktop-view .searchbar form > button { margin-inline: 6px; }
.desktop-view .searchbar .search-field { min-height: 45px; padding-inline: 13px; }
.desktop-view #search-results > .section > .panel { max-width: 670px; }
.desktop-view .empty { min-height: 270px; }

.desktop-view .tag-strip {
  width: var(--web-width);
  margin: 0 auto;
  padding: 17px 1px 12px;
  gap: 9px;
}
.desktop-view .tag-strip .chip { padding-inline: 13px; }
.desktop-view .notice {
  width: var(--web-width);
  min-height: 35px;
  margin: 0 auto 13px;
  padding: 0 13px;
  font-size: 12px;
  gap: 11px;
}
.desktop-view .notice-window { -webkit-mask-image: none; mask-image: none; }
@media (min-width: 800px) {
  .desktop-view .notice-window > span { animation: none; }
  .desktop-view .notice-copy { display: none; }
}
.desktop-view .hero {
  position: relative;
  isolation: isolate;
  width: var(--web-width);
  margin-inline: auto;
  border: 1px solid #ffffff16;
  border-radius: 16px;
  background: #1b171d;
}
.desktop-view .hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, #0c0910ed, #0c0910d6 23%, #0c09108f 43%, #0c09101a 73%, transparent),
    linear-gradient(0deg, #0c0910b8, transparent 27%);
  pointer-events: none;
}
.desktop-view .hero-copy {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: clamp(16px, 4.1vw, 65px);
  transform: translateY(-50%);
  width: min(49%, 530px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}
.hero-copy .flag-row { gap: 8px; }
.hero-copy .badge { font-size: 11px; padding: 5px 7px; }
.featured-category { color: #e6dde0; font-size: 12px; }
.featured-category:hover { color: var(--gold-light); }
.hero-copy h1 {
  font-size: clamp(29px, 3.65vw, 56px);
  line-height: 1.17;
  letter-spacing: -.035em;
  font-weight: 850;
  margin: 14px 0 10px;
  overflow-wrap: anywhere;
}
.featured-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px; color: #eee5e8; font-size: 13px; }
.featured-meta strong { display: inline-flex; align-items: center; gap: 4px; color: var(--gold-light); font-variant-numeric: tabular-nums; }
.featured-meta span + span { padding-left: 12px; border-left: 1px solid #ffffff2c; }
.featured-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  color: #e3dce1;
  font-size: 14px;
  line-height: 1.8;
  margin: 15px 0 22px;
}
.featured-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.featured-actions .button { min-height: 43px; padding-inline: 14px; }
.featured-actions .primary { min-width: 124px; }
.featured-actions .secondary { background: #18141cbb; border-color: #ffffff37; }
.desktop-view .hero-track {
  z-index: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  height: clamp(350px, 32vw, 460px);
  outline-offset: -8px;
}
.desktop-view .hero-card {
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  opacity: 0;
  transform: none;
  filter: none;
  pointer-events: none;
  transition: opacity .36s ease;
}
.desktop-view .hero-card[data-slot="0"] { z-index: 1; opacity: 1; pointer-events: auto; box-shadow: none; }
.desktop-view .hero-card > img, .desktop-view .hero-card > video { object-fit: cover; object-position: center var(--hero-focus, 40%); }
.desktop-view .hero-card[data-clip$="/rain-city.mp4"],
.desktop-view .hero-card[data-clip$="/mist-sword.mp4"] { --hero-focus: 22%; }
.desktop-view .hero-card[data-clip$="/night-kitchen.mp4"] { --hero-focus: 28%; }
.desktop-view .hero-card::after,
.desktop-view .hero-card .hero-badges, .desktop-view .hero-card .hero-info { display: none; }
.desktop-view .hero-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 11px;
  transform: translateX(-50%);
  min-height: 26px;
  padding: 0 6px;
  gap: 3px;
}
.desktop-view .hero-dots button { padding: 8px 4px; }
.desktop-view .hero-dots button span { width: 6px; background: #f5ebf07d; }
.desktop-view .hero-dots button[aria-current="true"] span { width: 23px; }
.hero-paused .hero-dots button[aria-current="true"] span::after { animation-play-state: paused; }

.desktop-view .home-content { padding-top: 20px; }
.desktop-view .section-title { margin-bottom: 13px; }
.desktop-view .section-title h2 { font-size: 20px; }
.desktop-view .section + .section { margin-top: 28px; }
.desktop-view .cards { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 25px 15px; }
.desktop-view .drama-card h3 { font-size: 16px; margin-top: 9px; }
.desktop-view .drama-card p { color: var(--muted); font-size: 12px; min-height: 37px; }
.desktop-view .card-cover { border-radius: 9px; border: 1px solid #ffffff13; }
.desktop-view .card-tags span { font-size: 10px; }
.desktop-view .episodes-label { font-size: 11px; }
.desktop-view .footer {
  padding: 27px max(var(--web-gutter), calc((100% - var(--web-max)) / 2));
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px 32px;
  align-items: center;
}
.desktop-view .footer .brand { margin: 0; }
.desktop-view .footer nav { display: flex; flex-wrap: wrap; gap: 3px 19px; margin-left: auto; }
.desktop-view .footer > small { grid-column: 1 / -1; margin: 0; }
.desktop-view .tag-grid { gap: 10px; }
.desktop-view .count-chip { min-height: 37px; padding-inline: 14px; }
.desktop-view .discover .search-entry { display: none; }
.desktop-view .discover .discover-banner { height: clamp(185px, 22vw, 301px); padding: 24px; }
.desktop-view .discover .discover-banner img { object-position: 50% 30%; }
.desktop-view .rank-list { display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.desktop-view .rank-row { min-height: 72px; border-bottom: 1px solid #ffffff09; padding-inline: 14px; }
.desktop-view .rank-row:nth-child(odd) { border-right: 1px solid #ffffff09; }
.desktop-view .rank-row:nth-last-child(-n+2) { border-bottom: 0; }

.desktop-view .detail-page {
  display: grid;
  grid-template-columns: minmax(185px, 31%) minmax(0, 1fr);
  align-items: start;
  gap: clamp(18px, 3.2vw, 50px);
  width: var(--web-width);
  margin: clamp(18px, 3vw, 46px) auto 0;
  max-width: 1180px;
}
.desktop-view .detail-cover { height: auto; aspect-ratio: 3 / 4.2; border-radius: 14px; border: 1px solid #ffffff19; }
.desktop-view .detail-cover::after { background: linear-gradient(transparent 75%, #100f145d); }
.desktop-view .detail-content { width: 100%; margin: 0; padding-top: 5px; }
.desktop-view .detail-content h1 { font-size: clamp(27px, 3.4vw, 49px); margin: 10px 0; }
.desktop-view .detail-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.desktop-view .detail-actions > .button { min-width: 120px; }
.desktop-view .detail-content .cards.related { grid-template-columns: repeat(3, minmax(0, 172px)); }

.desktop-view body.is-player { overflow-y: auto; }
.desktop-view .watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 19px;
  width: var(--web-width);
  margin: 20px auto 30px;
}
.desktop-view .watch-layout.has-episode { grid-template-columns: minmax(0, 1fr) minmax(310px, 34%); }
.desktop-view .player-root {
  height: max(420px, calc(100vh - 118px));
  height: max(420px, calc(100dvh - 118px));
  max-height: 800px;
  min-width: 0;
  border-radius: 13px;
  border: 1px solid #ffffff14;
}
.desktop-view .player-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--watch-art) center/cover no-repeat;
  opacity: .16;
  filter: blur(37px);
}
.desktop-view .player-picture img, .desktop-view .player-picture video { object-fit: contain; }
.desktop-view .showing-video .player-picture > img { visibility: hidden; }
.desktop-view .player-shade { background: linear-gradient(#08070a96, transparent 20%, transparent 83%, #080709dd); }
.desktop-view .player-neighbor { background-size: auto 100%; background-repeat: no-repeat; background-color: #0d0c11; }
.desktop-view .player-top { padding-inline: 13px; }
.desktop-view .player-top-tools a[data-nav] { display: none; }
.desktop-view .player-bottom { inset: auto 18px 9px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 8px; }
.desktop-view .player-bottom .timeline { grid-column: 1 / -1; grid-row: 1; }
.desktop-view .progress-meta { grid-column: 1; grid-row: 2; justify-content: flex-start; gap: 9px; }
.desktop-view .progress-meta .desktop-play { display: grid; place-items: center; width: 32px; height: 32px; min-height: 32px; padding: 0; }
.desktop-view .progress-meta [data-player="quality"] { margin-left: auto; font-size: 12px; }
.desktop-view .player-episode-tools { display: contents; }
.desktop-view .fullscreen-button { grid-column: 2; grid-row: 2; width: 34px; height: 32px; min-height: 32px; margin-left: 0; }
.desktop-view .player-meta, .desktop-view .player-rail, .desktop-view .select-episode { display: none; }
.desktop-view #shell.player-fullscreen .select-episode { display: flex; grid-column: 1 / -1; grid-row: 3; margin-top: 6px; }
.desktop-view .watch-side {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 17px;
  border: 1px solid #ffffff13;
  border-radius: 13px;
  background: #1a171e;
}
.desktop-view .watch-side:empty { display: none; }
.watch-summary { display: flex; align-items: center; gap: 13px; min-width: 0; }
.watch-summary-cover { flex: 0 0 58px; width: 58px; height: 78px; }
.watch-summary-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; }
.watch-summary h2 { margin: 6px 0 4px; font-size: clamp(20px, 2vw, 26px); overflow-wrap: anywhere; }
.watch-summary p, .watch-description { color: var(--muted); line-height: 1.65; font-size: 13px; }
.watch-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
.watch-actions .player-action {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 2px;
  width: 100%;
  min-height: 41px;
  background: #24212a;
  border: 1px solid #ffffff0b;
  border-radius: 7px;
}
.watch-actions .player-action:hover { background: #2e2932; border-color: #ffffff24; }
.watch-actions .player-action svg { width: 17px; height: 17px; }
.watch-episodes { padding-top: 10px; border-top: 1px solid #ffffff12; }
.desktop-view .watch-episodes .section-title { margin-bottom: 8px; }
.desktop-view .watch-episodes .section-title h2 { font-size: 16px; }
.desktop-view .watch-episodes .episode { min-height: 38px; }

.desktop-view .personal {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 16px;
  max-width: 1030px;
  align-items: start;
}
.desktop-view .personal > * { margin: 0; }
.desktop-view .profile-person { grid-column: 1 / -1; padding: 16px; background: var(--panel); border: 1px solid #ffffff0d; border-radius: 14px; }
.desktop-view .vip-card, .desktop-view .wallet-card { grid-column: 1; padding: 19px; }
.desktop-view .personal .settings-list { grid-column: 2; grid-row: 2 / span 2; }
.desktop-view .personal .version { grid-column: 1 / -1; text-align: left; }
.desktop-view .settings { max-width: 900px; }
.desktop-view .auth { max-width: 430px; }
.desktop-view .info { max-width: 790px; }
.desktop-view [data-page="mylist"] .content, .desktop-view [data-page="purchases"] .content { max-width: 1040px; }
.desktop-view .store { min-height: calc(100vh - 69px); }
.desktop-view .store .content { max-width: 860px; }
.desktop-view .store-hero { margin-bottom: 22px; }
.desktop-view .store-hero h1 { font-size: 32px; }
.desktop-view .store .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.desktop-view .coins-store .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.desktop-view .store .plan { min-height: 81px; }
.desktop-view .store .checkout-cta { min-height: 48px; }
.desktop-view .layer:not(.drawer) { width: min(calc(100% - 28px), 550px); align-items: center; }
.desktop-view .layer:not(.drawer) .sheet { border-radius: 15px; border-bottom: 1px solid #ffffff15; box-shadow: 0 14px 55px #0007; }
.desktop-view .drawer { width: 100%; }
.desktop-view .drawer .sheet { width: min(310px, 88%); }
.desktop-view .ad-layer .sheet { min-height: 0; }

@media (max-width: 1080px) {
  .desktop-view .cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .web-bar-inner { gap: 12px; }
  .web-lead { gap: 18px; }
  .web-nav { gap: 14px; }
  .web-tools { gap: 5px; }
}
@media (max-width: 880px) {
  .desktop-view .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .desktop-view .watch-layout.has-episode { grid-template-columns: minmax(0, 1fr) minmax(270px, 37%); }
  .desktop-view .player-root { height: clamp(405px, 68vh, 730px); }
  .desktop-view .store .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
