* {
  box-sizing: border-box;
}

:root {
  --hero-color: #cf3a25;
  --hero-soft: #f18443;
  --bg: #1f1f1f;
  --panel: #292929;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f6f6f6;
  --muted: #aaa;
  --red: #ff3730;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Arial, "Microsoft YaHei", sans-serif;
  background: var(--bg);
}

body.light-mode {
  --bg: #f5f5f5;
  --panel: #ffffff;
  --line: rgba(0, 0, 0, 0.1);
  --text: #1e1e1e;
  --muted: #666;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  padding-bottom: 128px;
  overflow-x: hidden;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 26px clamp(18px, 5vw, 64px) 28px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(31, 31, 31, 0.16) 64%, var(--bg) 100%),
    linear-gradient(115deg, var(--hero-color) 0%, var(--hero-soft) 48%, #242424 100%);
  transition: background 0.45s ease;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg));
}

.topbar,
.search-row,
.hero-main,
.content {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: clamp(118px, 18vw, 172px);
  min-width: 118px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-btn,
.menu-btn,
.float-tools button {
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.icon-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  font-size: 20px;
}

.search-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.menu-btn {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 10px;
  border-radius: 12px;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 999px;
  background: #fff;
}

.search-box {
  display: flex;
  flex: 1;
  align-items: center;
  min-width: 0;
  height: 56px;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.search-box span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 28px;
  line-height: 1;
}

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

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  min-height: 360px;
  margin-top: 22px;
}

.carousel {
  position: relative;
  height: clamp(290px, 42vw, 460px);
  perspective: 900px;
}

.slide {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(62%, 340px);
  aspect-ratio: 0.72;
  transform: translate(-50%, -50%) scale(0.78);
  opacity: 0.42;
  transition: transform 0.45s ease, opacity 0.45s ease, filter 0.45s ease;
  filter: saturate(0.75) brightness(0.72);
}

.slide.is-active {
  z-index: 3;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  filter: saturate(1) brightness(1);
}

.slide.is-prev {
  z-index: 1;
  transform: translate(-104%, -50%) rotateY(8deg) scale(0.9);
}

.slide.is-next {
  z-index: 1;
  transform: translate(4%, -50%) rotateY(-8deg) scale(0.9);
}

.slide-poster,
.cover {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
}

.slide-poster::before,
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.74));
}

.slide-poster::after {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  color: #fff;
  font-weight: 700;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  white-space: pre-line;
}

.poster-red {
  background-image: linear-gradient(160deg, rgba(255, 40, 31, 0.72), rgba(255, 176, 58, 0.28)), url("../img/banner-1.jpg");
}

.poster-red::after {
  content: "南部檔案\A 今日新劇";
  font-size: clamp(24px, 4vw, 42px);
}

.poster-brown {
  background-image: linear-gradient(160deg, rgba(58, 34, 30, 0.15), rgba(176, 106, 68, 0.32)), url("../img/banner-2.jpg");
}

.poster-brown::after {
  content: "昨夜將至\A 懸疑短劇";
  font-size: clamp(25px, 4vw, 40px);
}

.poster-gold {
  background-image: linear-gradient(160deg, rgba(198, 78, 22, 0.2), rgba(245, 190, 72, 0.4)), url("../img/banner-3.jpg");
}

.poster-gold::after {
  content: "少年有熊\A 賀歲動畫";
  font-size: clamp(25px, 4vw, 40px);
}

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

.eyebrow {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 14px 0 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(20px, 3vw, 30px);
}

.hero-copy span {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
}

.slide-dots {
  display: flex;
  gap: 8px;
  margin-top: 28px;
}

.slide-dots button {
  width: 32px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
}

.slide-dots button.is-active {
  background: #fff;
}

.content {
  padding: 24px clamp(14px, 4vw, 0) 24px;
}

.screen-video {
  margin-bottom: 26px;
}

.screen-video-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.screen-video-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
}

.screen-video-head span {
  color: var(--muted);
  font-size: 15px;
}

.video-stage {
  position: relative;
  height: clamp(360px, 54vw, 560px);
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 55, 48, 0.22), transparent 42%),
    linear-gradient(180deg, #292929, #171717);
}

.screen-video-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(48%, 320px);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 8px;
  background: #111;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.42);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.76);
  transition: transform 0.36s ease, opacity 0.36s ease, filter 0.36s ease;
  filter: brightness(0.64) saturate(0.8);
}

.screen-video-card.is-active {
  z-index: 3;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  filter: brightness(1) saturate(1);
}

.screen-video-card.is-prev {
  z-index: 2;
  opacity: 0.56;
  transform: translate(-104%, -50%) scale(0.84);
}

.screen-video-card.is-next {
  z-index: 2;
  opacity: 0.56;
  transform: translate(4%, -50%) scale(0.84);
}

.screen-video-card.is-hidden {
  pointer-events: none;
}

.screen-video-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-poster {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #111;
  transition: opacity 0.2s ease;
}

.screen-video-card.is-playing .video-poster {
  opacity: 0;
  pointer-events: none;
}

.screen-video-card span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

.screen-video-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.7));
  pointer-events: none;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.32);
}

.video-play::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 18px;
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid #ff3730;
}

.screen-video-card.is-playing .video-play {
  opacity: 0;
  pointer-events: none;
}

.video-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.video-dots button {
  width: 26px;
  height: 5px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.video-dots button.is-active {
  background: var(--red);
}

.quick-entry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 3vw, 30px);
  margin-bottom: 18px;
}

.entry-item {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 108px;
  color: #eee;
}

.entry-item span {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.entry-icon {
  position: relative;
  display: block;
  width: 32px;
  height: 32px;
  color: #fff;
}

.entry-icon::before,
.entry-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.entry-movie::before {
  inset: 5px 3px 4px;
  border: 3px solid currentColor;
  border-radius: 8px;
}

.entry-movie::after {
  left: 14px;
  top: 11px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
}

.entry-tv::before {
  left: 3px;
  top: 8px;
  width: 26px;
  height: 18px;
  border: 3px solid currentColor;
  border-radius: 6px;
}

.entry-tv::after {
  left: 12px;
  top: 2px;
  width: 10px;
  height: 8px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: rotate(45deg);
}

.entry-show::before {
  left: 4px;
  top: 5px;
  width: 24px;
  height: 22px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.entry-show::after {
  left: 9px;
  top: 13px;
  width: 14px;
  height: 8px;
  border-bottom: 3px solid currentColor;
  border-radius: 0 0 12px 12px;
}

.entry-anime::before {
  left: 5px;
  top: 7px;
  width: 22px;
  height: 20px;
  border: 3px solid currentColor;
  border-radius: 10px 10px 12px 12px;
}

.entry-anime::after {
  left: 11px;
  top: 3px;
  width: 10px;
  height: 8px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
  transform: rotate(45deg);
}

.entry-item strong {
  font-size: 18px;
  font-weight: 500;
}

.blue span { background: linear-gradient(135deg, #4ca7ff, #6d7bff); }
.rose span { background: linear-gradient(135deg, #ff4e75, #ff6b9f); }
.violet span { background: linear-gradient(135deg, #7d57ff, #b36cff); }
.green span { background: linear-gradient(135deg, #29bd8b, #44d4a7); }

.notice {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  padding: 0 18px;
  margin-bottom: 28px;
  border-radius: 18px;
  background: #292929;
  color: #aaa;
}

.notice span,
.notice strong,
.section-head span,
.tabbar .is-active {
  color: var(--red);
}

.notice p {
  margin: 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head div {
  display: flex;
  align-items: center;
  gap: 28px;
}

.section-head h2,
.section-head p {
  margin: 0;
}

.section-head h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(26px, 3vw, 34px);
}

.section-head p {
  color: #ddd;
  font-size: 18px;
}

.section-head mark {
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--red);
}

.section-head button {
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 17px;
}

.poster-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 32px 14px;
}

.video-card {
  min-width: 0;
  scroll-margin-top: 18px;
}

.cover {
  display: block;
  aspect-ratio: 0.68;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: inherit;
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
    linear-gradient(160deg, #39424d, #1c1c1c 62%, #2b2225);
}

.cover:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

.cover img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover::before {
  z-index: 1;
}

.year,
.tag {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 8px 0 0 8px;
  padding: 4px 8px;
  border-radius: 3px;
  color: #fff;
  font-size: 15px;
  line-height: 1;
}

.year {
  background: #21aeff;
}

.tag {
  margin-left: 4px;
  background: #ffc117;
}

.cover em {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 1;
  color: #fff;
  font-size: 15px;
  font-style: normal;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.cover-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.9);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cover-play::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 14px;
  width: 0;
  height: 0;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  border-left: 14px solid var(--red);
}

.cover:hover .cover-play,
.cover:focus-visible .cover-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.video-card h3 {
  margin: 10px 0 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.22;
}

.video-card p {
  margin: 0;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
  line-height: 1.35;
}

.float-tools {
  position: fixed;
  right: max(16px, calc((100vw - 1180px) / 2 + 10px));
  bottom: 126px;
  z-index: 10;
  display: grid;
  gap: 12px;
}

.float-tools button {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  font-size: 24px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

body.light-mode .content,
body.light-mode .section-head p,
body.light-mode .video-card h3 {
  color: var(--text);
}

body.light-mode .notice,
body.light-mode .info-modal-panel,
body.light-mode .watch-modal-panel {
  background: #fff;
}

body.light-mode .notice,
body.light-mode .video-card p,
body.light-mode .screen-video-head span,
body.light-mode .info-modal-content p {
  color: var(--muted);
}

body.light-mode .tabbar {
  background: rgba(255, 255, 255, 0.92);
}

body.light-mode .tabbar a {
  color: #333;
}

body.light-mode .tabbar .is-active {
  color: var(--red);
}

body.light-mode .icon-message::after {
  background: rgba(255, 255, 255, 0.92);
}

body.light-mode .float-tools button,
body.light-mode .info-modal-close,
body.light-mode .watch-modal-close {
  color: #222;
  background: rgba(255, 255, 255, 0.9);
}

body.light-mode .screen-video-card span,
body.light-mode .cover em {
  color: #fff;
}

.tabbar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 9;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 72px;
  border-top: 1px solid var(--line);
  background: rgba(31, 31, 31, 0.92);
  backdrop-filter: blur(16px);
}

.tabbar a {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  color: #e5e5e5;
  font-size: 15px;
}

.tab-icon {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
  color: currentColor;
}

.tab-icon::before,
.tab-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.icon-home::before {
  left: 5px;
  bottom: 4px;
  width: 16px;
  height: 13px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 3px;
}

.icon-home::after {
  left: 6px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
  border-radius: 2px;
}

.icon-movie::before {
  inset: 4px 2px 3px;
  border: 2px solid currentColor;
  border-radius: 6px;
}

.icon-movie::after {
  left: 11px;
  top: 9px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.icon-tv::before {
  left: 3px;
  top: 6px;
  width: 20px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.icon-tv::after {
  left: 8px;
  top: 2px;
  width: 10px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon-message::before {
  left: 3px;
  top: 4px;
  width: 20px;
  height: 17px;
  border: 2px solid currentColor;
  border-radius: 8px;
}

.icon-message::after {
  left: 8px;
  bottom: 2px;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  background: rgba(31, 31, 31, 0.92);
  transform: rotate(45deg);
}

.icon-copyright::before {
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-copyright::after {
  content: "C";
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
}

.icon-contact::before {
  left: 3px;
  top: 6px;
  width: 20px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.icon-contact::after {
  left: 6px;
  top: 8px;
  width: 14px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) skew(-8deg, -8deg);
}

.icon-policy::before {
  left: 5px;
  top: 3px;
  width: 16px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.icon-policy::after {
  left: 9px;
  top: 10px;
  width: 9px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.info-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  place-items: center;
  padding: 22px;
}

.info-modal.is-open {
  display: grid;
}

.info-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(8px);
}

.info-modal-panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(76vh, 620px);
  overflow: auto;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #242424;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46);
}

.info-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 18px;
}

.info-modal-panel h2 {
  margin: 0 42px 16px 0;
  font-size: 24px;
}

.info-modal-content p {
  margin: 0 0 12px;
  color: #d4d4d4;
  font-size: 15px;
  line-height: 1.75;
}

.info-modal-content strong {
  color: #fff;
}

.info-modal-content a {
  color: #ff6b65;
}

.watch-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 22px;
}

.watch-modal.is-open {
  display: grid;
}

.watch-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(10px);
}

.watch-modal-panel {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #191919;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.56);
}

.watch-modal-panel h2 {
  margin: 0 44px 14px 0;
  overflow: hidden;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 22px;
}

.watch-modal-panel video {
  display: block;
  width: 100%;
  max-height: min(76vh, 720px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  border-radius: 6px;
  background: #000;
}

.watch-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 18px;
}

@media (max-width: 900px) {
  .hero {
    padding: 18px 18px 20px;
  }

  .top-actions {
    gap: 10px;
  }

  .icon-btn {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }

  .hero-main {
    display: block;
    min-height: 0;
  }

  .hero-copy {
    display: none;
  }

  .carousel {
    height: clamp(270px, 72vw, 380px);
  }

  .slide {
    width: min(62vw, 280px);
  }

  .quick-entry {
    gap: 8px;
  }

  .video-stage {
    height: clamp(340px, 86vw, 520px);
  }

  .screen-video-card {
    width: min(58vw, 300px);
  }

  .poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 2px;
  }
}

@media (max-width: 560px) {
  .app-shell {
    padding-bottom: 130px;
  }

  .topbar {
    margin-top: 0;
  }

  .brand {
    width: 132px;
    min-width: 132px;
  }

  .top-actions .icon-btn:nth-child(1) {
    display: none;
  }

  .search-row {
    gap: 12px;
    margin-top: 24px;
  }

  .menu-btn {
    width: 34px;
    height: 34px;
    background: transparent;
  }

  .search-box {
    height: 52px;
    padding: 0 16px;
  }

  .search-box input {
    font-size: 16px;
  }

  .content {
    padding: 20px 0 22px;
  }

  .screen-video {
    padding: 0 12px;
    margin-bottom: 22px;
  }

  .screen-video-head h2 {
    font-size: 22px;
  }

  .screen-video-head span {
    font-size: 13px;
  }

  .video-stage {
    height: clamp(330px, 102vw, 500px);
    border-radius: 6px;
  }

  .screen-video-card {
    width: min(68vw, 270px);
    border-radius: 6px;
  }

  .screen-video-card span {
    font-size: 16px;
  }

  .video-play {
    width: 52px;
    height: 52px;
  }

  .video-play::before {
    left: 21px;
    top: 16px;
  }

  .quick-entry {
    padding: 0 12px;
  }

  .entry-item {
    min-height: 96px;
  }

  .entry-item span {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .entry-item strong {
    font-size: 16px;
  }

  .notice {
    min-height: 46px;
    margin: 0 10px 24px;
    border-radius: 12px;
    font-size: 15px;
  }

  .section-head {
    padding: 0 12px;
  }

  .section-head div {
    gap: 18px;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .section-head p,
  .section-head button {
    font-size: 15px;
  }

  .poster-grid {
    gap: 30px 2px;
  }

  .cover {
    border-radius: 0;
  }

  .year,
  .tag {
    margin-top: 6px;
    margin-left: 6px;
    padding: 3px 6px;
    font-size: 13px;
  }

  .cover em {
    right: 7px;
    bottom: 8px;
    max-width: calc(100% - 14px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
  }

  .video-card h3 {
    margin: 8px 10px 4px;
    font-size: 17px;
  }

  .video-card p {
    margin: 0 10px;
    font-size: 14px;
  }

  .float-tools {
    right: 14px;
    bottom: 96px;
  }

  .float-tools button {
    width: 48px;
    height: 48px;
  }

  .tabbar {
    height: 66px;
  }

  .tabbar a {
    font-size: 12px;
  }

  .tab-icon {
    width: 24px;
    height: 24px;
  }

  .info-modal {
    padding: 14px;
  }

  .info-modal-panel {
    padding: 22px 18px;
  }

  .watch-modal {
    padding: 12px;
  }

  .watch-modal-panel {
    padding: 14px;
  }

  .watch-modal-panel h2 {
    font-size: 18px;
  }

  .watch-modal-panel video {
    width: min(100%, 420px);
    max-height: 78vh;
    margin: 0 auto;
    aspect-ratio: 9 / 16;
  }
}

@media (min-width: 1180px) {
  .app-shell {
    padding-bottom: 128px;
  }

  .tabbar {
    right: auto;
    bottom: 28px;
    left: 50%;
    width: min(560px, calc(100vw - 48px));
    height: 62px;
    transform: translateX(-50%);
    border: 1px solid var(--line);
    border-radius: 999px;
  }
}
