:root {
  --text: #fafafa;
  --muted: rgba(255, 255, 255, 0.5);
  --soft: rgba(255, 255, 255, 0.7);
  --strong: rgba(255, 255, 255, 0.9);
  --gold: #f5c76d;
  --red: #f0131f;
}

@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("https://minis-mnkcijrbo1qiy1q0-3txqlzcciuvqt-3.tiktok-minis.us/assets/NotoSans-Regular-0b6d4332.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("https://minis-mnkcijrbo1qiy1q0-3txqlzcciuvqt-3.tiktok-minis.us/assets/NotoSans-Medium-b3246b06.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("https://minis-mnkcijrbo1qiy1q0-3txqlzcciuvqt-3.tiktok-minis.us/assets/NotoSans-Bold-4ec9a19e.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  background: #000;
  color: var(--text);
  font-family: "Noto Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

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

#root {
  width: 100vw;
  min-height: 100vh;
  background: #000;
}

.app {
  position: relative;
  width: 100vw;
  min-height: 100vh;
  background: #000;
  color: var(--text);
}

.main {
  min-height: 100vh;
  padding-bottom: 92px;
  background: #000;
}

.hero {
  position: relative;
  height: 478px;
  overflow: hidden;
  background: #000;
}

.company-badge {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 12px;
  right: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 24px);
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.company-badge-mark {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: #fff;
  color: #0b0b0d;
  font-size: 13px;
  font-weight: 900;
}

.company-badge-text {
  min-width: 0;
}

.company-badge-text strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-badge-text small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.hero-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  transition: opacity 500ms ease;
}

.hero-slide.is-active {
  z-index: 1;
  opacity: 1;
}

.hero-image-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 67% center;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  height: calc(50% + 1px);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px;
}

.hero-title {
  display: -webkit-box;
  width: 100%;
  margin: 0 0 16px;
  padding: 0 24px;
  overflow: hidden;
  color: var(--strong);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 175px;
  height: 42px;
  gap: 4px;
  border-radius: 4px;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.play-triangle {
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid currentColor;
  transform: translateX(1px);
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 4px;
  transform: translateX(-50%);
}

.hero-dot {
  width: 16px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 200ms ease, background 200ms ease;
}

.hero-dot.is-active {
  width: 32px;
  background: #fff;
}

.home-section {
  padding: 24px 19px 0;
}

.section-title {
  margin: 0 0 14px;
  color: var(--strong);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

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

.poster-card {
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  text-align: left;
}

.poster-box {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  background: #111;
}

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

.views {
  position: absolute;
  right: 5px;
  bottom: 4px;
  display: flex;
  align-items: center;
  gap: 2px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.views svg {
  width: 12px;
  height: 12px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.75));
}

.poster-title {
  display: -webkit-box;
  min-height: 40px;
  margin: 7px 0 0;
  overflow: hidden;
  color: var(--strong);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.42;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bottom-nav {
  position: fixed;
  left: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  width: 100vw;
  height: 78px;
  padding: 0 18px 18px;
  align-items: center;
  justify-content: space-between;
  background: #000;
}

.nav-link {
  display: flex;
  width: 118px;
  height: 62px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  border: 2px solid transparent;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
  font-weight: 600;
}

.nav-link svg {
  width: 24px;
  height: 24px;
}

.nav-link.is-active {
  color: #fff;
}

.nav-link:focus-visible {
  outline: 0;
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(245, 199, 109, 0.5);
}

.history-page,
.profile-page {
  min-height: 100vh;
  padding: 16px 17px 96px;
  background: #000;
}

.page-title {
  margin: 0 0 18px;
  color: var(--strong);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

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

.history-card {
  min-width: 0;
  text-align: left;
}

.history-poster {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 4px;
  background: #111;
}

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

.history-title {
  display: -webkit-box;
  min-height: 42px;
  margin: 7px 0 4px;
  overflow: hidden;
  color: var(--strong);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.episode-progress {
  color: var(--strong);
  font-size: 13px;
  font-weight: 500;
}

.episode-progress span {
  color: rgba(255, 255, 255, 0.48);
}

.profile-page {
  padding-top: 25px;
}

.profile-head {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.company-profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: #151515;
}

.company-profile-card strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
}

.company-profile-card p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  line-height: 1.35;
}

.avatar {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  object-fit: cover;
  background: #1a1a1a;
}

.profile-meta {
  margin-left: 12px;
}

.profile-name {
  max-width: 190px;
  overflow: hidden;
  color: var(--strong);
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uid-row {
  display: flex;
  align-items: center;
  height: 17px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
}

.tiktok-dot {
  display: grid;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  place-items: center;
  border-radius: 4px;
  background: linear-gradient(135deg, #19f5ff, #fff 45%, #ff155f);
  color: #000;
  font-size: 10px;
  font-weight: 900;
}

.profile-menu {
  width: 100%;
}

.menu-row {
  display: flex;
  width: 100%;
  height: 66px;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.menu-label {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 500;
}

.menu-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--strong);
}

.menu-icon svg,
.chevron {
  width: 17px;
  height: 17px;
}

.language-page {
  min-height: 100vh;
  padding-top: 12px;
  background: #000;
}

.language-list {
  width: calc(100vw - 50px);
  max-width: 340px;
  margin: 0 0 0 25px;
}

.language-button {
  display: grid;
  width: 100%;
  height: 50px;
  grid-template-columns: 1fr 24px;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
}

.language-check {
  width: 17px;
  height: 17px;
  justify-self: end;
  color: #fff;
  opacity: 0;
}

.language-button.is-selected .language-check {
  opacity: 1;
}

.about-page {
  min-height: 100vh;
  padding: 18px 17px 40px;
  background: #000;
  color: rgba(255, 255, 255, 0.82);
}

.about-page h1 {
  margin: 0 0 18px;
  color: var(--strong);
  font-size: 20px;
  line-height: 1.3;
}

.about-page h3 {
  margin: 22px 0 10px;
  color: var(--strong);
  font-size: 17px;
  line-height: 1.35;
}

.about-page p {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.58;
}

.company-table {
  width: 100%;
  margin: 0 0 18px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.45;
}

.company-table th,
.company-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 11px;
  text-align: left;
  vertical-align: top;
}

.company-table tr:last-child th,
.company-table tr:last-child td {
  border-bottom: 0;
}

.company-table th {
  width: 112px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
}

.player-page {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  background: #000;
  touch-action: none;
}

.video-frame {
  position: relative;
  width: 100vw;
  height: 100dvh;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.video-art {
  position: absolute;
  inset: 74px 0 75px;
  background-position: center;
  background-size: cover;
  filter: saturate(1.04);
}

.video-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent 22%, transparent 72%, rgba(0, 0, 0, 0.22));
}

.player-close {
  display: none;
}

.reel-mark {
  position: absolute;
  left: 34px;
  top: 124px;
  z-index: 2;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.45);
  font-size: 24px;
  font-weight: 900;
}

.subtitle {
  position: absolute;
  left: 36px;
  right: 36px;
  bottom: 230px;
  z-index: 2;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.75);
}

.mute-button {
  position: absolute;
  right: 16px;
  bottom: 18px;
  z-index: 48;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 999px;
  background: rgba(38, 38, 38, 0.9);
  color: #fff;
}

.mute-button svg {
  width: 28px;
  height: 28px;
}

.player-center-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 49;
  display: grid;
  width: 67px;
  height: 67px;
  place-items: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: opacity 180ms ease;
}

.player-center-icon svg {
  width: 42px;
  height: 42px;
}

.player-page.controls-visible .player-center-icon {
  opacity: 1;
}

.player-controls {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 49;
  width: 100vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.player-page.controls-visible .player-controls {
  opacity: 1;
  pointer-events: auto;
}

.progress-shell {
  position: relative;
  width: 100%;
  height: 31px;
}

.progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.42);
}

.progress-fill {
  display: block;
  width: 54%;
  height: 100%;
  background: #fff;
}

.episode-control-bar {
  display: flex;
  width: 100%;
  height: 50px;
  align-items: center;
  justify-content: flex-start;
  padding: 0 16px;
  background: rgba(0, 0, 0, 0.65);
}

.episode-trigger {
  display: inline-flex;
  min-width: 122px;
  height: 34px;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 0 12px 0 13px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: left;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.26);
}

.episode-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  opacity: 0.86;
  transform: rotate(-45deg) translateY(2px);
}

.episode-trigger:active {
  background: rgba(255, 255, 255, 0.18);
}

.episode-trigger span:last-child {
  color: rgba(255, 255, 255, 0.52);
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 52;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms ease;
  overscroll-behavior: contain;
  touch-action: none;
}

.detail-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.detail-sheet {
  position: relative;
  display: flex;
  width: min(100vw, 576px);
  max-height: 80dvh;
  flex-direction: column;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  background: rgb(20, 20, 20);
  transform: translateY(100%);
  transition: transform 300ms ease;
  touch-action: pan-y;
}

.detail-backdrop.is-open .detail-sheet {
  transform: translateY(0);
}

.detail-body {
  width: 100%;
  max-height: 80dvh;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 16px 24px;
  overscroll-behavior: contain;
}

.detail-close {
  position: sticky;
  top: 0;
  z-index: 2;
  display: grid;
  width: 32px;
  height: 40px;
  margin-left: auto;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 28px;
  line-height: 1;
}

.detail-poster {
  width: 83px;
  height: 118px;
  margin: 6px auto 13px;
  overflow: hidden;
  border-radius: 4px;
  background: #111;
}

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

.drawer-title {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0 -16px 22px;
  padding: 0 56px;
  overflow: hidden;
  background: rgb(20, 20, 20);
  color: var(--strong);
  font-size: 16px;
  font-weight: 700;
  line-height: 25px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.drawer-desc-wrap {
  position: relative;
  margin: 0 0 20px;
}

.drawer-desc {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.52);
  font-size: 14px;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.drawer-desc-wrap.is-expanded .drawer-desc {
  display: block;
}

.more-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  min-width: 86px;
  height: 20px;
  padding-left: 34px;
  background: linear-gradient(to right, rgba(20, 20, 20, 0), rgb(20, 20, 20) 42%);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: right;
}

.drawer-desc-wrap.is-expanded .more-toggle {
  position: static;
  display: block;
  width: 100%;
  margin-top: 6px;
  padding-left: 0;
  background: transparent;
}

.episode-title {
  margin: 0 0 15px;
  color: var(--strong);
  font-size: 16px;
  font-weight: 700;
}

.episode-tabs {
  display: flex;
  gap: 16px;
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 500;
}

.episode-tab {
  color: rgba(255, 255, 255, 0.52);
}

.episode-tab.is-active {
  color: #fff;
}

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

.episode-chip {
  height: 50px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.episode-chip.is-current {
  background: rgba(255, 255, 255, 0.24);
}

.episode-chip.is-trailer {
  grid-column: 1 / -1;
}

.modal {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 80;
  display: none;
  width: 100vw;
  height: 100vh;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
}

.modal.is-open {
  display: flex;
}

.promo {
  width: 270px;
  text-align: center;
}

.promo-title {
  display: -webkit-box;
  margin: 0 0 16px;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.promo-poster {
  width: 100%;
  aspect-ratio: 270 / 374;
  overflow: hidden;
  border-radius: 7px 7px 0 0;
  background: #111;
}

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

.promo-play {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(90deg, #d80010, #ff2530);
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 700;
}

.promo-close {
  display: grid;
  width: 36px;
  height: 36px;
  margin: 16px auto 0;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.65);
  border-radius: 999px;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

@media (min-width: 430px) {
  .hero-image-wrap {
    width: 100vw;
  }
}
