* {
  box-sizing: border-box;
}

:root {
  --bg: #0f302b;
  --bg-deep: #0a211d;
  --panel: #123b35;
  --panel-soft: rgba(20, 63, 56, 0.88);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f5fbf7;
  --muted: #a8bbb6;
  --accent: #fff174;
  --accent-strong: #ffea4d;
  --red: #ff3730;
}

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

body.light-mode {
  --bg: #eef5ef;
  --bg-deep: #dfe9e2;
  --panel: #ffffff;
  --panel-soft: rgba(255, 255, 255, 0.9);
  --line: rgba(20, 54, 46, 0.14);
  --text: #10231f;
  --muted: #5e716d;
}

body.modal-open {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  padding-bottom: 128px;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    radial-gradient(circle at 92% 34%, rgba(255, 241, 116, 0.2), transparent 28%),
    linear-gradient(180deg, var(--bg) 0%, #123c35 58%, var(--bg-deep) 100%);
  background-size: 126px 126px, 126px 126px, auto, auto;
}

.site-hero,
.content {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.site-hero {
  padding: 34px clamp(14px, 4vw, 36px) 22px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-btn,
.float-tools button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
  background: rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.brand {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: var(--accent-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

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

.category-tabs {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar,
.featured-rail::-webkit-scrollbar {
  display: none;
}

.nav-chip {
  flex: 0 0 auto;
  min-width: 0;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  color: rgba(245, 251, 247, 0.78);
  background: transparent;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}

.nav-chip.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.theme-btn {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
  color: var(--accent);
  font-size: 28px;
}

.hero-carousel {
  position: relative;
  height: clamp(210px, 38vw, 420px);
  margin: clamp(26px, 5vw, 46px) auto 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  background: rgba(9, 35, 31, 0.72);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s ease, transform 1.8s ease;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}

.hero-slide img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(255, 241, 116, 0.92);
  background:
    linear-gradient(135deg, rgba(255, 241, 116, 0.14), rgba(255, 255, 255, 0.03)),
    linear-gradient(160deg, #194c43, #0b2722 72%);
  font-size: clamp(26px, 5vw, 52px);
  font-weight: 800;
  text-align: center;
}

.hero-slide.is-missing::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 1px dashed rgba(255, 241, 116, 0.42);
  border-radius: 14px;
  pointer-events: none;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.04), rgba(0, 0, 0, 0.18));
  pointer-events: none;
}

.hero-dots {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.hero-dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
  width: 24px;
  background: var(--accent);
}

.featured-panel {
  position: relative;
  overflow: hidden;
  padding: 30px 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
}

.featured-panel::before,
.featured-panel::after {
  content: "";
  position: absolute;
  top: 86px;
  bottom: 0;
  z-index: 2;
  width: 58px;
  pointer-events: none;
}

.featured-panel::before {
  left: 0;
  background: linear-gradient(90deg, var(--panel) 8%, rgba(18, 59, 53, 0));
}

.featured-panel::after {
  right: 0;
  background: linear-gradient(270deg, var(--panel) 8%, rgba(18, 59, 53, 0));
}

.section-title {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 34px;
  padding-left: 20px;
}

.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  width: 8px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent);
}

.section-title h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.featured-rail {
  display: grid;
  grid-auto-columns: clamp(176px, 30vw, 260px);
  grid-auto-flow: column;
  gap: 24px;
  margin-top: 24px;
  overflow-x: auto;
  scroll-snap-type: none;
  cursor: grab;
  overscroll-behavior-x: contain;
  touch-action: pan-y;
  user-select: none;
  scroll-behavior: auto;
}

.featured-rail.is-dragging {
  cursor: grabbing;
}

.featured-rail.is-dragging .featured-card {
  pointer-events: none;
}

.featured-card,
.video-card {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 14px;
  background: rgba(13, 49, 43, 0.82);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.featured-card {
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.featured-card.is-selected,
.featured-card:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 18px 42px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

.featured-card:hover {
  border-color: rgba(255, 241, 116, 0.72);
  transform: translateY(-5px) scale(1.015);
}

.rank-panel {
  margin-top: 22px;
  padding: 28px 26px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.22);
}

.rank-list {
  display: block;
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-item {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  padding: 12px 0;
  overflow: visible;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
  transition: color 0.18s ease, background 0.18s ease;
}

.rank-item:hover,
.rank-item:focus-visible {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.045);
}

.rank-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.rank-item:nth-child(-n + 3) {
  border-color: rgba(255, 255, 255, 0.08);
  background: transparent;
}

.rank-item:first-child {
  grid-template-columns: 82px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 118px;
  padding: 14px 0;
}

.rank-num {
  position: static;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 4px;
  color: #fff;
  background: #9aa0a6;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.rank-cover {
  display: contents;
}

.rank-cover img {
  display: none;
}

.rank-item:first-child .rank-cover {
  position: relative;
  display: block;
  width: 80px;
  height: 108px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(13, 49, 43, 0.86);
}

.rank-item:first-child .rank-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rank-item:first-child .rank-num {
  position: absolute;
  top: 0;
  left: 0;
  width: 22px;
  height: 22px;
  border-radius: 0 0 4px 0;
}

.rank-item:nth-child(1) .rank-num {
  background: #ff1f3d;
}

.rank-item:nth-child(2) .rank-num {
  background: #ff8a00;
}

.rank-item:nth-child(3) .rank-num {
  background: #ffc400;
}

.rank-info {
  min-width: 0;
}

.rank-info h3 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.rank-item:first-child .rank-info h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.rank-info p {
  margin: 0 0 6px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.3;
}

.rank-info small {
  display: none;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.45;
}

.rank-item:first-child .rank-info small {
  display: block;
}

.rank-item:not(:first-child) .rank-info p {
  display: none;
}

.rank-heat {
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.content {
  padding: 28px clamp(14px, 4vw, 36px) 34px;
}

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

.section-head button {
  border: 0;
  color: rgba(245, 251, 247, 0.68);
  background: transparent;
  font-size: 18px;
}

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

.video-card {
  overflow: hidden;
  scroll-margin-top: 20px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.video-card:hover {
  border-color: rgba(255, 241, 116, 0.66);
  transform: translateY(-2px);
}

.cover {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 0.72;
  overflow: hidden;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  background: linear-gradient(160deg, #314b46, #102a25);
}

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

.cover img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 18px;
  color: rgba(255, 241, 116, 0.92);
  background:
    linear-gradient(145deg, rgba(255, 241, 116, 0.14), rgba(255, 255, 255, 0.03)),
    linear-gradient(160deg, #244f48, #0d302a 70%);
  text-align: center;
}

.poster-fallback strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 20px;
  line-height: 1.2;
}

.poster-fallback small {
  max-width: 100%;
  overflow: hidden;
  color: rgba(245, 251, 247, 0.72);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

.cover.is-missing::after {
  content: "圖片佔位";
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 5px 8px;
  border: 1px solid rgba(255, 241, 116, 0.32);
  border-radius: 6px;
  color: rgba(255, 241, 116, 0.86);
  background: rgba(0, 0, 0, 0.28);
  font-size: 12px;
  line-height: 1;
}

.video-card:hover .cover img,
.featured-card:hover .cover img {
  transform: scale(1.03);
}

.cover::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.66));
  pointer-events: none;
}

.quality-badge,
.year {
  position: absolute;
  z-index: 3;
  right: 10px;
  top: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 6px;
  color: var(--accent-strong);
  background: rgba(7, 18, 16, 0.82);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.year {
  display: none;
}

.cover em {
  display: none;
}

.cover-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 4;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.88);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.cover-play::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 16px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid var(--red);
}

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

.video-card h3,
.featured-card h3 {
  margin: 14px 16px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 19px;
  line-height: 1.25;
}

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

.empty-state {
  margin: 52px 0;
  color: var(--muted);
  text-align: center;
  font-size: 18px;
}

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

.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 .app-shell {
  background:
    linear-gradient(rgba(11, 47, 40, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 47, 40, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 92% 34%, rgba(255, 221, 73, 0.3), transparent 28%),
    linear-gradient(180deg, #e8f2ea 0%, #dce9df 58%, #eef5ef 100%);
  background-size: 126px 126px, 126px 126px, auto, auto;
}

body.light-mode .nav-chip {
  color: rgba(16, 35, 31, 0.72);
}

body.light-mode .nav-chip.is-active,
body.light-mode .theme-btn,
body.light-mode .float-tools button {
  color: #10231f;
  background: rgba(255, 255, 255, 0.78);
}

body.light-mode .section-head button {
  color: var(--muted);
}

body.light-mode .hero-carousel,
body.light-mode .featured-card,
body.light-mode .video-card {
  background: rgba(255, 255, 255, 0.86);
}

body.light-mode .rank-panel {
  background: rgba(255, 255, 255, 0.84);
}

body.light-mode .rank-item {
  background: transparent;
  border-color: rgba(16, 35, 31, 0.1);
}

.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(15, 48, 43, 0.92);
  backdrop-filter: blur(16px);
}

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

.tabbar .is-active {
  color: var(--accent);
}

.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-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;
}

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

body.light-mode .info-modal-content p {
  color: var(--muted);
}

body.light-mode .info-modal-content strong {
  color: var(--text);
}

body.light-mode .info-modal-close,
body.light-mode .watch-modal-close {
  color: #222;
  background: rgba(0, 0, 0, 0.08);
}

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: #0a7f65;
}

@media (max-width: 900px) {
  .poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding-bottom: 118px;
    background-size: 63px 63px, 63px 63px, auto, auto;
  }

  .site-hero {
    padding: 28px 16px 16px;
  }

  .topbar {
    gap: 10px;
  }

  .brand,
  .theme-btn {
    width: 52px;
    height: 52px;
  }

  .nav-chip {
    padding: 10px 12px;
    font-size: 15px;
  }

  .hero-carousel {
    height: 188px;
    margin: 22px 0 22px;
    border-radius: 14px;
  }

  .hero-dots {
    right: 12px;
    bottom: 12px;
  }

  .hero-dots button {
    width: 8px;
    height: 8px;
  }

  .hero-dots button.is-active {
    width: 22px;
  }

  .featured-panel {
    padding: 26px 16px;
    border-radius: 16px;
  }

  .featured-rail {
    grid-auto-columns: 196px;
    gap: 18px;
  }

  .rank-panel {
    margin-top: 18px;
    padding: 22px 16px 12px;
    border-radius: 16px;
  }

  .rank-item:first-child {
    grid-template-columns: 78px minmax(0, 1fr) auto;
    min-height: 108px;
  }

  .rank-item:first-child .rank-cover {
    width: 76px;
    height: 102px;
  }

  .rank-info p,
  .rank-info small,
  .rank-heat {
    font-size: 13px;
  }

  .content {
    padding: 28px 16px 28px;
  }

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

  .video-card h3,
  .featured-card h3 {
    margin: 12px 14px 7px;
    font-size: 17px;
  }

  .video-card p,
  .featured-card p {
    margin: 0 14px 15px;
    font-size: 14px;
  }

  .quality-badge {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 14px;
  }

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

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

  .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) {
  .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;
  }
}
