:root {
      --bg-main: #09070e;
      --bg-secondary: #120d1d;
      --bg-card: rgba(24, 19, 35, 0.88);
      --bg-card-strong: #191329;
      --purple: #8f58ff;
      --purple-dark: #321c59;
      --violet: #6c3ad8;
      --orange: #ff8c42;
      --yellow: #ffd84d;
      --mint: #b7ffd5;
      --text-main: #f7f3ff;
      --text-soft: #bbb4ca;
      --text-muted: #80788f;
      --white-alpha: rgba(255,255,255,0.08);
      --border-alpha: rgba(255,255,255,0.10);
      --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.45);
      --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.30);
      --radius-xl: 32px;
      --radius-lg: 24px;
      --radius-md: 18px;
      --player-ratio: 16 / 9;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
      background: var(--bg-main);
    }

    body {
      min-width: 320px;
      min-height: 100vh;
      overflow-x: hidden;
      color: var(--text-main);
      font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
      background:
        radial-gradient(circle at 8% 5%, rgba(125, 67, 255, 0.25), transparent 28%),
        radial-gradient(circle at 95% 12%, rgba(92, 50, 180, 0.18), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(102, 53, 180, 0.20), transparent 38%),
        linear-gradient(145deg, #08070d 0%, #0d0915 36%, #160d24 70%, #0a0710 100%);
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: -1;
      background:
        linear-gradient(
          120deg,
          transparent 0%,
          rgba(255,255,255,0.015) 25%,
          transparent 50%,
          rgba(255,255,255,0.012) 75%,
          transparent 100%
        );
      background-size: 300% 300%;
      animation: ambientShift 18s ease-in-out infinite;
    }

    button,
    input {
      font: inherit;
    }

    button {
      border: 0;
    }

    button:focus-visible,
    a:focus-visible {
      outline: 3px solid rgba(255, 216, 77, 0.85);
      outline-offset: 3px;
    }

    ::selection {
      background: rgba(255, 140, 66, 0.35);
      color: #fff;
    }

    .page-shell {
      width: min(100% - 24px, 1080px);
      margin: 0 auto;
      padding: 18px 0 34px;
    }

    .top-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 18px;
      animation: fadeDown 0.7s ease both;
    }

    .brand {
      position: relative;
      display: inline-flex;
      align-items: center;
      color: #fff;
      text-decoration: none;
      font-size: clamp(1.75rem, 6vw, 3rem);
      font-weight: 900;
      letter-spacing: -0.06em;
      line-height: 1;
      text-shadow:
        0 0 10px rgba(186, 141, 255, 0.35),
        0 0 35px rgba(115, 55, 220, 0.20);
    }

    .brand span {
      color: #cdb7ff;
    }

    .brand::after {
      content: "";
      position: absolute;
      width: 45%;
      height: 7px;
      left: 4px;
      bottom: -8px;
      border-radius: 999px;
      background: linear-gradient(90deg, var(--orange), transparent);
      opacity: 0.65;
      filter: blur(1px);
    }

    .next-btn {
      min-height: 44px;
      padding: 10px 17px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      color: #07100b;
      background: linear-gradient(135deg, #d3ffe2, #aaffcd);
      border: 1px solid rgba(255,255,255,0.32);
      border-radius: 14px;
      box-shadow:
        0 8px 25px rgba(103, 255, 158, 0.13),
        inset 0 1px 0 rgba(255,255,255,0.55);
      font-weight: 850;
      font-size: 0.92rem;
      cursor: pointer;
      user-select: none;
      transition:
        transform 180ms ease,
        filter 180ms ease,
        box-shadow 180ms ease;
    }

    .next-btn:hover {
      transform: translateY(-2px) scale(1.025);
      filter: brightness(1.05);
      box-shadow:
        0 12px 28px rgba(103, 255, 158, 0.18),
        inset 0 1px 0 rgba(255,255,255,0.60);
    }

    .next-btn:active {
      transform: translateY(1px) scale(0.97);
    }

    .intro-card {
      position: relative;
      overflow: visible;
      margin-bottom: 16px;
      padding: 22px 86px 22px 20px;
      border: 1px solid var(--border-alpha);
      border-radius: var(--radius-lg);
      background:
        linear-gradient(
          135deg,
          rgba(8, 7, 12, 0.90),
          rgba(23, 16, 36, 0.82)
        );
      box-shadow:
        0 15px 35px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.035);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      animation: slideUp 0.8s 0.08s ease both;
    }

    .intro-card p {
      color: #e3deeb;
      font-size: clamp(0.88rem, 2.2vw, 1rem);
      font-weight: 500;
      line-height: 1.7;
      letter-spacing: 0.005em;
    }

    .new-badge {
      position: absolute;
      top: -13px;
      right: 14px;
      width: 70px;
      height: 70px;
      display: grid;
      place-items: center;
      color: white;
      background:
        linear-gradient(145deg, #ff4b38 0%, #ff7547 55%, #e53121 100%);
      border: 2px solid rgba(255,255,255,0.25);
      box-shadow:
        0 12px 28px rgba(255, 72, 44, 0.30),
        0 0 0 6px rgba(255, 75, 56, 0.055);
      font-size: 0.78rem;
      font-weight: 950;
      letter-spacing: 0.05em;
      transform: rotate(8deg);
      clip-path: polygon(
        50% 0%,
        61% 12%,
        76% 6%,
        82% 21%,
        98% 22%,
        92% 39%,
        100% 50%,
        88% 61%,
        94% 78%,
        78% 78%,
        72% 94%,
        58% 86%,
        50% 100%,
        40% 87%,
        24% 95%,
        21% 79%,
        4% 78%,
        11% 61%,
        0% 51%,
        11% 39%,
        4% 21%,
        21% 21%,
        25% 6%,
        40% 13%
      );
      animation: badgeFloat 3.8s ease-in-out infinite;
    }

    .stream-card {
      overflow: hidden;
      padding: 12px;
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: var(--radius-xl);
      background:
        linear-gradient(
          145deg,
          rgba(49, 37, 67, 0.94),
          rgba(25, 19, 39, 0.96)
        );
      box-shadow: var(--shadow-lg);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      animation: slideUp 0.85s 0.12s ease both;
    }

    .player-wrap {
      position: relative;
      overflow: hidden;
      aspect-ratio: var(--player-ratio);
      border: 6px solid #040307;
      border-radius: 26px;
      background:
        radial-gradient(circle at center, rgba(140,84,255,0.10), transparent 45%),
        #020203;
      box-shadow:
        0 20px 45px rgba(0,0,0,0.42),
        inset 0 1px 0 rgba(255,255,255,0.025);
      isolation: isolate;
    }

    .player-wrap.player-changing {
      animation: playerSwap 400ms ease;
    }

    .video-element {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
      background: #020203;
    }

    .video-element::-webkit-media-controls {
      display: none !important;
    }

    .video-element::-webkit-media-controls-enclosure {
      display: none !important;
    }

    .video-placeholder {
      position: absolute;
      inset: 0;
      z-index: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
      background:
        radial-gradient(
          circle at center,
          rgba(142, 92, 255, 0.12),
          transparent 48%
        ),
        linear-gradient(135deg, rgba(0,0,0,0.12), rgba(36,21,66,0.13));
      transition: opacity 240ms ease;
    }

    .video-placeholder.hidden {
      opacity: 0;
    }

    .play-big {
      width: clamp(65px, 14vw, 92px);
      aspect-ratio: 1;
      display: grid;
      place-items: center;
      padding-left: 4px;
      color: #110e17;
      background: linear-gradient(135deg, var(--yellow), var(--orange));
      border: 2px solid rgba(255,255,255,0.42);
      border-radius: 50%;
      box-shadow:
        0 18px 38px rgba(0,0,0,0.38),
        0 0 40px rgba(255, 170, 60, 0.13);
      cursor: pointer;
      pointer-events: auto;
      transition:
        transform 180ms ease,
        filter 180ms ease;
    }

    .play-big:hover {
      transform: scale(1.06);
      filter: brightness(1.07);
    }

    .play-big:active {
      transform: scale(0.94);
    }

    .play-big svg {
      width: 38%;
      height: 38%;
      fill: currentColor;
    }

    .player-overlay {
      position: absolute;
      inset: 0;
      z-index: 3;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      pointer-events: none;
      background: linear-gradient(
        to top,
        rgba(0,0,0,0.86) 0%,
        rgba(0,0,0,0.38) 17%,
        rgba(0,0,0,0.0) 48%
      );
      opacity: 0;
      transition: opacity 220ms ease;
    }

    .player-wrap.controls-visible .player-overlay,
    .player-wrap:hover .player-overlay {
      opacity: 1;
    }

    .center-pause {
      position: absolute;
      left: 50%;
      top: 50%;
      z-index: 5;
      width: 62px;
      height: 62px;
      display: grid;
      place-items: center;
      transform: translate(-50%, -50%);
      color: #151016;
      background: rgba(255,255,255,0.88);
      border: 1px solid rgba(255,255,255,0.50);
      border-radius: 50%;
      box-shadow: 0 14px 28px rgba(0,0,0,0.32);
      cursor: pointer;
      opacity: 0;
      pointer-events: none;
      transition:
        opacity 180ms ease,
        transform 180ms ease;
    }

    .center-pause.show {
      opacity: 1;
      pointer-events: auto;
      animation: centerPulse 320ms ease;
    }

    .center-pause svg {
      width: 24px;
      height: 24px;
      fill: currentColor;
    }

    .progress-area {
      padding: 0 10px 8px;
      pointer-events: auto;
    }

    .progress-track {
      position: relative;
      width: 100%;
      height: 6px;
      overflow: hidden;
      cursor: pointer;
      border-radius: 999px;
      background: rgba(255,255,255,0.17);
      touch-action: none;
    }

    .progress-fill {
      width: 0;
      height: 100%;
      border-radius: inherit;
      background: linear-gradient(90deg, var(--yellow), var(--orange));
      box-shadow: 0 0 12px rgba(255,168,54,0.30);
    }

    .control-row {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 0 5px 7px;
      pointer-events: auto;
    }

    .control-btn {
      width: 38px;
      height: 38px;
      display: grid;
      place-items: center;
      color: #fff;
      background: transparent;
      border-radius: 11px;
      cursor: pointer;
      transition:
        background 160ms ease,
        transform 160ms ease,
        color 160ms ease;
    }

    .control-btn:hover {
      background: rgba(255,255,255,0.10);
      transform: translateY(-1px);
    }

    .control-btn:active {
      transform: scale(0.94);
    }

    .control-btn svg {
      width: 20px;
      height: 20px;
      fill: currentColor;
    }

    .volume-wrap {
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .volume-slider {
      width: 0;
      max-width: 76px;
      height: 4px;
      appearance: none;
      -webkit-appearance: none;
      overflow: hidden;
      border-radius: 999px;
      background: rgba(255,255,255,0.14);
      opacity: 0;
      transition:
        width 180ms ease,
        opacity 180ms ease;
    }

    .volume-wrap:hover .volume-slider,
    .volume-wrap:focus-within .volume-slider {
      width: 68px;
      opacity: 1;
    }

    .volume-slider::-webkit-slider-thumb {
      appearance: none;
      -webkit-appearance: none;
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #fff;
      box-shadow: -200px 0 0 200px #fff;
    }

    .volume-slider::-moz-range-thumb {
      width: 12px;
      height: 12px;
      border: 0;
      border-radius: 50%;
      background: #fff;
    }

    .time-label {
      margin-left: auto;
      color: rgba(255,255,255,0.87);
      font-size: 0.72rem;
      font-weight: 700;
      white-space: nowrap;
    }

    .film-now-playing {
      position: absolute;
      left: 14px;
      top: 14px;
      z-index: 5;
      max-width: calc(100% - 28px);
      padding: 7px 11px;
      overflow: hidden;
      color: rgba(255,255,255,0.93);
      background: rgba(8, 6, 13, 0.64);
      border: 1px solid rgba(255,255,255,0.10);
      border-radius: 999px;
      box-shadow: 0 8px 20px rgba(0,0,0,0.18);
      backdrop-filter: blur(9px);
      -webkit-backdrop-filter: blur(9px);
      font-size: 0.72rem;
      font-weight: 800;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .status-pill {
      position: absolute;
      top: 14px;
      right: 14px;
      z-index: 5;
      padding: 7px 11px;
      color: #ffe9bd;
      background: rgba(68, 39, 8, 0.72);
      border: 1px solid rgba(255, 183, 83, 0.18);
      border-radius: 999px;
      font-size: 0.69rem;
      font-weight: 800;
      opacity: 0;
      transition: opacity 180ms ease;
    }

    .status-pill.visible {
      opacity: 1;
    }

    .film-info {
      position: relative;
      margin-top: 14px;
      padding-bottom: 4px;
    }

    .ribbon {
      position: relative;
      min-height: 82px;
      display: flex;
      align-items: center;
      padding: 16px 20px;
      margin: 0 10px;
      color: #dad2e9;
      background:
        linear-gradient(90deg, #26153f, #2f1b4e 48%, #26153f);
      border: 1px solid rgba(255,255,255,0.08);
      box-shadow:
        0 14px 28px rgba(0,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.025);
      border-radius: 14px;
      isolation: isolate;
    }

    .ribbon::before,
    .ribbon::after {
      content: "";
      position: absolute;
      top: 0;
      z-index: -1;
      width: 22px;
      height: 100%;
      background: #190f29;
    }

    .ribbon::before {
      left: -21px;
      clip-path: polygon(100% 0, 100% 100%, 0 50%);
    }

    .ribbon::after {
      right: -21px;
      clip-path: polygon(0 0, 100% 50%, 0 100%);
    }

    .film-meta {
      width: 100%;
    }

    .film-label {
      display: block;
      margin-bottom: 4px;
      color: #a692c9;
      font-size: 0.68rem;
      font-weight: 900;
      letter-spacing: 0.16em;
      text-transform: uppercase;
    }

    .film-description {
      color: #e8e3f2;
      font-size: clamp(0.80rem, 2.1vw, 0.96rem);
      line-height: 1.55;
      font-weight: 500;
    }

    .film-title-heading {
      margin-top: 16px;
      padding: 0 5px;
      color: #fff;
      font-size: clamp(1rem, 2.8vw, 1.32rem);
      font-weight: 900;
      letter-spacing: -0.02em;
    }

    .film-list {
      margin-top: 10px;
      display: grid;
      gap: 10px;
    }

    .film-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 48px;
      gap: 8px;
      min-width: 0;
    }

    .film-button {
      min-width: 0;
      min-height: 54px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 13px 16px;
      color: #141011;
      background: linear-gradient(135deg, #ffe66e 0%, #ffd84d 38%, #ff8c42 100%);
      border: 1px solid rgba(255,255,255,0.34);
      border-radius: 17px;
      box-shadow:
        0 10px 24px rgba(255, 144, 66, 0.13),
        inset 0 1px 0 rgba(255,255,255,0.55);
      cursor: pointer;
      text-align: left;
      font-size: clamp(0.83rem, 2.5vw, 0.96rem);
      font-weight: 900;
      line-height: 1.25;
      transition:
        transform 170ms ease,
        box-shadow 170ms ease,
        filter 170ms ease;
    }

    .film-button:hover {
      transform: translateY(-2px) scale(1.01);
      filter: brightness(1.04);
      box-shadow:
        0 15px 30px rgba(255, 144, 66, 0.20),
        inset 0 1px 0 rgba(255,255,255,0.60);
    }

    .film-button:active {
      transform: translateY(1px) scale(0.985);
    }

    .film-button.active {
      box-shadow:
        0 0 0 2px rgba(255,255,255,0.24),
        0 16px 32px rgba(255, 140, 66, 0.22),
        inset 0 1px 0 rgba(255,255,255,0.60);
    }

    .film-button .button-arrow {
      flex: 0 0 auto;
      font-size: 1.02rem;
    }

    .bookmark-btn {
      min-height: 54px;
      display: grid;
      place-items: center;
      color: #d7cef2;
      background:
        linear-gradient(
          145deg,
          rgba(147, 104, 210, 0.18),
          rgba(87, 48, 132, 0.22)
        );
      border: 1px solid rgba(255,255,255,0.11);
      border-radius: 17px;
      box-shadow:
        0 8px 22px rgba(0,0,0,0.20),
        inset 0 1px 0 rgba(255,255,255,0.03);
      cursor: pointer;
      transition:
        transform 170ms ease,
        background 170ms ease,
        color 170ms ease,
        box-shadow 170ms ease;
    }

    .bookmark-btn:hover {
      transform: translateY(-2px);
      background: rgba(159,117,224,0.22);
    }

    .bookmark-btn:active {
      transform: scale(0.94);
    }

    .bookmark-btn.active {
      color: #ffe06a;
      background:
        linear-gradient(
          145deg,
          rgba(255, 216, 77, 0.18),
          rgba(255, 140, 66, 0.12)
        );
      box-shadow:
        0 10px 24px rgba(255, 179, 69, 0.10),
        inset 0 1px 0 rgba(255,255,255,0.06);
      animation: bookmarkBounce 360ms ease;
    }

    .bookmark-btn svg {
      width: 23px;
      height: 23px;
      fill: currentColor;
      stroke: currentColor;
      stroke-width: 1.5;
    }

    .ad-note {
      margin-top: 14px;
      min-height: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 6px;
      color: rgba(218, 207, 238, 0.62);
      font-size: 0.68rem;
      text-align: center;
      line-height: 1.4;
    }

    .footer {
      padding: 30px 0 4px;
      text-align: center;
      animation: fadeIn 1s 0.3s ease both;
    }

    .footer-title {
      font-size: clamp(2rem, 8vw, 3.35rem);
      line-height: 1;
      font-weight: 950;
      letter-spacing: -0.06em;
      color: transparent;
      background: linear-gradient(90deg, #ff9c48, #ff4f38 70%);
      -webkit-background-clip: text;
      background-clip: text;
      text-shadow:
        0 0 25px rgba(255, 104, 60, 0.10);
    }

    .copyright {
      margin-top: 10px;
      color: rgba(255,255,255,0.55);
      font-size: 0.78rem;
      font-weight: 700;
    }

    .toast {
      position: fixed;
      left: 50%;
      bottom: max(18px, env(safe-area-inset-bottom));
      z-index: 100;
      width: min(calc(100% - 26px), 420px);
      padding: 12px 15px;
      transform: translate(-50%, 25px);
      color: #f7f1ff;
      background: rgba(19, 13, 28, 0.92);
      border: 1px solid rgba(255,255,255,0.12);
      border-radius: 14px;
      box-shadow: 0 16px 38px rgba(0,0,0,0.34);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      opacity: 0;
      pointer-events: none;
      text-align: center;
      font-size: 0.78rem;
      font-weight: 700;
      line-height: 1.4;
      transition:
        opacity 220ms ease,
        transform 220ms ease;
    }

    .toast.show {
      transform: translate(-50%, 0);
      opacity: 1;
    }

    @keyframes ambientShift {
      0%, 100% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
    }

    @keyframes fadeDown {
      from {
        opacity: 0;
        transform: translateY(-14px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(22px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes badgeFloat {
      0%, 100% {
        transform: translateY(0) rotate(8deg);
      }
      50% {
        transform: translateY(-5px) rotate(6deg);
      }
    }

    @keyframes playerSwap {
      0% {
        opacity: 0.55;
        transform: scale(0.99);
      }
      100% {
        opacity: 1;
        transform: scale(1);
      }
    }

    @keyframes centerPulse {
      0% {
        transform: translate(-50%, -50%) scale(0.75);
      }
      100% {
        transform: translate(-50%, -50%) scale(1);
      }
    }

    @keyframes bookmarkBounce {
      0% { transform: scale(0.88); }
      55% { transform: scale(1.08); }
      100% { transform: scale(1); }
    }

    @media (min-width: 600px) {
      .page-shell {
        width: min(100% - 40px, 1080px);
        padding-top: 25px;
      }

      .stream-card {
        padding: 18px;
      }

      .film-list {
        gap: 12px;
      }

      .film-row {
        grid-template-columns: minmax(0, 1fr) 54px;
      }

      .bookmark-btn,
      .film-button {
        min-height: 58px;
      }
    }

    @media (min-width: 820px) {
      .page-shell {
        width: min(100% - 56px, 1080px);
      }

      .top-header {
        margin-bottom: 22px;
      }

      .intro-card {
        padding: 24px 108px 24px 25px;
      }

      .stream-card {
        padding: 22px;
      }

      .film-list {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
      }

      .film-row:last-child {
        grid-column: 1 / -1;
      }

      .film-row:last-child .film-button {
        max-width: calc(50% - 31px);
      }

      .footer {
        padding-top: 42px;
      }
    }

    @media (min-width: 1024px) {
      .page-shell {
        padding-top: 32px;
        padding-bottom: 42px;
      }

      .intro-card {
        margin-bottom: 20px;
      }

      .stream-card {
        padding: 24px;
      }

      .player-wrap {
        border-radius: 30px;
      }
    }

    @media (max-width: 390px) {
      .page-shell {
        width: min(100% - 16px, 1080px);
      }

      .top-header {
        gap: 10px;
      }

      .next-btn {
        min-height: 40px;
        padding: 8px 13px;
        font-size: 0.82rem;
      }

      .intro-card {
        padding: 19px 72px 19px 17px;
      }

      .new-badge {
        width: 62px;
        height: 62px;
        right: 9px;
      }

      .stream-card {
        padding: 9px;
        border-radius: 24px;
      }

      .player-wrap {
        border-width: 4px;
        border-radius: 22px;
      }

      .ribbon {
        margin-inline: 7px;
        padding-inline: 16px;
      }

      .ribbon::before {
        left: -16px;
      }

      .ribbon::after {
        right: -16px;
      }

      .film-row {
        grid-template-columns: minmax(0, 1fr) 44px;
        gap: 6px;
      }

      .film-button,
      .bookmark-btn {
        min-height: 50px;
        border-radius: 15px;
      }

      .film-button {
        padding-inline: 13px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      html {
        scroll-behavior: auto;
      }

      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
      }

      body::before {
        animation: none !important;
      }
    }
