    /* ==========================================================================
       SEAMLESS IN-PAGE VIDEO PLAYER MODAL (WITH DIRECT RESUME BAR)
       ========================================================================== */
    .player-modal {
      position: fixed;
      inset: 0;
      background: #000;
      z-index: 1000;
      display: none;
      flex-direction: column;
    }

    .player-modal.active {
      display: flex;
    }

    .player-header {
      height: 62px;
      padding: 0 var(--container-pad);
      background: rgba(10, 10, 15, 0.96);
      backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--glass-border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }

    .player-title-box {
      display: flex;
      align-items: center;
      gap: 10px;
      overflow: hidden;
      min-width: 0;
    }

    .player-brand-btn {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 19px;
      font-weight: 900;
      letter-spacing: -0.5px;
      cursor: pointer;
      user-select: none;
      flex-shrink: 0;
      transition: none;
    }

    .player-brand-btn:hover,
    .player-brand-btn:active {
      opacity: 1;
      transform: none;
    }

    .player-divider {
      color: rgba(255, 255, 255, 0.25);
      margin: 0 4px;
      font-size: 13px;
      flex-shrink: 0;
    }

    .player-media-title {
      font-size: 13.5px;
      font-weight: 600;
      color: var(--silver-accent);
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    /* Player TV Series Episode & Season Navigator - 3 Sleek Standalone Minimalist Buttons */
    .player-tv-navigator {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: transparent;
      border: none;
      padding: 0;
      max-width: 500px;
      flex-shrink: 0;
    }

    .player-nav-arrow {
      width: 32px;
      height: 32px;
      border-radius: var(--radius-full);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background: rgba(255, 255, 255, 0.07);
      border: 1px solid var(--glass-border);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      color: rgba(255, 255, 255, 0.75);
      transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
      cursor: pointer;
      flex-shrink: 0;
    }

    .player-nav-arrow:hover:not(:disabled) {
      background: rgba(255, 255, 255, 0.16);
      border-color: rgba(255, 255, 255, 0.25);
      color: #fff;
      transform: translateY(-1px);
    }

    .player-nav-arrow:disabled {
      opacity: 0.2;
      cursor: not-allowed;
      pointer-events: none;
    }

    .player-nav-arrow svg {
      width: 14px;
      height: 14px;
    }

    .player-episodes-trigger-btn {
      height: 32px;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: rgba(255, 255, 255, 0.07);
      border: 1px solid var(--glass-border);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border-radius: var(--radius-full);
      color: #fff;
      font-size: 12px;
      font-weight: 700;
      padding: 0 13px;
      cursor: pointer;
      transition: all 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
      max-width: 300px;
    }

    .player-episodes-trigger-btn:hover {
      background: rgba(255, 255, 255, 0.16);
      border-color: rgba(255, 255, 255, 0.25);
      transform: translateY(-1px);
    }

    .player-episodes-trigger-btn.active {
      background: rgba(255, 255, 255, 0.22);
      border-color: rgba(255, 255, 255, 0.4);
    }

    .player-episodes-trigger-btn svg {
      width: 13px;
      height: 13px;
      flex-shrink: 0;
      opacity: 0.85;
    }

    .player-episodes-trigger-btn .chevron-icon {
      width: 11px;
      height: 11px;
      opacity: 0.55;
      transition: transform 0.25s ease;
    }

    .player-episodes-trigger-btn.active .chevron-icon {
      transform: rotate(180deg);
    }

    .player-ep-title-sub {
      color: var(--silver-accent);
      font-weight: 500;
      font-size: 11px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      max-width: 120px;
    }

    /* Player Episode Drawer / Panel with Rich Previews */
    .player-episode-drawer {
      position: absolute;
      top: 62px;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 100;
      display: flex;
      flex-direction: column;
      pointer-events: none;
      opacity: 0;
      transform: translateY(-8px);
      transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .player-episode-drawer.active {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    .player-drawer-backdrop {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.5);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }

    .player-drawer-content {
      position: relative;
      z-index: 2;
      background: rgba(10, 12, 18, 0.95);
      backdrop-filter: blur(40px);
      -webkit-backdrop-filter: blur(40px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
      padding: 14px var(--container-pad) 18px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      max-height: min(540px, 82vh);
      overflow: hidden;
    }

    .player-drawer-header {
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 12px;
      flex-shrink: 0;
    }

    /* Liquid Glass Dropdown Select (Used in Detail Modal & Player Drawer) */
    .liquid-glass-select {
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.18);
      border-radius: var(--radius-full);
      color: #fff;
      font-size: 12.5px;
      font-weight: 700;
      padding: 6px 30px 6px 14px;
      cursor: pointer;
      outline: none;
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      appearance: none;
      -webkit-appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.75)' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 11px center;
      transition: all 0.22s ease;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    }

    .liquid-glass-select:hover,
    .liquid-glass-select:focus {
      background-color: rgba(255, 255, 255, 0.16);
      border-color: rgba(255, 255, 255, 0.4);
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
      transform: translateY(-1px);
    }

    .liquid-glass-select option {
      background: #0e111a;
      color: #fff;
      padding: 8px 12px;
      font-size: 13px;
    }

    .player-drawer-close:hover {
      background: rgba(255, 255, 255, 0.15);
      color: #fff;
      transform: scale(1.1);
    }

    .player-drawer-close svg {
      width: 14px;
      height: 14px;
    }

    /* Episodes Track with Thumbnails */
    .player-drawer-episodes-track {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
      gap: 12px;
      overflow-y: auto;
      flex: 1;
      min-height: 120px;
      max-height: calc(82vh - 75px);
      padding-right: 6px;
      scrollbar-width: thin;
      scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
    }

    .player-drawer-episodes-track::-webkit-scrollbar {
      width: 5px;
    }

    .player-drawer-episodes-track::-webkit-scrollbar-thumb {
      background: rgba(255, 255, 255, 0.25);
      border-radius: 6px;
    }

    .drawer-ep-card {
      position: relative;
      background: rgba(255, 255, 255, 0.025);
      border: 1px solid rgba(255, 255, 255, 0.07);
      border-radius: 8px;
      overflow: hidden;
      cursor: pointer;
      transition: all 0.2s ease;
      display: flex;
      flex-direction: column;
    }

    .drawer-ep-card:hover {
      background: rgba(255, 255, 255, 0.08);
      border-color: rgba(255, 255, 255, 0.22);
      transform: translateY(-2px);
    }

    .drawer-ep-card.active {
      border-color: rgba(255, 255, 255, 0.45);
      background: rgba(255, 255, 255, 0.09);
    }

    .drawer-ep-thumb-wrap {
      position: relative;
      width: 100%;
      aspect-ratio: 16/9;
      background: #000;
      overflow: hidden;
    }

    .drawer-ep-thumb-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .drawer-ep-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.3) 100%);
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .drawer-ep-play-btn {
      width: 32px;
      height: 32px;
      border-radius: var(--radius-full);
      background: rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(6px);
      border: 1px solid rgba(255, 255, 255, 0.3);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      opacity: 0;
      transform: scale(0.85);
      transition: all 0.18s ease;
    }

    .drawer-ep-card:hover .drawer-ep-play-btn,
    .drawer-ep-card.active .drawer-ep-play-btn {
      opacity: 1;
      transform: scale(1);
    }

    .drawer-ep-card.active .drawer-ep-play-btn {
      background: #fff;
      color: #000;
    }

    .drawer-ep-play-btn svg {
      width: 13px;
      height: 13px;
      fill: currentColor;
    }

    .drawer-ep-tag-top {
      position: absolute;
      top: 5px;
      left: 5px;
      padding: 2px 6px;
      border-radius: 4px;
      font-size: 10px;
      font-weight: 700;
      background: rgba(0, 0, 0, 0.65);
      color: #fff;
      display: flex;
      align-items: center;
      gap: 4px;
    }

    .drawer-ep-now-playing {
      position: absolute;
      bottom: 5px;
      right: 5px;
      padding: 1px 6px;
      border-radius: 3px;
      font-size: 9.5px;
      font-weight: 700;
      background: rgba(255, 255, 255, 0.15);
      border: 1px solid rgba(255, 255, 255, 0.25);
      color: #fff;
      text-transform: uppercase;
      letter-spacing: 0.4px;
    }

    .drawer-ep-info {
      padding: 8px;
      display: flex;
      flex-direction: column;
      gap: 2px;
    }

    .drawer-ep-title {
      font-size: 11.5px;
      font-weight: 700;
      color: #fff;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .drawer-ep-synopsis {
      font-size: 10.5px;
      line-height: 1.35;
      color: var(--text-muted);
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .player-controls-right {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }

    .footer-secret-reset {
      background: transparent;
      border: 1px solid rgba(255, 255, 255, 0.06);
      color: rgba(255, 255, 255, 0.25);
      font-size: 10.5px;
      font-weight: 600;
      padding: 3px 8px;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      cursor: pointer;
      opacity: 0.4;
      transition: all 0.25s ease;
      letter-spacing: 0.3px;
    }

    .footer-secret-reset:hover {
      opacity: 1;
      color: #ff6b6b;
      border-color: rgba(255, 107, 107, 0.35);
      background: rgba(255, 107, 107, 0.08);
    }

    .player-frame-container {
      flex: 1;
      position: relative;
      background: #000;
    }

    .player-frame-container iframe {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }

