/* ==========================================================================
   TEEMEE (添蜜) PC Wide-Screen Web Edition — teemee_pc_widescreen.css
   Activated ONLY on PC desktop (window.innerWidth >= 960 & non-mobile UA)
   via body.tm-pc-widescreen. Mobile H5 (< 960px or mobile UA) stays 100% untouched!
   Core Palette:
   - Obsidian Dark-Gold Base: #0f0a14, #181120
   - Muted Rose-Pink Action Buttons: #e8577a
   - Pure White Back Buttons: #ffffff
   - Warm Champagne Gold Accents: #f3e2bd, #FFC83D
   ========================================================================== */

@media (min-width: 960px) {
  body.tm-pc-widescreen {
    --tm-sidebar-w: 220px;
    background: #0f0a14 !important;
    color: #f3e2bd;
    overflow-x: hidden !important;
  }

  body.tm-pc-widescreen.tm-pc-sidebar-collapsed {
    --tm-sidebar-w: 72px;
  }

  /* --------------------------------------------------------------------------
     1. Expand Root App & Route View Containers to Full Desktop Viewport
     -------------------------------------------------------------------------- */
  body.tm-pc-widescreen #app,
  body.tm-pc-widescreen uni-app,
  body.tm-pc-widescreen uni-page,
  body.tm-pc-widescreen uni-page-wrapper,
  body.tm-pc-widescreen uni-page-body {
    width: 100% !important;
    max-width: none !important;
    background: #0f0a14 !important;
  }

  body.tm-pc-widescreen .app,
  body.tm-pc-widescreen uni-view.app {
    --max: 1600px !important;
    margin-left: var(--tm-sidebar-w) !important;
    margin-right: 0 !important;
    width: calc(100vw - var(--tm-sidebar-w)) !important;
    max-width: calc(100vw - var(--tm-sidebar-w)) !important;
    min-height: 100vh !important;
    background: radial-gradient(circle at 75% 0%, rgba(232, 87, 122, 0.08) 0%, rgba(255, 200, 61, 0.05) 35%, #0f0a14 75%) !important;
    transition: margin-left 0.24s cubic-bezier(0.22, 1, 0.36, 1), width 0.24s cubic-bezier(0.22, 1, 0.36, 1) !important;
    box-sizing: border-box !important;
  }

  body.tm-pc-widescreen .browse-page,
  body.tm-pc-widescreen .route-view {
    width: 100% !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  /* Hide mobile bottom navigation bar on PC widescreen (replaced by left cinema sidebar) */
  body.tm-pc-widescreen .bottom-nav,
  body.tm-pc-widescreen uni-view.bottom-nav.source-nav {
    display: none !important;
  }

  /* --------------------------------------------------------------------------
     2. Left Collapsible Cinema Sidebar (220px) + QR Code Popover
     -------------------------------------------------------------------------- */
  #tm-pc-sidebar {
    display: none;
  }

  body.tm-pc-widescreen #tm-pc-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--tm-sidebar-w);
    z-index: 9500;
    background: linear-gradient(180deg, #160f1e 0%, #100b16 65%, #0d0812 100%);
    border-right: 1px solid rgba(243, 226, 189, 0.14);
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.55);
    display: flex;
    flex-direction: column;
    padding: 16px 12px 14px;
    box-sizing: border-box;
    user-select: none;
    transition: width 0.24s cubic-bezier(0.22, 1, 0.36, 1), padding 0.24s ease;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body.tm-pc-widescreen #tm-pc-sidebar::-webkit-scrollbar {
    width: 4px;
  }
  body.tm-pc-widescreen #tm-pc-sidebar::-webkit-scrollbar-thumb {
    background: rgba(243, 226, 189, 0.18);
    border-radius: 4px;
  }

  /* Brand Header inside Sidebar */
  .tm-pcs-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 4px 4px 14px;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(243, 226, 189, 0.1);
  }

  .tm-pcs-logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-decoration: none;
    min-width: 0;
    flex: 1;
  }

  .tm-pcs-logo-img {
    height: 36px;
    width: auto;
    max-width: 142px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    filter: drop-shadow(0 2px 10px rgba(232, 87, 122, 0.28));
    transition: transform 0.2s ease;
  }

  .tm-pcs-logo-link:hover .tm-pcs-logo-img {
    transform: scale(1.03);
  }

  .tm-pcs-collapse-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid rgba(243, 226, 189, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #f3e2bd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
  }

  .tm-pcs-collapse-btn:hover {
    background: rgba(232, 87, 122, 0.2);
    border-color: rgba(232, 87, 122, 0.55);
    color: #ffffff;
  }

  /* Navigation Section */
  .tm-pcs-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(243, 226, 189, 0.48);
    padding: 6px 10px 6px;
    text-transform: uppercase;
  }

  .tm-pcs-nav {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  .tm-pcs-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-align: left;
    width: 100%;
    box-sizing: border-box;
    position: relative;
  }

  .tm-pcs-nav-item:hover {
    background: rgba(243, 226, 189, 0.08);
    border-color: rgba(243, 226, 189, 0.16);
    color: #ffffff;
    transform: translateX(2px);
  }

  .tm-pcs-nav-item.active {
    background: linear-gradient(90deg, rgba(232, 87, 122, 0.26) 0%, rgba(255, 200, 61, 0.12) 100%);
    border-color: rgba(232, 87, 122, 0.55);
    color: #ffffff;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(232, 87, 122, 0.2);
  }

  .tm-pcs-nav-item.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3.5px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #e8577a 0%, #FFC83D 100%);
  }

  .tm-pcs-nav-icon {
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #f3e2bd;
  }

  .tm-pcs-nav-item.active .tm-pcs-nav-icon {
    color: #FFC83D;
  }

  .tm-pcs-nav-badge {
    margin-left: auto;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(232, 87, 122, 0.24);
    border: 1px solid rgba(232, 87, 122, 0.5);
    color: #ffd6e0;
  }

  /* Quick Entry Cards in Sidebar (VIP, Coin, Download APP QR) */
  .tm-pcs-quick-cards {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(243, 226, 189, 0.1);
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .tm-pcs-card-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .tm-pcs-qcard {
    padding: 10px 10px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 3px;
    transition: all 0.2s ease;
    text-align: left;
    border: 1px solid rgba(243, 226, 189, 0.22);
    background: linear-gradient(145deg, rgba(43, 28, 22, 0.85) 0%, rgba(24, 17, 32, 0.92) 100%);
  }

  .tm-pcs-qcard.vip {
    background: linear-gradient(135deg, rgba(255, 200, 61, 0.2) 0%, rgba(232, 87, 122, 0.18) 100%);
    border-color: rgba(255, 200, 61, 0.45);
  }

  .tm-pcs-qcard.coin {
    background: linear-gradient(135deg, rgba(243, 226, 189, 0.14) 0%, rgba(24, 17, 32, 0.95) 100%);
    border-color: rgba(243, 226, 189, 0.32);
  }

  .tm-pcs-qcard:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45), 0 0 12px rgba(255, 200, 61, 0.22);
    border-color: #FFC83D;
  }

  .tm-pcs-qcard-title {
    font-size: 12.5px;
    font-weight: 800;
    color: #FFF1B8;
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .tm-pcs-qcard-sub {
    font-size: 10.5px;
    color: rgba(243, 226, 189, 0.75);
  }

  /* APP QR Code Entry Button + Popover */
  .tm-pcs-app-wrap {
    position: relative;
  }

  .tm-pcs-app-btn {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    background: #e8577a;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(232, 87, 122, 0.32);
    transition: all 0.2s ease;
  }

  .tm-pcs-app-btn:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 87, 122, 0.45);
  }

  .tm-pcs-qr-popover {
    position: fixed;
    left: calc(var(--tm-sidebar-w) + 12px);
    bottom: 20px;
    width: 228px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(165deg, #1f162b 0%, #120c1a 100%);
    border: 1px solid rgba(255, 200, 61, 0.48);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.78), 0 0 24px rgba(232, 87, 122, 0.22);
    z-index: 9999;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-8px) scale(0.96);
    transition: all 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
  }

  .tm-pcs-app-wrap:hover .tm-pcs-qr-popover,
  .tm-pcs-app-wrap.qr-open .tm-pcs-qr-popover {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) scale(1);
    pointer-events: auto;
  }

  .tm-pcs-qr-title {
    font-size: 14px;
    font-weight: 800;
    color: #FFC83D;
    margin-bottom: 4px;
  }

  .tm-pcs-qr-sub {
    font-size: 11.5px;
    color: #f3e2bd;
    margin-bottom: 10px;
  }

  .tm-pcs-qr-box {
    width: 156px;
    height: 156px;
    margin: 0 auto 10px;
    padding: 8px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .tm-pcs-qr-box img,
  .tm-pcs-qr-box svg {
    width: 100%;
    height: 100%;
    display: block;
  }

  .tm-pcs-qr-link {
    display: inline-block;
    font-size: 11.5px;
    color: #ffffff;
    background: #e8577a;
    padding: 5px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
  }

  /* Collapsed Sidebar State (72px) */
  body.tm-pc-widescreen.tm-pc-sidebar-collapsed .tm-pcs-logo-link,
  body.tm-pc-widescreen.tm-pc-sidebar-collapsed .tm-pcs-section-title,
  body.tm-pc-widescreen.tm-pc-sidebar-collapsed .tm-pcs-nav-label,
  body.tm-pc-widescreen.tm-pc-sidebar-collapsed .tm-pcs-nav-badge,
  body.tm-pc-widescreen.tm-pc-sidebar-collapsed .tm-pcs-qcard-sub,
  body.tm-pc-widescreen.tm-pc-sidebar-collapsed .tm-pcs-app-label {
    display: none !important;
  }

  body.tm-pc-widescreen.tm-pc-sidebar-collapsed .tm-pcs-brand {
    justify-content: center;
  }

  body.tm-pc-widescreen.tm-pc-sidebar-collapsed .tm-pcs-nav-item {
    justify-content: center;
    padding: 12px 0;
  }

  body.tm-pc-widescreen.tm-pc-sidebar-collapsed .tm-pcs-card-row {
    grid-template-columns: 1fr;
  }

  body.tm-pc-widescreen.tm-pc-sidebar-collapsed .tm-pcs-qcard {
    align-items: center;
    padding: 8px 4px;
  }

  /* --------------------------------------------------------------------------
     3. Top Sticky Widescreen Header Bar on Home / Browse Pages
     -------------------------------------------------------------------------- */
  body.tm-pc-widescreen .header.source-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 120 !important;
    background: rgba(15, 10, 20, 0.92) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    border-bottom: 1px solid rgba(243, 226, 189, 0.12) !important;
    padding: 14px 28px 12px !important;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.38) !important;
  }

  body.tm-pc-widescreen .header .topbar {
    max-width: 1540px !important;
    margin: 0 auto !important;
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
  }

  body.tm-pc-widescreen .header .search {
    max-width: 520px !important;
    height: 42px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(243, 226, 189, 0.25) !important;
    background: rgba(24, 17, 32, 0.88) !important;
    padding: 0 18px !important;
    transition: all 0.2s ease !important;
  }

  body.tm-pc-widescreen .header .search:hover {
    border-color: rgba(255, 200, 61, 0.55) !important;
    box-shadow: 0 0 16px rgba(255, 200, 61, 0.16) !important;
  }

  body.tm-pc-widescreen .header .categories {
    max-width: 1540px !important;
    margin: 12px auto 0 !important;
    gap: 10px !important;
    flex-wrap: wrap !important;
  }

  body.tm-pc-widescreen .header .subtabs {
    max-width: 1540px !important;
    margin: 10px auto 0 !important;
  }

  /* --------------------------------------------------------------------------
     4. Full-Width Multi-Column Cinema Poster Grid (Home / Ranking / Saved / UP)
     -------------------------------------------------------------------------- */
  body.tm-pc-widescreen #main.scroll,
  body.tm-pc-widescreen .route-scroll {
    width: 100% !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
  }

  body.tm-pc-widescreen #home.home {
    padding: 18px 28px 40px !important;
    max-width: 1600px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  /* Hero & Featured Banner on PC Home */
  body.tm-pc-widescreen .hero {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 24px !important;
  }

  /* Multi-column Drama Grid: 5-to-6 columns on PC Desktop */
  body.tm-pc-widescreen #grid.grid,
  body.tm-pc-widescreen .grid.source-div:not(.feed-list) {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  body.tm-pc-widescreen #grid.feed-list {
    display: block !important;
    width: 100% !important;
    margin: 16px 0 0 !important;
    padding: 0 !important;
  }

  body.tm-pc-widescreen #grid.feed-list .feed-group {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 20px !important;
    width: 100% !important;
  }

  body.tm-pc-widescreen #grid.feed-list .feed-column {
    display: contents !important;
  }

  /* Cinema Poster Card Styling & Hover "立即观看" #e8577a Overlay */
  body.tm-pc-widescreen .card.source-button {
    position: relative !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    margin: 0 !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, #1b1324 0%, #120d18 100%) !important;
    border: 1px solid rgba(243, 226, 189, 0.14) !important;
    overflow: hidden !important;
    transition: transform 0.26s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.26s ease, border-color 0.26s ease !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.42) !important;
  }

  body.tm-pc-widescreen .card.source-button:hover {
    transform: translateY(-6px) scale(1.02) !important;
    border-color: rgba(255, 200, 61, 0.55) !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.68), 0 0 22px rgba(232, 87, 122, 0.25) !important;
    z-index: 5 !important;
  }

  body.tm-pc-widescreen .card.source-button .poster {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 3 / 4 !important;
    height: auto !important;
    overflow: hidden !important;
    border-radius: 15px 15px 0 0 !important;
  }

  body.tm-pc-widescreen .card.source-button .poster img {
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1) !important;
  }

  body.tm-pc-widescreen .card.source-button:hover .poster img {
    transform: scale(1.07) !important;
  }

  /* Quick "立即观看" Rose-Pink (#e8577a) Button Overlay on Card Hover */
  body.tm-pc-widescreen .card.source-button .poster::after {
    content: "▶ 立即观看";
    position: absolute;
    left: 50%;
    bottom: 38px;
    transform: translate(-50%, 10px);
    padding: 7px 18px;
    border-radius: 999px;
    background: #e8577a;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.4px;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(232, 87, 122, 0.52);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 6;
  }

  body.tm-pc-widescreen .card.source-button:hover .poster::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }

  body.tm-pc-widescreen .card.source-button .source-h3 {
    font-size: 15px !important;
    font-weight: 800 !important;
    color: #fff6e0 !important;
    padding: 10px 12px 4px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  body.tm-pc-widescreen .card.source-button .tags {
    padding: 0 12px 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }

  /* Recommend / Hot Ranking Page (.rank-page) Multi-Column Grid on PC */
  body.tm-pc-widescreen .rank-page .rank-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important;
    gap: 18px !important;
    padding: 18px 28px 40px !important;
  }

  /* Wish / Ranking List Page (.wish-page) Multi-Column Grid on PC */
  body.tm-pc-widescreen .wish-page .wish-content,
  body.tm-pc-widescreen .wish-all-inner {
    max-width: 1540px !important;
    margin: 0 auto !important;
    padding: 16px 28px 40px !important;
  }

  body.tm-pc-widescreen .wish-ranked-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)) !important;
    gap: 16px !important;
  }

  /* UP Community Feed (.up-page) Multi-Column Grid on PC */
  body.tm-pc-widescreen .up-page {
    max-width: 1540px !important;
    margin: 0 auto !important;
    padding: 12px 28px 40px !important;
  }

  body.tm-pc-widescreen .up-page .up-feed {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)) !important;
    gap: 20px !important;
  }

  body.tm-pc-widescreen .up-page .up-post {
    margin: 0 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    border-radius: 16px !important;
    border: 1px solid rgba(243, 226, 189, 0.14) !important;
    background: linear-gradient(180deg, #1a1222 0%, #120d18 100%) !important;
    transition: transform 0.22s ease, border-color 0.22s ease !important;
  }

  body.tm-pc-widescreen .up-page .up-post:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(255, 200, 61, 0.45) !important;
  }

  /* VIP, Coin & Profile Pages Widescreen Polish */
  body.tm-pc-widescreen .vip-body,
  body.tm-pc-widescreen .coin-body,
  body.tm-pc-widescreen .profile-page {
    max-width: 1180px !important;
    margin: 0 auto !important;
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  /* --------------------------------------------------------------------------
     5. PC Cinema Theater Mode for Player & Detail Pages (play-page / detail-page)
        Left/Center HD Video Stage (calc(100% - 380px)) + Right Dock (360px)
     -------------------------------------------------------------------------- */
  body.tm-pc-widescreen .play-page:not(.clips-page) {
    display: flex !important;
    flex-direction: row !important;
    align-items: stretch !important;
    justify-content: space-between !important;
    gap: 20px !important;
    padding: 16px 24px !important;
    width: 100% !important;
    max-width: 1600px !important;
    height: calc(100vh - 20px) !important;
    min-height: 680px !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;
  }

  body.tm-pc-widescreen .play-page:not(.clips-page) > .player-stage {
    width: calc(100% - 380px) !important;
    flex: 1 1 calc(100% - 380px) !important;
    max-width: calc(100% - 380px) !important;
    height: calc(100% - 46px) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    background: #08050b !important;
    border: 1px solid rgba(243, 226, 189, 0.16) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.75) !important;
    position: relative !important;
  }

  /* Position the Danmaku Dock & Keyboard Shortcut Bar neatly under the Left Video Stage */
  body.tm-pc-widescreen .play-page:not(.clips-page) > .tm-dm-dock {
    position: absolute !important;
    left: 24px !important;
    bottom: 14px !important;
    width: calc(100% - 428px) !important;
    max-width: calc(100% - 428px) !important;
    z-index: 35 !important;
    border-radius: 12px !important;
    margin: 0 !important;
  }

  /* Right-Hand 360px Theater Sidebar on Play & Detail Pages */
  .tm-pc-theater-dock {
    display: none;
  }

  body.tm-pc-widescreen .tm-pc-theater-dock {
    width: 360px !important;
    min-width: 360px !important;
    max-width: 360px !important;
    height: 100% !important;
    background: linear-gradient(180deg, #191222 0%, #120d19 100%) !important;
    border: 1px solid rgba(243, 226, 189, 0.18) !important;
    border-radius: 18px !important;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    z-index: 40 !important;
    flex-shrink: 0 !important;
  }

  /* Theater Dock Header (Drama Title + Meta) */
  .tm-pct-head {
    padding: 16px 18px 12px;
    border-bottom: 1px solid rgba(243, 226, 189, 0.12);
    background: rgba(255, 255, 255, 0.02);
  }

  .tm-pct-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .tm-pct-title {
    font-size: 16.5px;
    font-weight: 900;
    color: #fff6e0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tm-pct-vip-tag {
    font-size: 10.5px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    background: linear-gradient(90deg, #FFE7A3, #FFC83D);
    color: #2b1800;
    flex-shrink: 0;
  }

  .tm-pct-desc {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(243, 226, 189, 0.72);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Theater Dock Tabs (选集 / 弹幕热评 / 剧集简介) */
  .tm-pct-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(243, 226, 189, 0.1);
    background: rgba(15, 10, 20, 0.55);
  }

  .tm-pct-tab {
    padding: 7px 6px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: transparent;
    color: rgba(243, 226, 189, 0.72);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.18s ease;
  }

  .tm-pct-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
  }

  .tm-pct-tab.active {
    background: #e8577a;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(232, 87, 122, 0.35);
  }

  /* Theater Dock Scrollable Body */
  .tm-pct-body {
    flex: 1;
    overflow-y: auto;
    padding: 14px 16px;
  }

  .tm-pct-body::-webkit-scrollbar {
    width: 5px;
  }
  .tm-pct-body::-webkit-scrollbar-thumb {
    background: rgba(243, 226, 189, 0.2);
    border-radius: 4px;
  }

  /* Episode Selector Grid inside Theater Dock */
  .tm-pct-ep-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }

  .tm-pct-ep-btn {
    position: relative;
    height: 46px;
    border-radius: 10px;
    border: 1px solid rgba(243, 226, 189, 0.16);
    background: rgba(255, 255, 255, 0.04);
    color: #f3e2bd;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
     flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.18s ease;
  }

  .tm-pct-ep-btn:hover {
    border-color: #FFC83D;
    background: rgba(255, 200, 61, 0.12);
    color: #ffffff;
    transform: translateY(-1px);
  }

  .tm-pct-ep-btn.active {
    background: #e8577a !important;
    border-color: #e8577a !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(232, 87, 122, 0.38) !important;
  }

  .tm-pct-ep-badge {
    font-size: 9px;
    font-weight: 700;
    opacity: 0.85;
    margin-top: 1px;
  }

  /* Danmaku / Comments List inside Theater Dock */
  .tm-pct-dm-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .tm-pct-dm-item {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(243, 226, 189, 0.1);
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: background 0.18s ease;
  }

  .tm-pct-dm-item:hover {
    background: rgba(232, 87, 122, 0.12);
    border-color: rgba(232, 87, 122, 0.35);
  }

  .tm-pct-dm-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: #FFC83D;
    font-weight: 700;
  }

  .tm-pct-dm-text {
    font-size: 13px;
    color: #ffffff;
    line-height: 1.4;
  }

  /* Quick Danmaku Input & Keyboard Shortcuts Footer inside Theater Dock */
  .tm-pct-footer {
    padding: 12px 14px;
    border-top: 1px solid rgba(243, 226, 189, 0.12);
    background: rgba(12, 8, 18, 0.9);
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .tm-pct-dm-form {
    display: flex;
    gap: 8px;
  }

  .tm-pct-dm-input {
    flex: 1;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(243, 226, 189, 0.24);
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    padding: 0 14px;
    font-size: 12.5px;
    outline: none;
  }

  .tm-pct-dm-input:focus {
    border-color: #FFC83D;
  }

  .tm-pct-dm-send {
    height: 36px;
    padding: 0 16px;
    border-radius: 999px;
    border: none;
    background: #e8577a;
    color: #ffffff;
    font-size: 12.5px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(232, 87, 122, 0.35);
  }

  .tm-pct-shortcuts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    font-size: 10.5px;
    color: rgba(243, 226, 189, 0.65);
  }

  .tm-pct-shortcuts kbd {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(243, 226, 189, 0.12);
    border: 1px solid rgba(243, 226, 189, 0.25);
    color: #FFC83D;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    margin-right: 2px;
  }

  /* --------------------------------------------------------------------------
     6. Detail Page (detail-page) Two-Column Cinema Layout on PC
     -------------------------------------------------------------------------- */
  body.tm-pc-widescreen .detail-page {
    max-width: 1540px !important;
    margin: 0 auto !important;
    padding: 16px 28px 40px !important;
    box-sizing: border-box !important;
  }

  body.tm-pc-widescreen .detail-page .detail-scroll .uni-scroll-view-content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 360px !important;
    gap: 24px !important;
    align-items: start !important;
  }

  body.tm-pc-widescreen .detail-page .drama-summary,
  body.tm-pc-widescreen .detail-page .drama-info,
  body.tm-pc-widescreen .detail-page .tm-dm-dock {
    grid-column: 1 / 2 !important;
  }

  body.tm-pc-widescreen .detail-page .detail-tabs {
    grid-column: 2 / 3 !important;
    grid-row: 1 / 2 !important;
    background: #181120 !important;
    padding: 12px 16px 0 !important;
    border-radius: 18px 18px 0 0 !important;
    border: 1px solid rgba(243, 226, 189, 0.16) !important;
    border-bottom: none !important;
    margin: 0 !important;
  }

  body.tm-pc-widescreen .detail-page .detail-panel {
    grid-column: 2 / 3 !important;
    grid-row: 2 / 5 !important;
    background: linear-gradient(180deg, #181120 0%, #120d18 100%) !important;
    padding: 16px !important;
    border-radius: 0 0 18px 18px !important;
    border: 1px solid rgba(243, 226, 189, 0.16) !important;
    border-top: none !important;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55) !important;
  }

  body.tm-pc-widescreen .detail-page .drama-episodes {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
  }

  body.tm-pc-widescreen .detail-page .drama-footer {
    max-width: 1484px !important;
    margin: 16px auto 0 !important;
    border-radius: 16px !important;
  }

  /* --------------------------------------------------------------------------
     7. Clips Page (.clips-page) on PC Desktop — Centered High-Frame Stage
     -------------------------------------------------------------------------- */
  body.tm-pc-widescreen .clips-page {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100vh !important;
    background: radial-gradient(circle at 50% 50%, #1b1226 0%, #0b0710 100%) !important;
    padding: 16px 24px !important;
    box-sizing: border-box !important;
  }

  body.tm-pc-widescreen .clips-page > .player-stage {
    width: 100% !important;
    max-width: 520px !important;
    height: calc(100vh - 36px) !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    border: 1px solid rgba(243, 226, 189, 0.2) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
  }
}
