:root {
  --page-bg: #f6f6f8;
  --shell-bg: #fff;
  --brand: #f58fbd;
  --brand-strong: #e85f9a;
  --brand-soft: #f7a2bd;
  --accent: #7c5cff;
  --gradient: linear-gradient(110deg, #f58fbd 0%, #e9a8c9 48%, #b9a7ee 100%);
  --text: #2b2b31;
  --muted: #85858f;
  --line: #f0edf0;
  --card: #ffffff;
  --shadow: 0 2px 8px #0000000d;
  --header-height: 92px;
  --app-width: 1200px;
}

* { box-sizing: border-box; }

html { background: #f3f3f5; }

body {
  margin: 0;
  color: var(--text);
  background: radial-gradient(circle at top, #fff2f7 0, #f6f6f8 340px, #ececf1 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.media-placeholder,
.video-card__thumb,
.detail-cover,
.home-slide,
.ad-has-image,
.ad-image-only {
  background:
    linear-gradient(135deg, #fff7fb 0%, #f2eefb 48%, #fff 100%);
}

.video-card__thumb::before,
.detail-cover::before,
.home-slide::after,
.ad-has-image::after,
.ad-image-only::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(100deg, #ffffff00 0%, #ffffff96 45%, #ffffff00 72%),
    linear-gradient(135deg, #ffe5ef, #eee9ff);
  background-size: 220% 100%, 100% 100%;
  pointer-events: none;
}

@keyframes mediaPlaceholder {
  from { background-position: 180% 0, 0 0; }
  to { background-position: -80% 0, 0 0; }
}

.app-header {
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  min-height: var(--header-height);
  color: #fff;
  background:
    linear-gradient(110deg, #f58fbd 0%, #e9a8c9 46%, #b9a7ee 100%);
  box-shadow: 0 14px 30px #e85f9a36, 0 2px 8px #00000018;
  backdrop-filter: saturate(180%) blur(20px);
  overflow: visible;
}

.app-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 7% 22%, #ffffff5c 0 54px, #0000 55px),
    radial-gradient(circle at 76% 8%, #ffffff38 0 120px, #0000 121px),
    radial-gradient(circle at 96% 70%, #7c5cff2e 0 150px, #0000 151px),
    linear-gradient(180deg, #ffffff26, #ffffff08 45%, #0000);
  pointer-events: none;
}

.app-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #ffffff55;
  pointer-events: none;
}

.app-header__inner {
  position: relative;
  z-index: 1;
  width: min(1400px, 100%);
  min-height: var(--header-height);
  margin: 0 auto;
  padding: 20px 32px;
  display: grid;
  grid-template-columns: auto 1fr minmax(170px, 230px) auto;
  grid-template-areas:
    "logo spacer search links";
  align-items: center;
  gap: 14px 22px;
}

.app-logo {
  grid-area: logo;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 210px;
  padding: 5px 12px 5px 6px;
  border: 1px solid #ffffff40;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #ffffff2e, #ffffff12);
  box-shadow: inset 0 1px 0 #ffffff45, 0 10px 24px #9e3b6d24;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .03em;
  line-height: 1;
  text-shadow: 0 2px 8px #8a245660;
  white-space: nowrap;
}

.app-logo__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: url("logo.png") center / contain no-repeat;
  box-shadow: 0 8px 18px #8a24562d;
}

.app-logo__mark::after {
  display: none;
}

.app-logo strong {
  display: block;
  font: inherit;
}

.app-nav {
  width: min(1600px, calc(100% - 12px));
  margin: 6px auto 0;
  display: grid;
  gap: 6px;
}

.app-nav__row {
  display: grid;
  grid-template-columns: 140px repeat(8, minmax(116px, 1fr));
  align-items: stretch;
  overflow: hidden;
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid #ffffffb8;
  background: linear-gradient(135deg, #fff, #fff7fb 55%, #f6f0ff);
  box-shadow: 0 10px 28px #7c5cff14, inset 0 1px 0 #fff;
}

.app-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 3px;
  padding: 7px 10px;
  border-radius: 10px;
  color: #595260;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
  background: #ffffffa8;
  box-shadow: inset 0 0 0 1px #f0dce7;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.app-nav__row > .app-nav__title {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 3px;
  padding: 7px 10px;
  border-radius: 10px;
  text-align: center;
  line-height: 1.25;
  box-shadow: 0 8px 18px #e85f9a24;
}

.app-nav__title,
.app-nav a.app-nav__title {
  color: #fff;
  background: var(--brand);
  font-size: 16px;
  font-weight: 900;
}

.app-nav a:not(.app-nav__title):hover {
  color: #fff;
  background: linear-gradient(110deg, #e85f9a, #7c5cff);
  box-shadow: 0 8px 18px #7c5cff26;
  transform: translateY(-1px);
}

.app-nav a.active:not(.app-nav__title) {
  color: #fff;
  background: linear-gradient(110deg, #e85f9a, #7c5cff);
  box-shadow: 0 6px 14px #7c5cff2e;
}

.app-nav a.app-nav__title.active {
  background: linear-gradient(110deg, #d94f8b, #e85f9a);
  box-shadow: inset 0 0 0 1px #ffffff4d;
}

.home-category-nav {
  margin: 0 auto 8px;
}

.site-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(1400px, 100%);
  margin: 0 auto 12px;
  padding: 9px 12px;
  overflow: hidden;
  border-radius: 12px;
  color: var(--brand-strong);
  background: #fff;
  box-shadow: 0 2px 8px #00000010;
}

.site-notice__label {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--gradient);
  font-size: 12px;
  font-weight: 900;
}

.site-notice__track {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.site-notice__track p {
  display: inline-block;
  margin: 0;
  padding-left: 100%;
  font-size: 14px;
  font-weight: 700;
  animation: noticeScroll 18s linear infinite;
}

.ad-slot:empty:not(.mobile-ad-marquee) {
  display: none;
}

.app-nav__ads {
  display: contents;
}

.ad-nav-text__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  margin: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--brand-strong);
  background: #fff;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
}

.ad-nav-text__item:hover {
  color: #fff;
  background: linear-gradient(110deg, #e85f9a, #7c5cff);
}

.ad-banner {
  width: min(1400px, 100%);
  margin: 0 auto 14px;
  display: grid;
  gap: 10px;
}

.ad-banner--bottom {
  margin: 0 auto 16px;
}

.ad-banner__item {
  position: relative;
  min-height: 82px;
  overflow: hidden;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 16px 18px;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 8px 20px #7c5cff1f;
}

.ad-media {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.ad-banner__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #00000042, #00000008);
}

.ad-banner__item > * {
  position: relative;
  z-index: 1;
}

.ad-banner__item.ad-has-image {
  background: #fff;
}

.ad-banner__item.ad-has-image::before {
  background: linear-gradient(90deg, #00000052, #00000010);
}

.ad-banner__item.ad-image-only {
  min-height: auto;
  aspect-ratio: auto;
  padding: 0;
  background: #fff;
}

.ad-banner__item.ad-image-only::before {
  display: none;
}

.ad-banner__item.ad-image-only .ad-media {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.ad-banner--bottom .ad-banner__item.ad-image-only {
  height: auto;
  min-height: auto;
}

.ad-banner--bottom .ad-banner__item.ad-image-only .ad-media {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.ad-banner__tag {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ffffff2e;
  font-size: 11px;
  font-weight: 900;
}

.ad-banner__item strong {
  font-size: 20px;
  font-weight: 900;
}

.ad-banner__item em {
  color: #fffdfdcc;
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
}

.ad-video-inline {
  min-width: 0;
}

.ad-video-card .ad-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.ad-video-card__thumb::after {
  z-index: 1;
}

.ad-icon {
  position: fixed;
  left: calc((100vw - var(--app-width)) / 2 - 92px);
  bottom: 86px;
  z-index: 990;
  display: grid;
  gap: 10px;
}

.ad-icon--right {
  right: calc((100vw - var(--app-width)) / 2 - 92px);
  left: auto;
}

.ad-icon__item {
  width: 76px;
  min-height: 76px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 6px;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 8px 20px #00000024;
  text-align: center;
}

.ad-icon__item.ad-has-image {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.ad-icon__item.ad-has-image .ad-media {
  object-fit: contain;
  padding: 3px;
}

.play-icon-ad-list {
  display: grid;
  grid-template-columns: repeat(13, minmax(0, 1fr));
  justify-content: start;
  gap: 10px;
  padding: 0 12px 12px;
}

.play-icon-ad-list:not(.has-ads) {
  display: none;
}

.play-icon-ad-list .ad-icon__item {
  width: 100%;
  height: 74px;
  min-height: 74px;
  border-radius: 10px;
  box-shadow: 0 6px 14px #0000001c;
}

.play-icon-ad-list .ad-icon__item.ad-has-image .ad-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}

.ad-icon__item span {
  font-size: 18px;
  font-weight: 900;
}

.ad-icon__item em {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
}

.ad-icon__item.ad-has-image em {
  position: relative;
  z-index: 1;
  align-self: end;
  width: 100%;
  padding: 2px 3px;
  border-radius: 999px;
  color: #fff;
  background: #00000066;
}

@media (min-width: 769px) and (max-width: 1390px) {
  .ad-icon {
    display: none;
  }
}

@keyframes noticeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.header-vip {
  grid-area: vip;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  color: var(--brand-strong);
  background: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 10px 20px #c86f952a;
}

.header-links {
  grid-area: links;
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-links > .mobile-search-trigger {
  display: none;
}

.mobile-search-trigger__icon {
  margin-right: 3px;
  font-size: 12px;
  line-height: 1;
}

.header-links > a,
.header-link-menu > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--brand-strong);
  background: #ffffffeb;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 6px 14px #c86f951c;
}

.header-links > a:hover,
.header-link-menu:hover > a,
.header-link-menu:focus-within > a {
  color: #fff;
  background: linear-gradient(90deg, #e85f9a, #7c5cff);
}

.header-link-menu {
  position: relative;
}

.header-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 1200;
  display: none;
  min-width: 148px;
  padding: 8px;
  border-radius: 14px;
  background: #fffffff2;
  box-shadow: 0 12px 28px #00000026;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.header-dropdown::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -6px;
  width: 12px;
  height: 12px;
  background: #fffffff2;
  transform: translateX(-50%) rotate(45deg);
}

.header-link-menu:hover .header-dropdown,
.header-link-menu:focus-within .header-dropdown {
  display: grid;
  gap: 5px;
}

.header-dropdown a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 10px;
  color: #666;
  background: transparent;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.header-dropdown a:hover {
  color: var(--brand-strong);
  background: #fff;
}

.app-search, .hero-search {
  grid-area: search;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 999px;
  background: #ffffffef;
  box-shadow: 0 8px 18px #c86f951c;
}

.app-search input, .hero-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 11px 13px;
  color: var(--text);
  background: transparent;
}

.app-search button, .hero-search button {
  flex: 0 0 auto;
  border: 0;
  padding: 11px 15px;
  color: #fff;
  background: linear-gradient(90deg, #e85f9a, #7c5cff);
  cursor: pointer;
}

.app-main {
  width: min(var(--app-width), 100%);
  margin: 0 auto;
  padding: 8px 16px 2px;
  display: flex;
  flex-direction: column;
  background: var(--page-bg);
  min-height: 100vh;
  box-shadow: 0 0 0 1px #ffffff80;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 420px);
  align-items: center;
  gap: 28px;
  margin-bottom: 18px;
  padding: 26px;
  color: #fff;
  border-radius: 18px;
  background: var(--gradient);
  box-shadow: 0 10px 30px #7c5cff24;
  position: relative;
  overflow: hidden;
}

.hero-panel::before, .hero-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #ffffff24;
}

.hero-panel::before { width: 160px; height: 160px; right: -48px; top: -54px; }
.hero-panel::after { width: 92px; height: 92px; left: 45%; bottom: -42px; }
.hero-panel > * { position: relative; z-index: 1; }

.hero-panel h1 {
  margin: 10px 0 8px;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1.15;
}

.hero-panel p { margin: 0; color: #fffdfdcc; }

.hero-panel__badge {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #ffffff2e;
}

.home-slider {
  position: relative;
  overflow: hidden;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--gradient);
  box-shadow: 0 12px 28px #7c5cff24;
}

.home-slider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.home-slider__track::-webkit-scrollbar {
  display: none;
}

.home-slide {
  position: relative;
  flex: 0 0 100%;
  aspect-ratio: 5 / 2;
  min-height: 0;
  overflow: hidden;
  scroll-snap-align: start;
  color: #fff;
  background: #fff;
}

.home-slide::before {
  display: none;
}

.home-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(1.05);
}

.home-slide .ad-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.home-slide__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, #00000000, #00000026);
}

.home-slide__tag {
  position: absolute;
  left: 24px;
  top: 24px;
  z-index: 3;
  padding: 5px 14px;
  border-radius: 999px;
  background: #ffffff2e;
  font-size: 12px;
  font-weight: 900;
}

.home-slide__info {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 3;
  display: grid;
  gap: 8px;
}

.home-slide__info strong {
  max-width: 720px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.1;
  font-weight: 900;
  text-shadow: 0 3px 10px #0000004d;
}

.home-slide__info em {
  font-style: normal;
  color: #fffdfdcc;
  font-size: 15px;
  font-weight: 800;
}

.home-slider__dots {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 4;
  display: flex;
  gap: 7px;
}

.home-slider__dots button {
  width: 8px;
  height: 8px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: #ffffff80;
  cursor: pointer;
}

.home-slider__dots button.active {
  width: 24px;
  background: #fff;
}

.quick-panel {
  margin-bottom: 18px;
  padding: 12px;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}

.quick-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.quick-tabs::-webkit-scrollbar { display: none; }

.quick-tabs a {
  flex: 0 0 auto;
  min-width: 64px;
  padding: 9px 14px;
  border-radius: 999px;
  color: #666;
  background: #f7f7f8;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.quick-tabs a.active {
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 6px 14px #7c5cff2a;
}

.notice-strip {
  margin-top: 4px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--brand-strong);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
}

.section-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 15px;
  background: var(--card);
  box-shadow: 0 1px 4px #0000000f;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.section-head--wrap { align-items: flex-end; flex-wrap: wrap; }

.section-head h1, .section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.section-head h1::before, .section-head h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 18px;
  margin-right: 8px;
  border-radius: 999px;
  vertical-align: -3px;
  background: var(--gradient);
}

.section-head > a {
  color: var(--brand-strong);
  font-size: 14px;
  font-weight: 700;
}

.filter-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.filter-tabs a {
  position: relative;
  padding: 8px 4px;
  color: #666;
  white-space: nowrap;
}

.filter-tabs a.active { color: var(--brand-soft); font-weight: 800; }
.filter-tabs a.active::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--brand-soft);
}

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

.video-card {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}

.video-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px #00000014;
}

.video-card__thumb {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 0;
  background: #f1f1f1;
}

.video-card__thumb::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  background: linear-gradient(#0000, #00000080);
}

.video-card__thumb img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-card__badge, .video-card__meta, .video-card__duration, .detail-cover span {
  position: absolute;
  z-index: 2;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.video-card__badge {
  top: 0;
  left: 0;
  right: auto;
  padding: 4px 12px;
  border-radius: 0 0 8px 0;
  background: linear-gradient(90deg, #e85f9a, #7c5cff);
}

.video-card__meta {
  left: 5px;
  bottom: 5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #1f2937bf;
}

.video-card__duration {
  right: 5px;
  bottom: 5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #000000b3;
}

.video-card h3 {
  margin: 6px 8px 4px;
  font-size: 14px;
  line-height: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card p {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin: 0 8px 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.video-card p span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--brand-strong);
}

.detail-panel {
  display: grid;
  grid-template-columns: 280px 1fr;
  align-items: start;
  gap: 18px;
  padding: 14px;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}

.detail-cover {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 6px;
  border: 1px solid #f3dce7;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff, #fff7fb);
  box-shadow: 0 12px 28px #8a245614;
}

.detail-cover img { position: relative; z-index: 1; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.detail-cover span { left: 8px; bottom: 8px; padding: 4px 8px; border-radius: 5px; background: #1f2937bf; }

.detail-info h1, .player-info h1 {
  margin: 0 0 7px;
  font-size: clamp(22px, 3vw, 32px);
}

.detail-tags, .player-info p { color: var(--brand-strong); font-weight: 700; }

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.detail-meta-grid p {
  min-width: 0;
  margin: 0;
  padding: 7px 8px;
  border: 1px solid #f3dce7;
  border-radius: 10px;
  background: #fff7fb;
}

.detail-meta-grid span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.detail-meta-grid em {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-meta-grid__wide {
  grid-column: span 3;
}

.detail-desc-card {
  margin-top: 14px;
}

.detail-desc {
  display: -webkit-box;
  max-height: 8.8em;
  margin: 0;
  overflow: hidden;
  color: #555;
  line-height: 1.76;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 160px;
  margin-top: 10px;
  padding: 10px 24px;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  background: var(--gradient);
  box-shadow: 0 8px 20px #7c5cff24;
}

.episode-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.episode-list a, .page-list a, .page-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 20px;
  border: 1px solid #ffe0ea;
  color: var(--brand-strong);
  background: #fff7fa;
  font-size: 14px;
  font-weight: 700;
}

.player-panel {
  overflow: hidden;
  border-radius: 15px;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.player-box iframe,
.player-box video,
.player-box embed,
.player-box object,
.player-box #player,
.player-box #MacPlayer,
.player-box .MacPlayer,
.player-box .player,
.player-box > div {
  width: 100% !important;
  height: 100% !important;
}

.player-box iframe {
  border: 0;
}
.player-info { padding: 16px; }
.player-info h1 { font-size: 22px; }
.player-info p { margin: 0; }

.play-source-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #fff;
  background:
    linear-gradient(135deg, #ffffff 0%, #fff7fb 48%, #f5f2ff 100%);
  box-shadow: 0 10px 26px #e85f9a14, inset 0 1px 0 #ffffffd9;
}

.source-label {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 6px 16px #7c5cff14;
  font-size: 14px;
  font-weight: 800;
}

.source-tab-list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}

.source-tab-list::-webkit-scrollbar {
  display: none;
}

.source-tab {
  flex: 0 0 auto;
  min-width: 72px;
  border: 0;
  padding: 8px 14px;
  border-radius: 999px;
  color: #666;
  background: #f7f7f8;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.source-tab.active {
  color: #fff;
  background: linear-gradient(110deg, #e85f9a, #7c5cff);
  box-shadow: 0 6px 14px #7c5cff2e;
}

.source-panel {
  display: flex;
  flex: 0 0 auto;
}

.source-panel.active {
  display: flex;
}

.source-panel + .source-panel {
  margin-top: 0;
}

.play-source-card .section-head {
  margin-bottom: 8px;
  padding-bottom: 6px;
}

.play-source-card .section-head h2 {
  font-size: 16px;
}

.play-source-card .episode-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-right: 0;
}

.play-source-card .episode-list a {
  min-height: 32px;
  padding: 5px 10px;
  border-color: #ffffffc9;
  color: #d94b8a;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #ffd2e3, #d8ceff) border-box;
  box-shadow: 0 7px 16px #e85f9a18;
  font-size: 13px;
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease;
}

.play-source-card .episode-list a:hover {
  transform: translateY(-1px);
  color: #fff;
  background: linear-gradient(110deg, #e85f9a, #7c5cff);
  box-shadow: 0 10px 20px #7c5cff2e;
}

.play-source-card .episode-list a.active {
  color: #fff;
  background: linear-gradient(110deg, #e85f9a, #7c5cff);
  box-shadow: 0 10px 20px #7c5cff2e;
}

.detail-source-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #fff;
  background:
    linear-gradient(135deg, #ffffff 0%, #fff7fb 48%, #f5f2ff 100%);
  box-shadow: 0 10px 26px #e85f9a14, inset 0 1px 0 #ffffffd9;
}

.detail-source-card .section-head {
  margin-bottom: 8px;
  padding-bottom: 6px;
}

.detail-source-card .section-head h2 {
  font-size: 16px;
}

.detail-source-card .episode-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-right: 0;
}

.detail-source-card .episode-list a {
  min-height: 32px;
  padding: 5px 10px;
  border-color: #ffffffc9;
  color: #d94b8a;
  background:
    linear-gradient(#fff, #fff) padding-box,
    linear-gradient(120deg, #ffd2e3, #d8ceff) border-box;
  box-shadow: 0 7px 16px #e85f9a18;
  font-size: 13px;
  transition: transform .18s ease, box-shadow .18s ease, color .18s ease;
}

.detail-source-card .episode-list a:hover {
  transform: translateY(-1px);
  color: #fff;
  background: linear-gradient(110deg, #e85f9a, #7c5cff);
  box-shadow: 0 10px 20px #7c5cff2e;
}

.page-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.app-footer {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 8px 16px 8px;
  color: var(--muted);
  text-align: center;
}

.mobile-ad-marquee {
  position: fixed;
  left: 0;
  right: auto;
  bottom: 0;
  z-index: 999;
  display: none;
  width: 100vw;
  min-height: calc(78px + env(safe-area-inset-bottom, 0px));
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
  overflow: hidden;
  transform: none;
  border-top: 1px solid #e8e8e8;
  background: #fff;
  box-shadow: 0 -2px 10px #0000000a;
}

.mobile-ad-marquee:not(.has-ads) {
  display: none;
}

.mobile-ad-marquee.has-ads {
  display: block;
}

.mobile-ad-marquee__track {
  display: flex;
  width: max-content;
  gap: 10px;
  padding: 0 10px;
  will-change: transform;
  -webkit-animation: mobileAdMarquee 40s linear infinite;
  animation: mobileAdMarquee 40s linear infinite;
}

.mobile-ad-marquee:hover .mobile-ad-marquee__track {
  animation-play-state: paused;
}

.mobile-ad-marquee .ad-icon__item {
  flex: 0 0 auto;
  width: 68px;
  height: 62px;
  min-height: 62px;
  border-radius: 10px;
  box-shadow: 0 6px 14px #0000001c;
}

.mobile-ad-marquee .ad-icon__item.ad-has-image .ad-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
}

.mobile-ad-marquee .ad-icon__item em {
  font-size: 10px;
}

@keyframes mobileAdMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@-webkit-keyframes mobileAdMarquee {
  from { -webkit-transform: translateX(0); transform: translateX(0); }
  to { -webkit-transform: translateX(-50%); transform: translateX(-50%); }
}

.float-menu {
  position: fixed;
  right: max(18px, calc((100vw - var(--app-width)) / 2 + 18px));
  bottom: 86px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 6px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 3px 6px 15px -2px #0000001f;
}

.float-menu a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--gradient);
  font-size: 13px;
  font-weight: 800;
}

.ad-popup {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ad-popup.show {
  display: flex;
}

.ad-popup__mask {
  position: absolute;
  inset: 0;
  background: #00000073;
  backdrop-filter: blur(6px);
}

.ad-popup__box {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  overflow: hidden;
  border-radius: 24px;
  background: var(--gradient);
  box-shadow: 0 24px 60px #0000004d;
  animation: popupIn .24s ease-out;
}

.ad-popup__box.ad-has-image {
  background: #fff;
}

.ad-popup__box.ad-image-only {
  overflow: visible;
  width: min(320px, calc(100vw - 48px));
  aspect-ratio: 1 / 1;
  border-radius: 18px;
}

.ad-popup__box.ad-image-only .ad-popup__close {
  top: -16px;
  right: -16px;
}

.ad-popup__image-link {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  background: #fff;
}

.ad-popup__box.ad-has-image .ad-media {
  object-fit: contain;
}

.jgg-popup__box {
  position: relative;
  width: min(390px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 120px));
  overflow: visible;
  padding: 0;
  border-radius: 18px;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-shadow: 0 24px 70px #00000066;
}

.jgg-popup__box::before {
  display: none;
}

.jgg-popup__scroll {
  position: absolute;
  top: 32%;
  right: 5%;
  bottom: 3%;
  left: 5%;
  overflow-y: auto;
  padding: 4px 0 8px;
  background: transparent;
  scrollbar-width: none;
}

.jgg-popup__scroll::-webkit-scrollbar {
  display: none;
}

.jgg-popup__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px 8px;
}

.jgg-popup__item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: #333;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
}

.jgg-popup__icon {
  display: block;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border-radius: 12px;
  background: transparent;
}

.jgg-popup__icon .ad-media {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jgg-popup__item em {
  display: block;
  width: 100%;
  overflow: hidden;
  color: #333;
  font-style: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ad-popup__box::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 18%, #ffffff4d 0 48px, #0000 49px),
    radial-gradient(circle at 82% 8%, #ffffff36 0 88px, #0000 89px),
    linear-gradient(180deg, #ffffff22, #0000);
  pointer-events: none;
}

.ad-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  color: var(--brand-strong);
  background: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px #c86f9526;
}

.ad-popup__close.jgg-popup__close {
  top: auto;
  right: auto;
  bottom: -48px;
  left: 50%;
  z-index: 20;
  width: 38px;
  height: 38px;
  padding: 0;
  align-items: center;
  justify-items: center;
  transform: translateX(-50%);
  color: #fff;
  background: #00000080;
  box-shadow: 0 6px 18px #00000038;
  font-size: 30px;
  line-height: 34px;
  font-family: Arial, sans-serif;
}

.ad-popup__link {
  position: relative;
  z-index: 2;
  display: block;
  color: #fff;
}

.ad-popup__content {
  min-height: 260px;
  padding: 44px 28px 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  background: linear-gradient(180deg, #0000, #00000030);
}

.ad-popup__tag {
  align-self: flex-start;
  padding: 5px 14px;
  border-radius: 999px;
  background: #ffffff2e;
  font-size: 12px;
  font-weight: 900;
}

.ad-popup__content strong {
  font-size: 28px;
  line-height: 1.2;
  font-weight: 900;
  text-shadow: 0 3px 10px #00000040;
}

.ad-popup__content em {
  color: #fffdfdcc;
  font-style: normal;
  font-size: 14px;
  font-weight: 800;
}

.route-notice-popup__box {
  width: min(390px, calc(100vw - 24px));
  border: 1px solid #ffffff5c;
  background:
    linear-gradient(145deg, #fff 0%, #fff7fb 46%, #f4f0ff 100%);
  box-shadow: 0 28px 70px #00000052, inset 0 1px 0 #fff;
}

.route-notice-popup__box::before {
  background:
    radial-gradient(circle at 10% 8%, #ff8fbd30 0 86px, #0000 87px),
    radial-gradient(circle at 90% 12%, #7c5cff24 0 112px, #0000 113px),
    linear-gradient(180deg, #ffffff80, #0000 58%);
}

.route-notice-popup__content {
  position: relative;
  z-index: 2;
  padding: 26px 16px 16px;
  color: var(--text);
}

.route-notice-popup__badge {
  width: max-content;
  margin: 0 auto 7px;
  padding: 4px 10px;
  border: 1px solid #ffd3e5;
  border-radius: 999px;
  color: #d94f8b;
  background: #fff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  box-shadow: 0 8px 18px #d94f8b14;
}

.route-notice-popup__content strong {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-strong);
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
  text-align: center;
}

.route-notice-popup__content p {
  margin: 0 0 9px;
  color: #d94f8b;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.route-notice-popup__section {
  margin-top: 7px;
  padding: 9px;
  border: 1px solid #ffffffb8;
  border-radius: 14px;
  background: #ffffffb8;
  box-shadow: 0 10px 24px #8a245612;
}

.route-notice-popup__section b {
  display: block;
  margin: 0 0 6px;
  color: #7c5cff;
  font-size: 12px;
  font-weight: 900;
}

.route-notice-popup__section--email b {
  color: var(--brand-strong);
}

.route-notice-popup__section--permanent {
  border-color: #dcd5ff;
  background: linear-gradient(135deg, #f7f4ff, #fff);
}

.route-notice-popup__section--permanent b {
  color: #7c5cff;
}

.route-notice-popup__content ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.route-notice-popup__content li {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 6px;
  padding: 7px 8px;
  border: 1px solid #f4dce8;
  border-radius: 11px;
  background: linear-gradient(90deg, #fff7fb, #fff);
}

.route-notice-popup__content li span {
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 900;
}

.route-notice-popup__content li a,
.route-notice-popup__content li em {
  min-width: 0;
  overflow: hidden;
  color: #333;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-notice-popup__content small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}

@keyframes popupIn {
  from { opacity: 0; transform: translateY(12px) scale(.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 980px) {
  .app-header__inner {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "logo search search"
      "links links links";
  }
  .app-search { grid-area: search; }
  .header-links { justify-content: center; gap: 5px; }
  .header-links > a,
  .header-link-menu > a { height: 34px; padding: 0 12px; font-size: 12px; }
  .app-nav {
    width: calc(100% - 20px);
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .app-nav::-webkit-scrollbar { display: none; }
  .app-nav__row {
    grid-template-columns: 104px repeat(8, 112px);
    width: max-content;
    min-width: 100%;
  }
  .app-nav a { font-size: 14px; }
  .app-nav__title,
  .app-nav a.app-nav__title { font-size: 15px; }
  .app-main { padding-top: 14px; }
  .detail-cover img { aspect-ratio: 16 / 9; }
  .hero-panel { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .episode-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  :root { --header-height: 78px; --app-width: 100%; }
  html, body { background: var(--page-bg); }
  .app-header { box-shadow: 0 10px 22px #e85f9a30; }
  .app-header { backdrop-filter: none; }
  .app-header__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "logo links"
      "search search";
    gap: 6px;
    padding: 8px 8px;
  }
  .app-logo { min-width: 0; padding: 4px 7px 4px 4px; border-radius: 13px; font-size: 18px; font-weight: 800; gap: 6px; }
  .app-logo__mark { width: 30px; height: 30px; border-radius: 10px; font-size: 14px; }
  .app-logo__mark::after { right: 5px; top: 5px; width: 4px; height: 4px; }
  .header-vip { height: 34px; padding: 0 13px; margin-left: auto; font-size: 12px; }
  .header-links { min-width: 0; gap: 1px; justify-content: flex-end; }
  .header-links > a,
  .header-link-menu { flex: 1; min-width: 0; }
  .header-link-menu > a { width: 100%; height: 26px; padding: 0 1px; font-size: 10px; font-weight: 800; }
  .header-links > a { flex: 1; height: 26px; padding: 0 1px; font-size: 10px; font-weight: 800; }
  .header-links > .mobile-search-trigger { display: inline-flex; }
  .header-dropdown { left: 0; right: 0; min-width: 0; transform: none; }
  .header-dropdown::before { left: 50%; }
  .app-nav { width: calc(100% - 16px); gap: 3px; margin-top: 5px; overflow-x: visible; }
  .site-notice { width: calc(100% - 16px); margin-bottom: 8px; padding: 8px 10px; border-radius: 10px; }
  .site-notice__track p { font-size: 12px; animation-duration: 14s; }
  .ad-nav-text__item { min-height: 38px; margin: 2px; padding: 4px 2px; border-radius: 8px; font-size: 12px; line-height: 1.08; }
  .ad-banner { width: calc(100% - 16px); margin-bottom: 10px; gap: 8px; }
  .ad-banner__item { min-height: 66px; border-radius: 12px; padding: 12px; }
  .ad-banner__item.ad-image-only { min-height: auto; aspect-ratio: auto; padding: 0; }
  .ad-banner--bottom .ad-banner__item.ad-image-only { height: 66px; min-height: 66px; }
  .ad-banner__item strong { font-size: 16px; }
  .ad-banner__item em { font-size: 12px; }
  .ad-video-square { width: calc(100% - 16px); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
  .ad-video-square__item { border-radius: 10px; padding: 9px; }
  .ad-video-square__item strong { font-size: 13px; }
  .ad-video-square__item em { font-size: 11px; }
  .ad-icon { left: 10px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
  .ad-icon--right { right: 10px; left: auto; bottom: calc(180px + env(safe-area-inset-bottom, 0px)); }
  .ad-icon__item { width: 58px; min-height: 58px; border-radius: 16px; }
  .ad-icon__item em { font-size: 10px; }
  .app-nav__row {
    grid-template-columns: 64px repeat(4, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    min-height: 34px;
    overflow: visible;
  }
  .app-nav a { min-height: 32px; margin: 1px; padding: 3px 2px; border-radius: 8px; font-size: 12px; font-weight: 700; line-height: 1.05; }
  .app-nav__row > .app-nav__title { min-height: 32px; margin: 1px; padding: 3px 2px; border-radius: 8px; line-height: 1.05; }
  .app-nav__title,
  .app-nav a.app-nav__title { grid-row: 1 / span 2; font-size: 12px; font-weight: 800; }
  .home-category-nav { max-height: none; margin-bottom: 4px; overflow: visible; }
  .app-search { display: none; grid-area: search; height: 34px; }
  .app-header.search-open .app-search { display: flex; }
  .app-search input { height: 34px; padding: 0 10px; font-size: 13px; }
  .app-search button { height: 34px; min-width: 58px; padding: 0 10px; font-size: 13px; }
  .app-main { padding: 5px 10px 6px; }
  .home-slider { margin-bottom: 12px; border-radius: 15px; }
  .home-slide { aspect-ratio: 5 / 2; min-height: 0; }
  .home-slide__tag { left: 14px; top: 14px; padding: 4px 10px; }
  .home-slide__info { left: 14px; right: 14px; bottom: 16px; gap: 5px; }
  .home-slide__info strong { font-size: 22px; }
  .home-slide__info em { font-size: 12px; }
  .home-slider__dots { right: 14px; bottom: 14px; }
  .hero-panel { padding: 18px; border-radius: 15px; margin-bottom: 12px; }
  .hero-panel h1 { font-size: 24px; }
  .hero-search { display: none; }
  .quick-panel { margin-bottom: 12px; padding: 10px; }
  .quick-tabs a { min-width: 58px; padding: 8px 12px; font-size: 13px; }
  .notice-strip { font-size: 12px; }
  .section-card { padding: 12px; border-radius: 12px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 10px; }
  .video-card { padding: 0; border-radius: 7px; }
  .video-card h3 { margin: 5px 7px 3px; font-size: 12px; line-height: 14px; -webkit-line-clamp: 1; }
  .video-card p { font-size: 10px; line-height: 1.1; }
  .detail-panel { grid-template-columns: 1fr; gap: 12px; padding: 12px; }
  .detail-cover { width: 100%; margin: 0 auto; }
  .detail-cover img { aspect-ratio: 16 / 9; }
  .detail-info { text-align: center; }
  .detail-meta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .detail-meta-grid p { padding: 7px 8px; border-radius: 10px; }
  .detail-meta-grid span { margin-bottom: 2px; font-size: 11px; }
  .detail-meta-grid em { font-size: 12px; }
  .detail-meta-grid__wide { grid-column: span 3; }
  .detail-desc { -webkit-line-clamp: 5; }
  .episode-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .float-menu { right: 10px; bottom: 76px; }
  .mobile-ad-marquee { box-shadow: none; }
  .mobile-ad-marquee .ad-icon__item { box-shadow: none; }
  .ad-popup__mask { backdrop-filter: none; }
  .ad-popup { padding: 18px; }
  .ad-popup__box { border-radius: 20px; }
  .ad-popup__content { min-height: 230px; padding: 42px 22px 26px; }
  .ad-popup__content strong { font-size: 24px; }
  .play-source-card,
  .detail-source-card { gap: 4px; padding: 8px; }
  .source-label { min-height: 28px; padding: 0 7px; font-size: 12px; }
  .play-icon-ad-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; padding: 0 8px 8px; }
  .play-icon-ad-list .ad-icon__item { height: 74px; min-height: 74px; }
  .play-source-card .episode-list,
  .detail-source-card .episode-list { display: flex; gap: 4px; }
  .play-source-card .episode-list a,
  .detail-source-card .episode-list a { min-height: 28px; padding: 4px 7px; border-radius: 14px; font-size: 12px; box-shadow: 0 4px 10px #e85f9a14; }
}

@media (max-width: 380px) {
  .detail-cover { width: 100%; }
  .episode-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .play-source-card,
  .detail-source-card { gap: 3px; padding: 7px; }
  .source-label { padding: 0 6px; font-size: 11px; }
  .play-source-card .episode-list,
  .detail-source-card .episode-list { display: flex; gap: 3px; }
  .play-source-card .episode-list a,
  .detail-source-card .episode-list a { padding: 4px 6px; font-size: 11px; }
}
