:root {
  color-scheme: dark;
  --v2-bg: #060408;
  --v2-panel: #151019;
  --v2-panel-2: #211725;
  --v2-text: #fff9ff;
  --v2-muted: #b8aab9;
  --v2-line: #513856;
  --v2-green: #d643bf;
  --v2-gold: #e85ad6;
  --v2-red: #ef7bdf;
  --v2-blue: #229ed9;
  --v2-dock-height: 64px;
  --v2-control: rgba(30, 19, 34, .86);
  --v2-ease: cubic-bezier(.2, .8, .2, 1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: #000; color: var(--v2-text); }
body { min-height: 100svh; overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; }
html[data-v2-view="player"], html[data-v2-view="player"] body { height: 100%; overflow: hidden; }
button, input, select { font: inherit; }
button, select, input[type="range"] { cursor: pointer; }
button { min-width: 44px; min-height: 44px; color: inherit; }
button:focus-visible, select:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #e85ad6;
  outline-offset: 2px;
}

.v2-app, .v2-shell {
  min-height: 100svh;
  width: 100%;
  margin: 0 auto;
  background: var(--v2-bg);
}

.v2-loading-shell { pointer-events: none; }
.v2-loading-shell .v2-stage { background: #08050a; }
.v2-loading-control { cursor: default; user-select: none; }
.v2-loading-shell .v2-loading-control { filter: saturate(.84); }
.v2-stage-loading, .v2-media-loading {
  position: absolute;
  z-index: 5;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--v2-muted);
  font-weight: 800;
}
.v2-media-loading { background: rgba(2, 3, 3, .3); pointer-events: none; }
.v2-loader-ring { width: 24px; height: 24px; border: 3px solid rgba(255,255,255,.16); border-top-color: var(--v2-green); border-radius: 50%; animation: v2-loader-spin .8s linear infinite; }
.v2-skeleton { position: relative; display: block; overflow: hidden; border: 1px solid rgba(232,90,214,.14); background: #241827; }
.v2-skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 15%, rgba(255,255,255,.08) 50%, transparent 85%); transform: translateX(-100%); animation: v2-skeleton-shimmer 1.4s ease-in-out infinite; }
.v2-skeleton-title { width: min(58vw, 310px); height: 31px; border-radius: 8px; }
.v2-skeleton-tags { width: min(42vw, 220px); height: 16px; margin-top: 9px; border-radius: 6px; }
.v2-skeleton-progress { position: fixed; z-index: 18; left: 0; bottom: calc(var(--v2-dock-height) + env(safe-area-inset-bottom)); width: 100vw; height: 5px; background: rgba(255,255,255,.22); }
@keyframes v2-loader-spin { to { transform: rotate(360deg); } }
@keyframes v2-skeleton-shimmer { to { transform: translateX(100%); } }

.v2-shell { position: relative; height: 100svh; overflow: hidden; }
.v2-player-screen { height: 100svh; min-height: 0; overflow: hidden; overscroll-behavior: none; touch-action: pan-x; isolation: isolate; }
.v2-topbar {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  min-height: calc(76px + env(safe-area-inset-top));
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 18px max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .84) 0%, rgba(0, 0, 0, .4) 58%, transparent 100%);
  pointer-events: none;
}
.v2-topbar > * {
  pointer-events: auto;
}
.v2-topbar--direct {
  min-height: calc(60px + env(safe-area-inset-top));
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: 8px;
}
.v2-logo {
  flex: 0 1 148px;
  width: clamp(108px, 30vw, 148px);
  min-width: 44px;
  height: 48px;
  padding: 8px 10px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(3, 4, 5, .82);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .3);
  overflow: hidden;
}
.v2-logo img { width: auto; height: auto; max-width: 100%; max-height: 32px; display: block; object-fit: contain; }
.v2-earn-button { min-width: 0; height: 48px; padding: 5px 7px; border: 0; border-radius: 17px; background: radial-gradient(circle at 78% 40%, #432047 0%, #29132d 58%, #160b19 100%); box-shadow: 0 8px 28px rgba(0,0,0,.3); }
.v2-earn-pill { height: 38px; padding: 0 13px 0 7px; border: 1px solid #e66ad6; border-radius: 999px; background: linear-gradient(100deg, #b52ca2 0%, #741665 64%, #3e0f38 100%); color: #fff8fe; display: inline-flex; align-items: center; gap: 8px; box-shadow: inset 0 0 12px rgba(238,85,218,.18), 0 0 10px rgba(143,21,126,.24); white-space: nowrap; }
.v2-earn-icon { width: 27px; height: 27px; border-radius: 50%; background: linear-gradient(145deg, #ef7bdf, #a31b90); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(232,90,214,.14); }
.v2-earn-coin { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.v2-earn-button:hover .v2-earn-pill { border-color: #f294e7; filter: brightness(1.06); }
.v2-earn-button:active .v2-earn-pill { filter: brightness(.92); }
.v2-top-spacer { flex: 1; }
.v2-balance { display: inline-flex; align-items: center; gap: 7px; color: var(--v2-gold); font-weight: 800; border: 0; border-radius: 10px; background: rgba(8, 10, 13, .42); padding: 0 10px; backdrop-filter: blur(12px); }
.v2-coin { width: 25px; height: 25px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v2-language-picker { position: relative; z-index: 24; }
.v2-language-toggle { width: 52px; height: 44px; padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: var(--v2-control); display: grid; place-items: center; backdrop-filter: blur(12px); }
.v2-language-toggle img, .v2-language-option img { display: block; width: 28px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.22); }
.v2-language-menu { position: absolute; top: calc(100% + 8px); right: 0; width: min(236px, calc(100vw - 24px)); max-height: min(520px, calc(100svh - 92px)); overflow-y: auto; padding: 6px; border: 1px solid rgba(232,90,214,.26); border-radius: 10px; background: rgba(22,14,25,.98); box-shadow: 0 18px 46px rgba(0,0,0,.58); display: none; }
.v2-language-picker.open .v2-language-menu { display: grid; gap: 2px; }
.v2-language-option { width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; color: #cdd3dd; display: grid; grid-template-columns: 36px minmax(0,1fr); align-items: center; gap: 8px; text-align: left; font-size: 16px; font-weight: 700; }
.v2-language-option[aria-selected="true"] { background: rgba(214,67,191,.17); color: #ef7bdf; }
.v2-profile-button, .v2-login-button { border: 1px solid rgba(255,255,255,.18); background: var(--v2-control); border-radius: 50%; overflow: hidden; padding: 0; backdrop-filter: blur(12px); }
.v2-profile-button img { width: 44px; height: 44px; display: block; object-fit: cover; }
.v2-login-button { border-radius: 10px; padding: 0 16px; font-weight: 850; color: var(--v2-text); }

.v2-stage { position: absolute; z-index: 0; inset: 0; min-height: 0; background: #020303; overflow: hidden; display: grid; place-items: center; }
.v2-stage::after { content: ""; position: absolute; z-index: 1; inset: 38% 0 0; pointer-events: none; background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.08) 34%, rgba(0,0,0,.74) 100%); }
.v2-video, .v2-poster { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; max-height: 100%; object-fit: contain; background: #000; }
.v2-poster { object-fit: cover; filter: brightness(.62) saturate(.9); }
.v2-video-with-poster { opacity: 0; }
.v2-video-with-poster.ready { opacity: 1; }
.v2-video-hint { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity 180ms var(--v2-ease); }
.v2-video-hint.show { opacity: 1; }
.v2-video-hint span { padding: 12px 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(10,12,15,.72); backdrop-filter: blur(12px); font-weight: 800; }
.v2-gate { position: absolute; z-index: 3; inset: 0; display: grid; place-content: center; gap: 12px; text-align: center; padding: 28px; background: rgba(0,0,0,.56); backdrop-filter: blur(4px); }
.v2-gate strong { font-size: clamp(20px, 6vw, 28px); }
.v2-gate p { margin: 0; color: #d1d5db; }
.v2-primary { border: 1px solid #e66ad6; border-radius: 12px; background: linear-gradient(135deg, #ee55da, #8f157e); color: #fff; font-weight: 900; padding: 0 22px; box-shadow: 0 8px 24px rgba(143,21,126,.24); }

.v2-side-tools { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: calc(var(--v2-dock-height) + 13px + env(safe-area-inset-bottom)); display: grid; gap: 8px; z-index: 16; }
.v2-icon-button { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; background: var(--v2-control); display: grid; place-items: center; backdrop-filter: blur(12px); transition: background-color 180ms var(--v2-ease), border-color 180ms var(--v2-ease), color 180ms var(--v2-ease); }
.v2-icon-button svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }
.v2-icon-button:disabled { opacity: .38; cursor: default; }
.v2-icon-button[aria-pressed="true"] { color: #d6dbe3; }

.v2-meta { position: fixed; z-index: 12; left: max(18px, env(safe-area-inset-left)); right: 84px; bottom: calc(var(--v2-dock-height) + 14px + env(safe-area-inset-bottom)); width: min(720px, calc(100vw - 110px)); padding: 0; background: transparent; pointer-events: none; text-shadow: 0 2px 16px rgba(0,0,0,.88); }
.v2-meta > * { pointer-events: auto; }
.v2-meta-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.v2-meta h1 { margin: 0; max-width: min(68vw, 640px); font-size: clamp(24px, 3vw, 34px); line-height: 1.08; letter-spacing: -.02em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2-episode-chip { padding: 5px 9px; color: var(--v2-gold); border: 1px solid rgba(232,90,214,.5); border-radius: 8px; font-size: 13px; font-weight: 850; background: rgba(79,20,72,.5); box-shadow: 0 4px 18px rgba(0,0,0,.26); }
.v2-tags { margin: 6px 0 0; color: #e4e7ec; font-size: 14px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-progress { --v2-progress-percent: 0%; position: fixed; z-index: 18; left: 0; bottom: calc(var(--v2-dock-height) + env(safe-area-inset-bottom)); width: 100vw; height: 5px; margin: 0; border: 0; border-radius: 999px; appearance: none; -webkit-appearance: none; background: linear-gradient(90deg, var(--v2-green) 0 var(--v2-progress-percent), rgba(255,255,255,.28) var(--v2-progress-percent) 100%); cursor: ew-resize; }
.v2-progress::-webkit-slider-runnable-track { height: 5px; border-radius: 999px; background: transparent; }
.v2-progress::-webkit-slider-thumb { width: 12px; height: 12px; margin-top: -3.5px; border: 0; appearance: none; -webkit-appearance: none; background: transparent; }
.v2-progress::-moz-range-track { height: 5px; border: 0; border-radius: 999px; background: transparent; }
.v2-progress::-moz-range-progress { height: 5px; border-radius: 999px; background: transparent; }
.v2-progress::-moz-range-thumb { width: 12px; height: 12px; border: 0; background: transparent; }
.v2-time { display: none; }

.v2-actions { position: fixed; z-index: 14; left: 50%; bottom: 0; width: min(100%, 520px); min-height: calc(var(--v2-dock-height) + env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; grid-template-columns: 1fr 1.08fr 1fr; gap: 8px; padding: 8px 10px max(8px, env(safe-area-inset-bottom)); background: rgba(16,10,19,.97); border-top: 0; box-shadow: 0 0 0 100vmax rgba(16,10,19,.97), 0 -18px 48px rgba(0,0,0,.42); clip-path: inset(0 -100vmax 0); }
.v2-action { height: 48px; min-height: 44px; border: 1px solid #604566; border-radius: 8px; background: #251a29; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background-color 180ms var(--v2-ease), border-color 180ms var(--v2-ease), color 180ms var(--v2-ease); }
.v2-action svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.v2-action.favorite { color: #ef89e2; border-color: #96418a; background: #35172f; }
.v2-action.unlock { color: #fff; border-color: #e66ad6; background: linear-gradient(135deg, #ee55da, #8f157e); box-shadow: 0 7px 20px rgba(143,21,126,.24); }
.v2-action:disabled { cursor: not-allowed; opacity: .45; }
.v2-action:hover, .v2-icon-button:hover, .v2-login-button:hover { border-color: rgba(230,106,214,.58); background-color: rgba(55,34,61,.96); }
.v2-action.unlock:hover { border-color: #f294e7; background: linear-gradient(135deg, #f06cde, #a31b90); }
.v2-action.unlock:disabled:hover { border-color: #e66ad6; background: var(--v2-green); }

.v2-modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,.76); backdrop-filter: blur(7px); }
.v2-age-gate { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); background: rgba(0,0,0,.24); touch-action: none; }
.v2-age-dialog { width: min(100%, 480px); padding: clamp(26px, 5vw, 38px); border: 1px solid #604566; border-radius: 20px; background: linear-gradient(145deg, #241929, #100a12); box-shadow: 0 24px 80px rgba(0,0,0,.68), 0 0 36px rgba(143,21,126,.1); text-align: center; }
.v2-age-mark { width: 76px; height: 76px; margin: 0 auto 20px; border: 2px solid var(--v2-gold); border-radius: 50%; display: grid; place-items: center; color: var(--v2-gold); font-size: 25px; font-weight: 950; letter-spacing: -.04em; }
.v2-age-dialog h1 { margin: 0; color: #fff; font-size: clamp(25px, 6vw, 34px); line-height: 1.3; }
.v2-age-dialog p { margin: 14px auto 0; max-width: 390px; color: #c7cdd6; font-size: 16px; line-height: 1.65; }
.v2-age-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.v2-age-actions button { min-height: 54px; border-radius: 12px; font-size: 17px; }
.v2-modal { width: min(100%, 470px); max-height: min(88svh, 760px); overflow: auto; border: 1px solid #513856; border-radius: 17px; background: linear-gradient(135deg, #1d1421, #120c15 70%, #29132d); padding: 24px; }
.v2-unlock-modal { width: min(100%, 660px); border-color: #513856; border-radius: 18px; background: rgba(27,18,31,.98); padding: clamp(28px, 5vw, 42px) clamp(24px, 5vw, 38px); box-shadow: 0 20px 70px rgba(0,0,0,.6); }
.v2-unlock-confirmation h2 { margin: 0; color: #f4f5f7; font-size: clamp(23px, 4.2vw, 34px); line-height: 1.45; text-align: center; }
.v2-unlock-price-group { display: inline-flex; align-items: center; gap: 10px; margin-inline: 7px; color: var(--v2-gold); vertical-align: middle; }
.v2-unlock-price-group strong { font-variant-numeric: tabular-nums; }
.v2-unlock-coin { width: 28px; height: 28px; display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v2-unlock-modal .v2-modal-actions { gap: 16px; margin-top: 30px; }
.v2-unlock-modal .v2-modal-actions button { min-height: 68px; border-radius: 13px; font-size: clamp(20px, 3vw, 27px); }
.v2-unlock-modal .v2-primary:disabled { cursor: wait; opacity: .7; }
.v2-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.v2-modal h2 { margin: 5px 0 8px; font-size: clamp(25px, 7vw, 38px); }
.v2-modal p { color: #c4cad3; line-height: 1.55; }
.v2-close { border: 0; background: transparent; font-size: 30px; line-height: 1; }
.v2-modal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.v2-share-modal { width: min(100%, 920px); border-color: #513856; border-radius: 18px; background: rgba(29,20,33,.98); padding: clamp(26px, 4vw, 42px); box-shadow: 0 20px 70px rgba(0,0,0,.62); }
.v2-share-modal .v2-modal-header h2 { margin: 0 0 18px; font-size: clamp(30px, 5vw, 46px); }
.v2-share-modal .v2-modal-header p { max-width: 760px; margin: 0; color: #bdc3ce; font-size: clamp(16px, 2.2vw, 22px); font-weight: 700; }
.v2-share-modal .v2-close { width: 48px; height: 48px; flex: 0 0 48px; font-size: 40px; }
.v2-share-reward { min-height: 48px; margin: 18px 0 24px; color: var(--v2-gold); display: flex; align-items: center; gap: 10px; }
.v2-share-reward strong { font-size: clamp(28px, 4vw, 40px); font-variant-numeric: tabular-nums; }
.v2-share-reward span { color: #aeb5c1; font-size: clamp(16px, 2vw, 21px); font-weight: 800; }
.v2-share-coin { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.v2-share-copy-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(150px, 236px); gap: 18px; }
.v2-share-copy-row input { min-width: 0; height: 72px; padding: 0 22px; border: 1px solid #513856; border-radius: 14px; background: #120c15; color: #fff9ff; font-size: clamp(16px, 2.3vw, 23px); font-weight: 750; }
.v2-share-copy-row button { min-height: 72px; border-radius: 14px; font-size: clamp(18px, 2.5vw, 25px); }
.v2-secondary { border: 1px solid var(--v2-line); border-radius: 12px; background: var(--v2-panel-2); font-weight: 800; padding: 0 16px; }
.v2-auth-list, .v2-follow-list { display: grid; gap: 12px; margin-top: 20px; }
.v2-auth-list button, .v2-follow-list a { min-height: 62px; border: 1px solid var(--v2-line); border-radius: 12px; background: var(--v2-panel-2); color: var(--v2-text); display: flex; align-items: center; justify-content: center; gap: 12px; text-decoration: none; font-weight: 850; font-size: 18px; }
.v2-auth-list button { transition: background-color 180ms var(--v2-ease), border-color 180ms var(--v2-ease), color 180ms var(--v2-ease); }
.v2-auth-list button:not(:disabled):hover { border-color: rgba(255,255,255,.48); background: #292f38; }
.v2-auth-list button:disabled { border-color: #303640; background: #1b2027; color: #747b85; cursor: not-allowed; opacity: 1; }
.v2-auth-list button:disabled .v2-provider-mark { color: #747b85; }
.v2-auth-list button:disabled .v2-provider-mark svg path { fill: currentColor; }
.v2-follow-list a.telegram { border-color: var(--v2-green); }
.v2-provider-mark { width: 30px; text-align: center; font-weight: 950; color: var(--v2-blue); }
.v2-provider-mark svg { display: block; width: 28px; height: 28px; margin: auto; fill: currentColor; }
.v2-provider-email .v2-provider-mark svg { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.v2-provider-x:not(:disabled) .v2-provider-mark, .v2-provider-email:not(:disabled) .v2-provider-mark { color: var(--v2-text); }
.v2-provider-telegram:not(:disabled) .v2-provider-mark { color: #229ed9; }
.v2-balance-detail { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 18px 0; }
.v2-balance-detail div { padding: 12px 8px; border: 1px solid var(--v2-line); border-radius: 10px; text-align: center; }
.v2-balance-detail small { display: block; color: var(--v2-muted); }
.v2-balance-detail strong { font-size: 20px; color: var(--v2-gold); }

.v2-profile { width: min(100%, 480px); min-height: 100svh; margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 12px max(18px, env(safe-area-inset-bottom)); background: var(--v2-bg); }
.v2-profile-backdrop { position: fixed; z-index: 69; inset: 0; background: rgba(0, 0, 0, .62); touch-action: none; }
.v2-profile-drawer { position: fixed; z-index: 70; top: 0; bottom: 0; right: 0; left: auto; width: min(480px, 100vw); height: 100svh; padding: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; background: var(--v2-bg); border-left: 1px solid var(--v2-line); box-shadow: -16px 0 50px #0008; animation: v2-profile-slide-in 220ms var(--v2-ease); }
.v2-profile-drawer-close { position: sticky; top: 8px; z-index: 1; display: block; margin: 8px 12px 0 auto; border: 1px solid var(--v2-line); border-radius: 10px; background: var(--v2-panel-2); font-size: 26px; }
.v2-profile-drawer .v2-profile { min-height: 0; }
.v2-profile-drawer .v2-loading { position: static; min-height: 200px; }
.v2-profile-drawer .v2-profile-header { grid-template-columns: 48px minmax(0, 1fr); }
.v2-profile-drawer .v2-back { display: none; }
.v2-profile-drawer .v2-profile-id { grid-column: 2; }
@keyframes v2-profile-slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .v2-profile-drawer { animation: none; } }
.v2-profile-header { display: grid; grid-template-columns: 44px 48px minmax(0, 1fr); gap: 9px; align-items: center; }
.v2-back { border: 1px solid var(--v2-line); border-radius: 10px; background: var(--v2-panel-2); font-size: 26px; }
.v2-profile-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--v2-green); }
.v2-profile-name { min-width: 0; }
.v2-profile-name h1 { margin: 0; font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-profile-name p, .v2-profile-id { margin: 1px 0 0; color: var(--v2-muted); font-size: 12px; font-weight: 700; }
.v2-profile-id { grid-column: 3; justify-self: start; }
.v2-wallet { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 14px 0; }
.v2-wallet button { min-height: 52px; padding: 5px 7px; border-radius: 10px; border: 1px solid var(--v2-line); background: var(--v2-panel-2); font-size: 14px; font-weight: 900; }
.v2-wallet .v2-coin { width: 21px; height: 21px; flex: 0 0 21px; stroke-width: 1.8; }
.v2-wallet button:first-child { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; color: var(--v2-gold); border-color: #8e4785; }
.v2-wallet-amount { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.v2-wallet .subscribe { color: #fff; border-color: #e66ad6; background: linear-gradient(135deg, #ee55da, #8f157e); }
.v2-tabs { display: flex; gap: 6px; margin-bottom: 9px; }
.v2-tabs button { border: 0; border-radius: 9px; background: transparent; color: var(--v2-muted); padding: 0 14px; font-size: 14px; font-weight: 900; }
.v2-tabs button.active { background: var(--v2-panel-2); color: var(--v2-text); }
.v2-notification { min-height: 52px; border: 1px solid var(--v2-line); border-radius: 10px; background: var(--v2-panel-2); padding: 4px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 800; }
.v2-switch { width: 46px; height: 28px; accent-color: var(--v2-green); }
.v2-library { display: grid; gap: 7px; margin-top: 9px; }
.v2-library-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0; }
.v2-library-pagination button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--v2-line); border-radius: 9px; background: var(--v2-panel-2); font-size: 13px; font-weight: 700; }
.v2-library-pagination button:disabled { opacity: .4; cursor: default; }
.v2-library-pagination span { text-align: center; font-size: 12px; color: var(--v2-muted); }
.v2-library-item { min-height: 80px; border: 1px solid var(--v2-line); border-radius: 10px; background: var(--v2-panel-2); padding: 7px; display: grid; grid-template-columns: 54px minmax(0, 1fr) 44px; gap: 9px; align-items: center; text-align: left; }
.v2-library-item img { width: 54px; height: 66px; object-fit: cover; border-radius: 7px; }
.v2-library-copy { min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; }
.v2-library-title { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-bottom: 5px; }
.v2-library-copy strong { display: block; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.v2-library-badge { display: inline-block; flex-shrink: 0; color: var(--v2-gold); padding: 3px 6px; border: 1px solid var(--v2-gold); border-radius: 6px; background: #e85ad616; font-size: 12px; font-weight: 800; }
.v2-library-copy small { display: block; color: var(--v2-muted); font-size: 11px; }
.v2-remove { border: 1px solid #8f2d35; border-radius: 10px; background: #3a2025; color: var(--v2-red); font-size: 22px; }
.v2-social-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 14px 0 8px; }
.v2-social-row a { min-height: 44px; border: 1px solid var(--v2-line); border-radius: 10px; color: var(--v2-text); text-decoration: none; display: grid; place-items: center; font-size: 13px; font-weight: 850; }
.v2-logout { width: 100%; min-height: 46px; border: 1px solid #9f2730; border-radius: 10px; background: #35181d; color: var(--v2-red); font-size: 14px; font-weight: 900; }
.v2-empty, .v2-loading { min-height: 220px; display: grid; place-items: center; color: var(--v2-muted); text-align: center; padding: 24px; }
.v2-toast { position: fixed; z-index: 120; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: min(90vw, 430px); padding: 12px 18px; border: 1px solid #4f5966; border-radius: 999px; background: #151a20; color: #fff; font-weight: 800; text-align: center; }

@media (min-width: 769px) {
  :root { --v2-dock-height: 58px; }
  .v2-shell, .v2-player-screen { height: 100dvh; min-height: 100dvh; }
  .v2-stage { bottom: calc(var(--v2-dock-height) + env(safe-area-inset-bottom)); }
  .v2-video { object-fit: contain; object-position: center; }
  .v2-topbar { min-height: 66px; padding: max(10px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 12px max(14px, env(safe-area-inset-left)); gap: 10px; }
  .v2-topbar--direct { min-height: 58px; padding-top: max(7px, env(safe-area-inset-top)); padding-bottom: 7px; }
  .v2-logo { width: clamp(112px, 14vw, 148px); height: 44px; }
  .v2-logo img { max-height: 30px; }
  .v2-side-tools { right: max(16px, env(safe-area-inset-right)); bottom: calc(var(--v2-dock-height) + 12px + env(safe-area-inset-bottom)); }
  .v2-icon-button { width: 44px; height: 44px; }
  .v2-icon-button svg { width: 23px; height: 23px; }
  .v2-meta { left: max(14px, env(safe-area-inset-left)); right: 80px; bottom: calc(var(--v2-dock-height) + 10px + env(safe-area-inset-bottom)); width: min(720px, calc(100vw - 104px)); }
  .v2-meta h1 { max-width: min(68vw, 640px); font-size: 24px; }
  .v2-tags { margin-top: 4px; font-size: 13px; }
  .v2-actions { width: min(100%, 420px); min-height: calc(var(--v2-dock-height) + env(safe-area-inset-bottom)); grid-template-columns: repeat(3, 1fr); padding: 7px 10px max(7px, env(safe-area-inset-bottom)); }
  .v2-action { height: 44px; gap: 7px; }
  .v2-action svg { width: 22px; height: 22px; }
}

@media (orientation: landscape) and (max-height: 520px) {
  :root { --v2-dock-height: 56px; }
  .v2-topbar { min-height: 58px; padding-top: max(6px, env(safe-area-inset-top)); padding-bottom: 8px; }
  .v2-topbar--direct { min-height: 54px; padding-top: max(5px, env(safe-area-inset-top)); padding-bottom: 5px; }
  .v2-logo { width: clamp(104px, 26vw, 132px); height: 42px; }
  .v2-logo img { max-height: 28px; }
  .v2-meta { bottom: calc(var(--v2-dock-height) + 10px); }
  .v2-meta h1 { font-size: clamp(20px, 3.5vw, 28px); }
  .v2-tags { margin-top: 4px; }
  .v2-side-tools { bottom: calc(var(--v2-dock-height) + 13px); }
  .v2-icon-button { width: 44px; height: 44px; }
  .v2-actions { width: min(100%, 450px); padding-block: 6px; }
  .v2-profile { padding-inline: max(18px, env(safe-area-inset-left)); }
}

@media (max-width: 600px) {
  :root { --v2-dock-height: 60px; }
  .v2-topbar { gap: 8px; padding-inline: 12px; }
  .v2-topbar--direct { min-height: calc(60px + env(safe-area-inset-top)); padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: 8px; }
  .v2-logo { width: clamp(104px, 30vw, 132px); height: 44px; }
  .v2-logo img { max-height: 28px; }
  .v2-earn-button { height: 44px; padding: 4px; border-radius: 14px; }
  .v2-earn-pill { height: 36px; padding-inline: 6px 10px; gap: 6px; }
  .v2-earn-icon { width: 24px; height: 24px; }
  .v2-earn-coin { width: 17px; height: 17px; }
  .v2-earn-pill strong { font-size: 13px; }
  .v2-language-toggle { width: 52px; }
  .v2-balance { padding-inline: 6px; }
  .v2-login-button { padding-inline: 12px; }
  .v2-meta { left: 14px; right: 72px; bottom: calc(var(--v2-dock-height) + 18px + env(safe-area-inset-bottom)); width: auto; }
  .v2-meta h1 { max-width: 100%; font-size: clamp(22px, 7vw, 30px); }
  .v2-episode-chip { font-size: 12px; }
  .v2-side-tools { right: 10px; bottom: calc(var(--v2-dock-height) + 13px + env(safe-area-inset-bottom)); }
  .v2-icon-button { width: 46px; height: 46px; }
  .v2-actions { width: 100%; padding-block: 6px; }
  .v2-action { gap: 5px; font-size: 14px; }
  .v2-action svg { width: 21px; height: 21px; }
  .v2-unlock-modal .v2-modal-actions { gap: 10px; margin-top: 24px; }
  .v2-unlock-modal .v2-modal-actions button { min-height: 56px; font-size: 18px; }
  .v2-share-modal { padding: 24px 20px; }
  .v2-share-modal .v2-modal-header h2 { margin-bottom: 12px; }
  .v2-share-copy-row { grid-template-columns: 1fr; gap: 12px; }
  .v2-share-copy-row input, .v2-share-copy-row button { min-height: 56px; height: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.v2-account-card { margin: 14px 0; padding: 16px; border: 1px solid var(--v2-line, #30353b); border-radius: 12px; background: var(--v2-panel-2, #171a20); font-size: 14px; }
.v2-account-card p, .v2-account-hint { color: var(--v2-muted, #a6adbb); line-height: 1.6; }
.v2-account-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-account-actions button { flex: 1; min-height: 44px; }
.v2-existing-account { display: block; margin-top: 12px; min-height: 36px; border: 0; background: transparent; color: var(--v2-green, #d643bf); }

/* V1 home presentation, scoped so the V2 player/account styles stay isolated. */
.v2-home { min-height: 100svh; background: #060408; }
.v2-home-top-search, .v2-home-hero { display: none; }
.v2-home .v2-topbar { position: sticky; top: 0; background: #0b070d; }
.v2-logo { padding: 0; }
.v2-home-content { max-width: 430px; margin: 0 auto; padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.v2-home .search { width: calc(100% - 36px); margin: 10px 18px; min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid #513856; border-radius: 22px; background: #151019; color: #b8aab9; font-size: 14px; font-weight: 850; }
.v2-home .search img { width: 16px; height: 16px; object-fit: contain; }
.v2-home .channel-tabs { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 7px 18px; background: #120d15; border-block: 1px solid rgba(232,90,214,.1); }
.v2-home .channel { flex: 0 0 auto; padding: 0 10px; border-radius: 22px; border: 1px solid #513856; background: #211725; color: #b8aab9; font-weight: 900; }
.v2-home .channel.active { background: linear-gradient(135deg, #ee55da, #8f157e); border-color: #e66ad6; color: #fff; }
.v2-home .banner { position: relative; display: block; width: calc(100% - 52px); margin: 14px 26px 0; height: 92px; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: #111; }
.v2-home .banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-home .banner-dots { position: absolute; right: 8px; bottom: 7px; display: inline-flex; gap: 5px; padding: 4px 6px; border-radius: 999px; background: rgba(0,0,0,.34); }
.v2-home .banner-dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.45); }
.v2-home .banner-dots span.active { width: 13px; border-radius: 999px; background: var(--v2-gold); }
.v2-home .section-head { margin: 17px 27px 12px; display: flex; align-items: center; justify-content: space-between; }
.v2-home .section-title { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 950; }
.v2-home .section-title::before { content: ""; width: 4px; height: 16px; border-radius: 6px; background: linear-gradient(#ef7bdf, #a71892); }
.v2-home .more { color: #b4b6be; font-weight: 900; background: transparent; border: 0; }
.v2-home .featured { margin: 0 27px; min-height: 191px; padding: 18px 160px 58px 14px; position: relative; overflow: hidden; border-radius: 10px; border: 1px solid rgba(214,67,191,.5); background: linear-gradient(110deg, rgba(48,17,52,.84), rgba(6,4,8,.52)), url('../assets00/original-app/figma__drama__featured_card_bg.webp') center/cover, #0b070d; cursor: pointer; }
.v2-home .featured h2 { margin: 0 0 9px; color: #ef9be5; font-size: 17px; line-height: 1.2; font-weight: 950; overflow-wrap: anywhere; }
.v2-home .pills { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 11px; }
.v2-home .pill { padding: 3px 7px; border-radius: 4px; background: rgba(232,90,214,.14); color: #ef89e2; font-weight: 900; font-size: 12px; }
.v2-home .pill.gray { color: #ced0d7; background: rgba(255,255,255,.16); }
.v2-home .featured p { margin: 0; color: #e989db; font-size: 13px; font-weight: 900; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2-home .watch-now { position: absolute; left: 14px; bottom: 14px; min-height: 34px; padding: 0 12px; border: 1px solid #e66ad6; border-radius: 18px; display: inline-flex; align-items: center; gap: 7px; background: linear-gradient(135deg,#ee55da,#8f157e); color: #fff; font-size: 13px; font-weight: 950; box-shadow: 0 7px 20px rgba(143,21,126,.24); }
.v2-home .play-dot { width: 14px; height: 14px; border-radius: 50%; background: #641159; display: grid; place-items: center; }
.v2-home .play-dot::before { content: ""; border-block: 4px solid transparent; border-left: 6px solid #fff1b6; margin-left: 2px; }
.v2-home .featured-poster { position: absolute; right: 14px; top: 14px; bottom: 14px; width: 133px; border-radius: 8px; overflow: hidden; box-shadow: 0 8px 22px rgba(143,21,126,.24); }
.v2-home .featured-poster img, .v2-home .poster-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-home .poster-grid { margin: 14px 26px 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 10px; row-gap: 18px; align-items: start; }
.v2-home .poster-card { min-width: 0; position: relative; cursor: pointer; }
.v2-home .poster-cover { position: relative; aspect-ratio: 9/16; overflow: hidden; border-radius: 7px; background: #17101a; }
.v2-home .poster-cover::after { content: ""; position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(180deg,transparent,rgba(0,0,0,.82)); pointer-events: none; }
.v2-home .corner { position: absolute; z-index: 2; top: 0; left: 0; min-height: 24px; min-width: 57px; padding: 3px 7px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 7px 0; background: #8f197f; color: #fff; font-weight: 800; font-size: 13px; }
.v2-home .corner-free { background: #56134e; color: #f5d9f1; }
.v2-home .corner svg { flex: 0 0 15px; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.v2-catalog-status:empty { display: none; }
.v2-catalog-status { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 8px 18px; color: var(--v2-muted); font-size: 13px; }
.v2-catalog-status button { flex: 0 0 auto; padding: 8px 12px; border: 1px solid #8e4785; border-radius: 8px; background: #32172f; color: var(--v2-gold); }
.v2-home .poster-heat { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 7px; display: flex; align-items: center; gap: 4px; color: #fff; font-size: 15px; line-height: 1; font-weight: 950; text-shadow: 0 1px 4px #000; }
.v2-home .poster-heat svg { width: 15px; height: 18px; flex: 0 0 auto; fill: #df4bc9; }
.v2-home .poster-title { min-height: 42px; margin: 8px 0 5px; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; color: #f7f7fb; font-size: 16px; line-height: 1.3; font-weight: 950; }
.v2-home .poster-meta { min-height: 22px; display: flex; flex-wrap: wrap; gap: 5px; }
.v2-home .poster-chip { max-width: 100%; padding: 3px 7px; overflow: hidden; border-radius: 4px; background: rgba(255,255,255,.16); color: #bec1c9; font-size: 12px; line-height: 1.2; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.v2-home .home-more { display: block; margin: 18px auto 0; padding: 0 24px; border: 1px solid #513856; border-radius: 22px; color: #d7c8d8; background: #211725; }
.v2-home .home-more[hidden] { display: none; }
.v2-home-search-input { width: 100%; min-height: 44px; border: 1px solid var(--v2-line); border-radius: 8px; background: var(--v2-bg); color: var(--v2-text); padding: 8px 12px; }
.v2-home-search-result { display: flex; gap: 12px; align-items: center; width: 100%; margin-top: 10px; padding: 8px; border: 1px solid var(--v2-line); border-radius: 8px; background: var(--v2-panel); text-align: start; }
.v2-home-search-result img { width: 44px; height: 62px; object-fit: cover; border-radius: 4px; }
.v2-home-search-result strong, .v2-home-search-result small { display: block; }
.v2-home-search-result small { color: var(--v2-muted); margin-top: 4px; }
@media (max-width: 360px) {
  .v2-home .featured { margin-inline: 18px; padding-right: 146px; }
  .v2-home .featured-poster { width: 118px; }
  .v2-home .poster-grid { margin-inline: 18px; }
  .v2-home .banner { margin-inline: 18px; width: calc(100% - 36px); }
}

/* Desktop home is a full-width video grid; mobile and the detail player stay unchanged. */
@media (min-width: 1024px) {
  .v2-home { --home-gutter: clamp(24px, 2.2vw, 48px); --home-gap: clamp(18px, 1.4vw, 28px); }
  .v2-home .v2-topbar { display: grid; grid-template-columns: minmax(120px, 148px) max-content minmax(220px, 1fr) max-content 52px 46px; gap: 18px; padding: 16px var(--home-gutter); min-height: 84px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .v2-home .v2-top-spacer { display: none; }
  .v2-home .v2-home-top-search { display: flex; width: min(100%, 680px); min-width: 0; justify-self: center; align-items: center; overflow: hidden; border: 1px solid #513856; border-radius: 12px; background: #1b131f; }
  .v2-home-top-search:focus-within { border-color: var(--v2-gold); }
  .v2-home-top-search input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 0; background: transparent; color: var(--v2-text); cursor: text; }
  .v2-home-top-search input::placeholder { color: #aeb2bc; }
  .v2-home-top-search button { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; padding: 0 15px; border: 0; border-left: 1px solid #604566; background: transparent; color: var(--v2-text); font-weight: 700; }
  .v2-home-top-search button:hover { background: #34243a; }
  .v2-home-top-search svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
  .v2-home-content { width: 100%; max-width: 2560px; margin: 0 auto; padding: 0 var(--home-gutter) 40px; }
  .v2-home .search, .v2-home .banner, .v2-home .section-head, .v2-home .featured { display: none; }
  .v2-home .channel-tabs { gap: 12px; padding: 18px 0; border: 0; background: transparent; }
  .v2-home .channel { border-radius: 10px; padding: 0 24px; }
  .v2-home .poster-grid { margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--home-gap); align-items: stretch; }
  .v2-home .poster-card[data-v2-home-first] { display: none; }
  .v2-home .poster-cover { aspect-ratio: 16 / 9; border-radius: 10px; }
  .v2-home .poster-title { font-size: 16px; font-weight: 750; line-height: 1.4; min-height: 44px; margin: 10px 0 7px; }
  .v2-home .poster-meta { gap: 8px; }
  .v2-home .poster-chip { background: transparent; padding: 0; color: var(--v2-muted); font-size: 13px; }
  .v2-home .poster-card:hover .poster-title { color: var(--v2-gold); }
  .v2-home .poster-card:focus-visible { border-radius: 10px; }
  .v2-home .v2-home-hero { display: flex; flex-direction: column; grid-column: span 3; grid-row: span 2; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid #513856; border-radius: 12px; background: #130d16; }
  .v2-home-hero-stage { flex: 1; position: relative; min-height: 280px; overflow: hidden; isolation: isolate; background: #000; }
  .v2-home-hero-poster, .v2-home-preview-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
  .v2-home-hero-poster { opacity: .85; }
  .v2-home-preview-start { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; width: 100%; border: 0; background: linear-gradient(0deg, rgba(0,0,0,.25), transparent 60%); color: #fff; font-weight: 800; font-size: 16px; text-shadow: 0 2px 12px #000; }
  .v2-home-preview-start svg { width: 70px; height: 70px; padding: 17px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; fill: currentColor; background: rgba(0,0,0,.45); }
  .v2-home-preview-start:hover svg { color: var(--v2-gold); border-color: var(--v2-gold); }
  .v2-home-preview-start:disabled { cursor: wait; opacity: .6; }
  .v2-home-hero[data-playing] .v2-home-preview-start, .v2-home-hero[data-playing] .v2-home-hero-poster { display: none; }
  .v2-home-preview-status { position: absolute; z-index: 2; inset: 12px 12px auto; text-align: center; color: #fff; font-size: 14px; pointer-events: none; text-shadow: 0 2px 6px #000; }
  .v2-home-hero-caption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 18px; }
  .v2-home-hero-caption > div { min-width: 0; }
  .v2-home-hero-eyebrow { font-size: 13px; color: var(--v2-muted); }
  .v2-home-hero-caption h2 { margin: 5px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: clamp(18px, 1.45vw, 24px); }
  .v2-home-hero-caption button { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 0 16px; border: 1px solid #e66ad6; border-radius: 9px; background: linear-gradient(135deg, #ee55da, #8f157e); color: #fff; font-size: 14px; font-weight: 750; box-shadow: 0 7px 20px rgba(143,21,126,.22); }
  .v2-home-hero-caption button:hover { border-color: var(--v2-gold); }
}

@media (min-width: 1440px) {
  .v2-home .poster-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
