:root {
      --bg: #090a0f;
      --surface: #13151f;
      --surface-elevated: #1c1e2d;
      --surface-card: #161824;
      --primary: #fe2c55;
      --primary-gradient: linear-gradient(135deg, #fe2c55 0%, #ff5079 100%);
      --accent: #25f4ee;
      --ink: #ffffff;
      --mute: #9499ad;
      --dim: #5c6175;
      --border: rgba(255, 255, 255, 0.08);
      --border-focus: rgba(254, 44, 85, 0.5);
      --glass: rgba(19, 21, 31, 0.75);
      --glass-player: rgba(0, 0, 0, 0.55);
      --nav-height: 62px;
      --header-height: 60px;
      --radius-sm: 8px;
      --radius-md: 14px;
      --radius-lg: 20px;
      --radius-full: 9999px;
      --shadow-sm: 0 4px 12px rgba(0,0,0,0.3);
      --shadow-lg: 0 12px 32px rgba(0,0,0,0.6);
      --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
      --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
      -webkit-tap-highlight-color: transparent;
    }

    html, body {
      width: 100%;
      height: 100%;
      background: var(--bg);
      color: var(--ink);
      font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
      overflow: hidden;
      user-select: none;
      -webkit-user-select: none;
    }

    /* APP CONTAINERS */
    #home, #player {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
    }

    #home {
      display: flex;
      flex-direction: column;
      background: radial-gradient(circle at 50% 0%, #1e132b 0%, #090a0f 65%);
      z-index: 10;
    }

    #player {
      display: none;
      background: #000;
      z-index: 50;
    }

    #player:fullscreen,
    #player:-webkit-full-screen,
    #player.ios-web-fullscreen {
      display: block;
      width: 100vw;
      height: 100vh;
      background: #000;
    }

    .wrap {
      width: 100%;
      max-width: 1100px;
      margin: 0 auto;
      padding: 0 16px;
    }

    /* TOP HEADER */
    header.main-header{position:sticky;top:0;z-index:40;padding:max(10px,env(safe-area-inset-top)) 0 10px;background:linear-gradient(180deg,rgba(9,10,15,.94),rgba(9,10,15,.78));backdrop-filter:blur(24px) saturate(140%);-webkit-backdrop-filter:blur(24px) saturate(140%);border-bottom:1px solid rgba(255,255,255,.055)}
    .header-shell{position:relative;display:flex;align-items:center;gap:20px;min-height:50px;padding:5px 7px 5px 10px;border:1px solid rgba(255,255,255,.065);border-radius:16px;background:rgba(255,255,255,.025);box-shadow:0 10px 38px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.025);overflow:visible}.header-glow{position:absolute;width:180px;height:60px;left:-30px;top:-25px;background:radial-gradient(circle,rgba(254,44,85,.11),transparent 68%);pointer-events:none}
    .brand{position:relative;display:flex;align-items:center;gap:10px;min-width:max-content;padding:4px 7px 4px 3px;border-radius:11px;text-decoration:none;color:#f7f8f8;cursor:pointer;transition:background .2s}.brand:hover{background:rgba(255,255,255,.045)}.brand-icon{width:34px;height:34px;border-radius:10px;background:var(--primary-gradient);display:grid;place-items:center;box-shadow:0 6px 20px rgba(254,44,85,.28)}.brand-icon svg{width:17px;height:17px;fill:#fff}.brand-copy{display:flex;flex-direction:column;line-height:1.05}.brand-title{font-size:17px;font-weight:800;letter-spacing:-.45px;color:#f7f8f8}.brand-subtitle{margin-top:4px;font-size:9px;font-weight:600;text-transform:uppercase;letter-spacing:1.15px;color:#8f95a5}
    .search-container{position:relative;flex:1;max-width:640px;margin-left:auto}.search-box{display:flex;align-items:center;width:100%;height:40px;padding:0 11px;background:rgba(5,6,10,.58);border:1px solid rgba(255,255,255,.075);border-radius:11px;transition:.2s}.search-box:focus-within{border-color:rgba(254,44,85,.55);background:rgba(5,6,10,.82);box-shadow:0 0 0 3px rgba(254,44,85,.09)}.search-box svg{width:17px;height:17px;stroke:#7d8292;flex:0 0 auto}.search-box input{flex:1;height:100%;min-width:0;padding:0 10px;background:transparent;border:0;outline:0;color:#f7f8f8;font:inherit;font-size:13px}.search-box input::placeholder{color:#858b9b}.search-hint{flex:0 0 auto;padding:3px 7px;border:1px solid rgba(255,255,255,.075);border-radius:6px;color:#8f95a5;font-size:10px;font-weight:700;letter-spacing:.3px}.search-clear{display:none;background:none;border:0;color:var(--mute);cursor:pointer;padding:4px}.search-clear.show{display:block}
    @media (max-width:640px){header.main-header{padding-bottom:8px}.header-shell{gap:9px;padding-left:7px;border-radius:14px}.brand{padding-right:2px}.brand-copy{display:none}.brand-icon{width:36px;height:36px}.search-container{max-width:none}.search-box{height:38px;border-radius:10px}.search-hint{display:none}.search-box input{font-size:12px;padding-right:4px}}

    /* SEARCH SUGGESTIONS */
    .suggest-box {
      display: none;
      position: absolute;
      left: 0;
      right: 0;
      top: calc(100% + 8px);
      z-index: 100;
      background: var(--surface-elevated);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      overflow: hidden;
      max-height: 360px;
      overflow-y: auto;
      box-shadow: var(--shadow-lg);
    }

    .suggest-box.open { display: block; }

    .suggest-item {
      display: flex;
      align-items: center;
      gap: 12px;
      width: 100%;
      padding: 10px 14px;
      border: none;
      background: none;
      color: #fff;
      text-align: left;
      cursor: pointer;
      font: inherit;
      border-bottom: 1px solid rgba(255,255,255,0.03);
      transition: background 0.15s;
    }

    .suggest-item:hover, .suggest-item.active {
      background: rgba(254, 44, 85, 0.15);
    }

    .suggest-item img {
      width: 36px;
      height: 48px;
      object-fit: cover;
      border-radius: 6px;
      background: #111;
      flex: 0 0 auto;
    }

    .suggest-meta {
      flex: 1;
      min-width: 0;
    }

    .suggest-meta strong {
      display: block;
      font-size: 14px;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .suggest-meta span {
      font-size: 12px;
      color: var(--mute);
    }

    .suggest-item mark {
      background: none;
      color: var(--primary);
      font-weight: 700;
    }

    /* SCROLLABLE SHELF CONTENT */
    .scroll-body {
      flex: 1;
      overflow-y: auto;
      overflow-x: hidden;
      padding-bottom: calc(var(--nav-height) + 40px + env(safe-area-inset-bottom));
      -webkit-overflow-scrolling: touch;
      scroll-behavior: smooth;
    }

    /* PLAYER CHROME VISIBILITY */
    #player .player-top-bar, #player .tiktok-actions, #player .scrubber-wrap, #player .tiktok-summary { transition: opacity .22s ease, transform .22s ease; }
    #player.chrome-hidden .player-top-bar, #player.chrome-hidden .tiktok-actions, #player.chrome-hidden .scrubber-wrap, #player.chrome-hidden .tiktok-summary { opacity:0; pointer-events:none; }
    #player.chrome-hidden .player-top-bar { transform:translateY(-12px); }
    #player.chrome-hidden .tiktok-actions { transform:translateX(12px); }
    #player.chrome-hidden .scrubber-wrap, #player.chrome-hidden .tiktok-summary { transform:translateY(12px); }

    /* CUSTOM SCROLLBARS */
    .scroll-body { scrollbar-width: thin; scrollbar-color: var(--primary) rgba(255,255,255,.04); }
    .scroll-body::-webkit-scrollbar { width: 8px; }
    .scroll-body::-webkit-scrollbar-track { background: rgba(255,255,255,.025); }
    .scroll-body::-webkit-scrollbar-thumb { background: linear-gradient(180deg,#fe2c55,#a51e42); border: 2px solid var(--bg); border-radius: 999px; }
    .scroll-body::-webkit-scrollbar-thumb:hover { background: #ff5079; }
    .shelf-row { scrollbar-width: thin; scrollbar-color: rgba(254,44,85,.65) transparent; }
    .shelf-row::-webkit-scrollbar { height: 5px; }
    .shelf-row::-webkit-scrollbar-track { background: transparent; }
    .shelf-row::-webkit-scrollbar-thumb { background: rgba(254,44,85,.55); border-radius: 999px; }
    .shelf-row::-webkit-scrollbar-thumb:hover { background: var(--primary); }
    @media (pointer: coarse) {
      .scroll-body, .shelf-row { scrollbar-width: none; }
      .scroll-body::-webkit-scrollbar, .shelf-row::-webkit-scrollbar { display: none; }
    }

    /* HERO BANNER */
    .hero-spotlight {
      margin: 16px 0 24px;
      position: relative;
      border-radius: var(--radius-lg);
      overflow: hidden;
      background: var(--surface-card);
      border: 1px solid var(--border);
      box-shadow: var(--shadow-sm);
    }

    .hero-backdrop {
      position: absolute;
      inset: 0;
      background-size: cover;
      background-position: center;
      filter: blur(40px) brightness(0.35);
      transform: scale(1.2);
    }

    .hero-inner {
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      gap: 16px;
      padding: 20px;
    }

    @media (min-width: 640px) {
      .hero-inner {
        flex-direction: row;
        align-items: center;
        padding: 28px;
        gap: 24px;
      }
    }

    .hero-poster-wrap {
      flex: 0 0 auto;
      position: relative;
      width: 120px;
      aspect-ratio: 3/4;
      border-radius: var(--radius-md);
      overflow: hidden;
      box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    }

    @media (min-width: 640px) {
      .hero-poster-wrap {
        width: 150px;
      }
    }

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

    .hero-badge-tag {
      position: absolute;
      top: 8px;
      left: 8px;
      background: var(--primary-gradient);
      color: #fff;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 0.5px;
      padding: 3px 8px;
      border-radius: var(--radius-full);
      text-transform: uppercase;
    }

    .hero-details {
      flex: 1;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .hero-pill-row {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .pill {
      font-size: 11px;
      font-weight: 600;
      padding: 4px 10px;
      border-radius: var(--radius-full);
      background: rgba(255,255,255,0.08);
      color: #fff;
    }

    .pill.brand-pill {
      background: rgba(254, 44, 85, 0.2);
      color: var(--primary);
      border: 1px solid rgba(254, 44, 85, 0.4);
    }

    .hero-title {
      font-size: 22px;
      font-weight: 800;
      line-height: 1.25;
      letter-spacing: -0.5px;
    }

    @media (min-width: 640px) {
      .hero-title {
        font-size: 28px;
      }
    }

    .hero-summary {
      font-size: 13px;
      color: var(--mute);
      line-height: 1.5;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .hero-actions {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-top: 4px;
    }

    .btn-play-hero {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 22px;
      background: var(--primary-gradient);
      color: #fff;
      border: none;
      border-radius: var(--radius-full);
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 4px 18px rgba(254, 44, 85, 0.45);
      transition: transform 0.2s var(--ease-spring);
    }

    .btn-play-hero:hover {
      transform: scale(1.04);
    }

    .btn-play-hero:active {
      transform: scale(0.96);
    }

    .btn-play-hero svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }

    .btn-share-hero {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 10px 20px;
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
      border: 1px solid var(--border);
      border-radius: var(--radius-full);
      font-size: 14px;
      font-weight: 700;
      cursor: pointer;
      transition: all 0.2s var(--ease-smooth);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    .btn-share-hero:hover {
      background: rgba(255, 255, 255, 0.14);
      border-color: rgba(255, 255, 255, 0.25);
    }

    .btn-share-hero svg {
      width: 15px;
      height: 15px;
      stroke: currentColor;
    }

    /* FILTER CHIPS */
    .filter-scroll {
      display: flex;
      align-items: center;
      gap: 8px;
      overflow-x: auto;
      padding: 4px 0 16px;
      margin-bottom: 8px;
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    .filter-scroll::-webkit-scrollbar { display: none; }

    .chip-btn {
      flex: 0 0 auto;
      padding: 8px 18px;
      border-radius: var(--radius-full);
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--mute);
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s var(--ease-smooth);
    }

    .chip-btn:hover {
      color: #fff;
      border-color: rgba(255,255,255,0.2);
    }

    .chip-btn.active {
      background: #fff;
      color: #000;
      border-color: #fff;
      font-weight: 700;
      box-shadow: 0 2px 10px rgba(255,255,255,0.2);
    }

    /* SECTION TITLES */
    .section-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin: 16px 0 12px;
    }

    .section-title {
      font-size: 16px;
      font-weight: 800;
      letter-spacing: -0.3px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .section-title-icon {
      color: var(--primary);
    }

    .section-count {
      font-size: 12px;
      color: var(--dim);
      font-weight: 600;
    }

    .section-tools {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .sort-select {
      background: var(--surface);
      border: 1px solid var(--border);
      color: var(--mute);
      font: inherit;
      font-size: 12px;
      font-weight: 600;
      padding: 6px 10px;
      border-radius: var(--radius-full);
      outline: none;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239499ad' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 10px center;
      padding-right: 28px;
    }

    .sort-select option {
      background: var(--surface-elevated);
      color: #fff;
    }

    /* GRID DRAMA CARDS */
    .drama-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px 12px;
    }

    @media (min-width: 480px) {
      .drama-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px 14px;
      }
    }

    @media (min-width: 768px) {
      .drama-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 20px 16px;
      }
    }

    @media (min-width: 1024px) {
      .drama-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 22px 18px;
      }
    }

    .drama-card {
      display: flex;
      flex-direction: column;
      gap: 8px;
      background: none;
      border: none;
      text-align: left;
      cursor: pointer;
      font: inherit;
      color: inherit;
      position: relative;
      transition: transform 0.2s var(--ease-smooth);
    }

    .drama-card:hover {
      transform: translateY(-4px);
    }

    .drama-card:active {
      transform: scale(0.98);
    }

    .drama-poster {
      position: relative;
      width: 100%;
      aspect-ratio: 3 / 4.2;
      border-radius: var(--radius-md);
      overflow: hidden;
      background: var(--surface-elevated);
      box-shadow: 0 4px 14px rgba(0,0,0,0.3);
    }

    .drama-poster img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.35s var(--ease-smooth);
    }

    .drama-card:hover .drama-poster img {
      transform: scale(1.05);
    }

    .drama-poster-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(180deg, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.85) 100%);
      pointer-events: none;
    }

    .drama-badge-ep {
      position: absolute;
      bottom: 8px;
      left: 8px;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 6px;
      border: 1px solid rgba(255,255,255,0.1);
    }

    .drama-badge-hd {
      position: absolute;
      top: 8px;
      right: 8px;
      background: rgba(254, 44, 85, 0.9);
      color: #fff;
      font-size: 9px;
      font-weight: 800;
      padding: 2px 6px;
      border-radius: 4px;
      letter-spacing: 0.5px;
    }

    .drama-badge-featured {
      position: absolute;
      top: 8px;
      right: 8px;
      background: linear-gradient(135deg, #fe2c55 0%, #ff5079 100%);
      color: #fff;
      font-size: 9px;
      font-weight: 800;
      padding: 2px 6px;
      border-radius: 4px;
      letter-spacing: 0.5px;
      display: inline-flex;
      align-items: center;
      gap: 3px;
      z-index: 4;
    }

    .drama-share-btn {
      position: absolute;
      top: 8px;
      left: 8px;
      z-index: 6;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.18);
      background: rgba(0, 0, 0, 0.6);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 0.2s var(--ease-spring), background 0.2s;
    }

    .drama-share-btn:hover {
      transform: scale(1.1);
      background: rgba(254, 44, 85, 0.85);
    }

    .drama-share-btn svg {
      width: 14px;
      height: 14px;
      stroke: currentColor;
    }

    .drama-card:focus-visible {
      outline: 2px solid var(--primary);
      outline-offset: 2px;
      border-radius: var(--radius-md);
    }

    .drama-play-hover {
      position: absolute;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0,0,0,0.3);
      opacity: 0;
      transition: opacity 0.2s;
    }

    .drama-card:hover .drama-play-hover {
      opacity: 1;
    }

    .play-circle-icon {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: var(--primary-gradient);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 16px rgba(254, 44, 85, 0.5);
      transform: scale(0.85);
      transition: transform 0.2s var(--ease-spring);
    }

    .drama-card:hover .play-circle-icon {
      transform: scale(1);
    }

    .play-circle-icon svg {
      width: 20px;
      height: 20px;
      fill: #fff;
      margin-left: 2px;
    }

    .drama-meta {
      display: flex;
      flex-direction: column;
      gap: 3px;
    }

    .drama-title {
      font-size: 13px;
      font-weight: 700;
      line-height: 1.3;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: #fff;
    }

    .drama-provider {
      font-size: 11px;
      font-weight: 600;
      color: var(--mute);
      text-transform: capitalize;
    }

    /* HISTORY / LANJUTKAN SECTION */
    .history-card-wrap {
      display: flex;
      gap: 12px;
      overflow-x: auto;
      padding-bottom: 12px;
      scrollbar-width: none;
    }

    .history-card-wrap::-webkit-scrollbar { display: none; }

    .history-item {
      flex: 0 0 240px;
      background: var(--surface-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 10px;
      display: flex;
      gap: 12px;
      cursor: pointer;
      transition: transform 0.2s;
    }

    .history-item:hover { transform: translateY(-2px); }

    .history-thumb {
      width: 60px;
      height: 80px;
      border-radius: var(--radius-sm);
      object-fit: cover;
      flex: 0 0 auto;
    }

    .history-info {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 4px;
      min-width: 0;
    }

    .history-title {
      font-size: 13px;
      font-weight: 700;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .history-ep {
      font-size: 11px;
      color: var(--primary);
      font-weight: 700;
    }

    .history-bar {
      width: 100%;
      height: 4px;
      background: rgba(255,255,255,0.1);
      border-radius: 2px;
      overflow: hidden;
      margin-top: 4px;
    }

    .history-progress {
      height: 100%;
      background: var(--primary-gradient);
      width: 60%;
    }

    /* CATEGORY VIEW */
    .cat-list {
      display: grid;
      grid-template-columns: repeat(1, minmax(0, 1fr));
      gap: 12px;
    }

    @media (min-width: 600px) {
      .cat-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    .cat-card-modern {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 16px 20px;
      background: var(--surface-card);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      color: #fff;
      cursor: pointer;
      transition: all 0.2s var(--ease-smooth);
    }

    .cat-card-modern:hover {
      background: var(--surface-elevated);
      border-color: var(--primary);
      transform: translateX(4px);
    }

    .cat-card-modern .cat-name {
      font-size: 16px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .cat-card-modern .cat-count {
      font-size: 12px;
      font-weight: 700;
      padding: 4px 10px;
      border-radius: var(--radius-full);
      background: rgba(255,255,255,0.06);
      color: var(--mute);
    }

    /* BOTTOM NAVBAR */
    nav.bottom-nav {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      z-index: 45;
      height: calc(var(--nav-height) + env(safe-area-inset-bottom));
      padding-bottom: env(safe-area-inset-bottom);
      background: rgba(15, 17, 26, 0.88);
      backdrop-filter: blur(24px);
      -webkit-backdrop-filter: blur(24px);
      border-top: 1px solid var(--border);
      display: flex;
      align-items: center;
    }

    .nav-inner {
      display: flex;
      width: 100%;
      max-width: 600px;
      margin: 0 auto;
      justify-content: space-around;
    }

    .nav-tab-btn {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 4px;
      height: var(--nav-height);
      background: none;
      border: none;
      color: var(--dim);
      font: inherit;
      font-size: 11px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s var(--ease-smooth);
      position: relative;
    }

    .nav-tab-btn svg {
      width: 22px;
      height: 22px;
      stroke: currentColor;
      transition: transform 0.2s var(--ease-spring);
    }

    .nav-tab-btn.active {
      color: #fff;
    }

    .nav-tab-btn.active svg {
      stroke: var(--primary);
      transform: scale(1.12);
    }

    .nav-tab-btn.active::after {
      content: '';
      position: absolute;
      top: 6px;
      width: 4px;
      height: 4px;
      border-radius: 50%;
      background: var(--primary);
    }

    /* ======================================================= */
    /* TIKTOK FULLSCREEN VERTICAL SWIPE PLAYER                 */
    /* ======================================================= */
    #reel {
      width: 100%;
      height: 100%;
      height: 100dvh;
      overflow-y: scroll;
      scroll-snap-type: y mandatory;
      overscroll-behavior-y: contain;
      scrollbar-width: none;
      -ms-overflow-style: none;
      background: #000;
    }

    #reel::-webkit-scrollbar { display: none; }

    .tiktok-slide {
      position: relative;
      width: 100%;
      height: 100%;
      height: 100dvh;
      scroll-snap-align: start;
      scroll-snap-stop: always;
      background: #000;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .tiktok-video-wrapper {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .tiktok-video {
      width: 100%;
      height: 100%;
      object-fit: contain;
      background: #000;
    }

    /* TOP CONTROLS ON PLAYER */
    .player-top-bar {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      z-index: 30;
      padding: calc(14px + env(safe-area-inset-top)) 16px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0) 100%);
      pointer-events: none;
    }

    .player-top-bar > * {
      pointer-events: auto;
    }

    .player-back-btn {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(0,0,0,0.4);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid rgba(255,255,255,0.15);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: transform 0.2s;
    }

    .player-back-btn:active {
      transform: scale(0.9);
    }

    .player-top-right {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .player-title-pill {
      display: flex;
      align-items: center;
      gap: 6px;
      padding: 6px 14px;
      border-radius: var(--radius-full);
      background: rgba(0,0,0,0.45);
      backdrop-filter: blur(12px);
      border: 1px solid rgba(255,255,255,0.1);
      font-size: 13px;
      font-weight: 700;
      color: #fff;
      max-width: 60%;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
    }

    .player-title-pill .ep-pill {
      color: var(--primary);
      flex: 0 0 auto;
    }

    /* RIGHT TIKTOK ACTION SIDEBAR */
    .tiktok-actions {
      position: absolute;
      right: 12px;
      bottom: calc(85px + env(safe-area-inset-bottom));
      z-index: 25;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      pointer-events: auto;
    }

    .action-btn-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      background: none;
      border: none;
      color: #fff;
      cursor: pointer;
      font: inherit;
      outline: none;
    }

    .action-icon-circle {
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: rgba(22, 24, 35, 0.6);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid rgba(255,255,255,0.12);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 16px rgba(0,0,0,0.4);
      transition: transform 0.2s var(--ease-spring);
    }

    .action-btn-item:active .action-icon-circle {
      transform: scale(0.85);
    }

    .action-icon-circle svg {
      width: 22px;
      height: 22px;
      fill: #fff;
      stroke: none;
      transition: fill 0.2s;
    }

    .action-btn-item.liked .action-icon-circle svg {
      fill: var(--primary);
      animation: heartPulse 0.4s var(--ease-spring);
    }

    @keyframes heartPulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.35); }
      100% { transform: scale(1); }
    }

    .action-label {
      font-size: 11px;
      font-weight: 700;
      color: #fff;
      text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    }

    .avatar-author {
      position: relative;
      margin-bottom: 6px;
    }

    .avatar-author img {
      width: 46px;
      height: 46px;
      border-radius: 50%;
      border: 2px solid #fff;
      object-fit: cover;
      background: #111;
    }

    .avatar-badge-plus {
      position: absolute;
      bottom: -4px;
      left: 50%;
      transform: translateX(-50%);
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: var(--primary);
      color: #fff;
      font-size: 14px;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
    }

    /* SPEED BADGE */
    .speed-badge {
      font-size: 12px;
      font-weight: 800;
      color: #fff;
    }

    /* BOTTOM INFO METADATA */
    .tiktok-bottom-info {
      position: absolute;
      left: 14px;
      right: 76px;
      bottom: calc(22px + env(safe-area-inset-bottom));
      z-index: 25;
      display: flex;
      flex-direction: column;
      gap: 6px;
      pointer-events: none;
      text-shadow: 0 2px 8px rgba(0,0,0,0.9);
    }

    .tiktok-bottom-info > * {
      pointer-events: auto;
    }

    .tiktok-author-row {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .tiktok-author-name {
      font-size: 15px;
      font-weight: 800;
      color: #fff;
      letter-spacing: -0.2px;
    }

    .verified-icon {
      width: 14px;
      height: 14px;
      fill: var(--accent);
    }

    .tiktok-drama-title {
      font-size: 14px;
      font-weight: 700;
      color: #fff;
      line-height: 1.3;
    }

    .tiktok-summary {
      font-size: 12.5px;
      color: rgba(255,255,255,0.85);
      line-height: 1.4;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      cursor: pointer;
      transition: all 0.2s;
    }

    .tiktok-summary.expanded {
      display: block;
      max-height: 180px;
      overflow-y: auto;
      background: rgba(0,0,0,0.6);
      padding: 8px;
      border-radius: 8px;
    }

    .tiktok-summary.hidden { display: none; }

    .more-toggle {
      font-weight: 700;
      color: #fff;
      margin-left: 4px;
    }

    .tiktok-tags {
      display: flex;
      align-items: center;
      gap: 6px;
      flex-wrap: wrap;
      margin-top: 2px;
    }

    .tag-item {
      font-size: 11.5px;
      font-weight: 700;
      color: rgba(255,255,255,0.9);
    }

    .music-ticker {
      display: flex;
      align-items: center;
      gap: 6px;
      font-size: 12px;
      font-weight: 600;
      color: rgba(255,255,255,0.9);
      margin-top: 4px;
      max-width: 240px;
      overflow: hidden;
      white-space: nowrap;
    }

    .music-ticker svg {
      width: 14px;
      height: 14px;
      fill: currentColor;
      flex: 0 0 auto;
      animation: spinRecord 4s linear infinite;
    }

    @keyframes spinRecord {
      100% { transform: rotate(360deg); }
    }

    /* PLAY/PAUSE BIG OVERLAY ICON */
    .play-pause-indicator {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) scale(0.5);
      width: 72px;
      height: 72px;
      border-radius: 50%;
      background: rgba(0,0,0,0.6);
      backdrop-filter: blur(10px);
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: all 0.3s var(--ease-spring);
      z-index: 20;
    }

    .play-pause-indicator.show {
      opacity: 1;
      transform: translate(-50%, -50%) scale(1);
    }

    .play-pause-indicator svg {
      width: 32px;
      height: 32px;
      fill: #fff;
    }

    /* DOUBLE TAP FLYING HEART */
    .floating-heart {
      position: absolute;
      width: 80px;
      height: 80px;
      pointer-events: none;
      transform: translate(-50%, -50%) scale(0);
      animation: flyHeart 0.8s ease-out forwards;
      z-index: 35;
      filter: drop-shadow(0 4px 12px rgba(254,44,85,0.6));
    }

    .floating-heart svg {
      width: 100%;
      height: 100%;
      fill: var(--primary);
    }

    @keyframes flyHeart {
      0% { transform: translate(-50%, -50%) scale(0.2) rotate(0deg); opacity: 0.9; }
      40% { transform: translate(-50%, -50%) scale(1.3) rotate(-15deg); opacity: 1; }
      70% { transform: translate(-50%, -100px) scale(1.1) rotate(10deg); opacity: 0.8; }
      100% { transform: translate(-50%, -160px) scale(0.8) rotate(0deg); opacity: 0; }
    }

    /* SCRUBBABLE TIMELINE / PROGRESS BAR */
    .scrubber-wrap {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 16px;
      z-index: 30;
      cursor: pointer;
      display: flex;
      align-items: flex-end;
    }

    .scrubber-track {
      width: 100%;
      height: 3px;
      background: rgba(255,255,255,0.25);
      position: relative;
      transition: height 0.15s;
    }

    .scrubber-wrap:hover .scrubber-track,
    .scrubber-wrap.active .scrubber-track {
      height: 6px;
    }

    .scrubber-fill {
      height: 100%;
      background: var(--primary);
      width: 0%;
      position: relative;
    }

    .scrubber-thumb {
      position: absolute;
      right: -5px;
      top: 50%;
      transform: translateY(-50%) scale(0);
      width: 12px;
      height: 12px;
      border-radius: 50%;
      background: #fff;
      box-shadow: 0 2px 6px rgba(0,0,0,0.5);
      transition: transform 0.15s var(--ease-spring);
    }

    .scrubber-wrap:hover .scrubber-thumb,
    .scrubber-wrap.active .scrubber-thumb {
      transform: translateY(-50%) scale(1);
    }

    .time-tooltip {
      position: absolute;
      bottom: 14px;
      background: rgba(0,0,0,0.85);
      color: #fff;
      font-size: 11px;
      font-weight: 700;
      padding: 3px 8px;
      border-radius: 4px;
      transform: translateX(-50%);
      pointer-events: none;
      display: none;
      white-space: nowrap;
    }

    .time-tooltip.show { display: block; }

    /* EPISODE BOTTOM SHEET DRAWER */
    .drawer-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.7);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: 60;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s var(--ease-smooth);
    }

    .drawer-overlay.open {
      opacity: 1;
      pointer-events: auto;
    }

    .ep-sheet {
      position: fixed;
      left: 0;
      right: 0;
      bottom: 0;
      max-height: 75vh;
      background: #141622;
      border-top: 1px solid var(--border);
      border-radius: 20px 20px 0 0;
      z-index: 65;
      transform: translateY(100%);
      transition: transform 0.35s var(--ease-smooth);
      display: flex;
      flex-direction: column;
      box-shadow: 0 -10px 40px rgba(0,0,0,0.8);
      padding-bottom: max(16px, env(safe-area-inset-bottom));
    }

    .drawer-overlay.open .ep-sheet {
      transform: translateY(0);
    }

    .sheet-handle-bar {
      width: 40px;
      height: 4px;
      border-radius: 2px;
      background: rgba(255,255,255,0.2);
      margin: 12px auto 6px;
    }

    .sheet-header {
      padding: 10px 20px 14px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-bottom: 1px solid var(--border);
    }

    .sheet-title {
      font-size: 16px;
      font-weight: 800;
    }

    .sheet-subtitle {
      font-size: 12px;
      color: var(--mute);
    }

    .sheet-close-btn {
      background: none;
      border: none;
      color: var(--mute);
      font-size: 20px;
      cursor: pointer;
      padding: 4px 8px;
    }

    .sheet-ep-grid {
      padding: 16px 20px;
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 10px;
      overflow-y: auto;
      max-height: calc(75vh - 110px);
    }

    @media (min-width: 600px) {
      .sheet-ep-grid {
        grid-template-columns: repeat(8, minmax(0, 1fr));
      }
    }

    .ep-btn-tile {
      aspect-ratio: 1;
      border-radius: 10px;
      background: var(--surface-card);
      border: 1px solid var(--border);
      color: #fff;
      font-size: 14px;
      font-weight: 700;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s var(--ease-spring);
    }

    .ep-btn-tile:hover {
      background: var(--surface-elevated);
      border-color: rgba(255,255,255,0.3);
      transform: scale(1.05);
    }

    .ep-btn-tile.active {
      background: var(--primary-gradient);
      border-color: var(--primary);
      box-shadow: 0 4px 12px rgba(254,44,85,0.4);
    }

    /* TOAST NOTIFICATION */
    .toast {
      position: fixed;
      top: calc(20px + env(safe-area-inset-top));
      left: 50%;
      transform: translateX(-50%) translateY(-30px);
      background: rgba(20, 22, 34, 0.92);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid var(--border);
      color: #fff;
      padding: 10px 20px;
      border-radius: var(--radius-full);
      font-size: 13px;
      font-weight: 600;
      box-shadow: var(--shadow-lg);
      z-index: 100;
      opacity: 0;
      pointer-events: none;
      transition: all 0.3s var(--ease-spring);
    }

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

    /* BUFFERING SPINNER */
    .buffering-spinner {
      position: absolute;
      width: 48px;
      height: 48px;
      border: 3px solid rgba(255,255,255,0.15);
      border-top-color: var(--primary);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
      z-index: 15;
      display: none;
    }

    .buffering-spinner.show { display: block; }

    @keyframes spin {
      100% { transform: rotate(360deg); }
    }

    /* EMPTY STATES */
    .empty-state {
      text-align: center;
      padding: 60px 20px;
      color: var(--mute);
    }

    .empty-state svg {
      width: 48px;
      height: 48px;
      stroke: var(--dim);
      margin-bottom: 12px;
    }

    .empty-state h3 {
      font-size: 16px;
      color: #fff;
      margin-bottom: 6px;
    }

    .empty-state p {
      font-size: 13px;
    }

    /* SKELETON LOADING */
    .skel-hero {
      height: 260px;
      border-radius: var(--radius-lg);
      margin-top: 16px;
    }

    .skel-title {
      width: 180px;
      height: 16px;
      margin: 16px 0 12px;
    }

    .skel-card {
      aspect-ratio: 3 / 4.2;
      width: 100%;
      border-radius: var(--radius-md);
    }

    .skeleton {
      position: relative;
      overflow: hidden;
      background: var(--surface);
    }

    .skeleton::after {
      content: "";
      position: absolute;
      inset: 0;
      transform: translateX(-100%);
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
      animation: shimmer 1.4s infinite;
    }

    @keyframes shimmer {
      100% { transform: translateX(100%); }
    }

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

    /* HOME FOOTER */
    .home-footer {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 28px 4px 40px;
      border-top: 1px solid var(--border);
      margin-top: 20px;
      font-size: 12px;
      color: var(--dim);
    }

    .home-footer a {
      color: var(--mute);
      text-decoration: none;
      font-weight: 600;
    }

    .home-footer a:hover {
      color: var(--primary);
    }

    /* VOLUME CONTROL CARD */
    .volume-card {
      position: fixed;
      right: 22px;
      bottom: 96px;
      z-index: 80;
      display: none;
      align-items: center;
      gap: 10px;
      background: rgba(10, 11, 16, 0.92);
      border: 1px solid rgba(255, 255, 255, 0.12);
      border-radius: 9999px;
      padding: 8px 12px;
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    }

    .volume-card.show {
      display: flex;
      animation: volPop 0.25s var(--ease-spring);
    }

    @keyframes volPop {
      from { opacity: 0; transform: translateY(8px) scale(0.9); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .vol-mute-btn {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      border: 1px solid rgba(255, 255, 255, 0.15);
      background: rgba(255, 255, 255, 0.06);
      color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      flex: 0 0 auto;
    }

    .vol-mute-btn svg {
      width: 15px;
      height: 15px;
    }

    .volume-card input[type="range"] {
      width: 120px;
      accent-color: var(--primary);
      cursor: pointer;
    }

    /* UP NEXT OVERLAY */
    .upnext-overlay {
      position: fixed;
      inset: 0;
      z-index: 90;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.72);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s var(--ease-smooth);
    }

    .upnext-overlay.show {
      opacity: 1;
      pointer-events: auto;
    }

    .upnext-card {
      display: flex;
      gap: 16px;
      width: 90%;
      max-width: 420px;
      background: rgba(19, 21, 31, 0.96);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: var(--radius-lg);
      padding: 16px;
      box-shadow: var(--shadow-lg);
      transform: scale(0.95);
      transition: transform 0.3s var(--ease-spring);
    }

    .upnext-overlay.show .upnext-card {
      transform: scale(1);
    }

    .upnext-thumb {
      width: 90px;
      flex: 0 0 auto;
    }

    .upnext-thumb img {
      width: 100%;
      aspect-ratio: 3 / 4.2;
      object-fit: cover;
      border-radius: var(--radius-sm);
      background: #111;
    }

    .upnext-info {
      flex: 1;
      min-width: 0;
      display: flex;
      flex-direction: column;
      gap: 6px;
    }

    .upnext-label {
      font-size: 12px;
      font-weight: 700;
      color: var(--accent);
    }

    .upnext-title {
      font-size: 15px;
      font-weight: 800;
      line-height: 1.25;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .upnext-sub {
      font-size: 12px;
      color: var(--mute);
    }

    .upnext-actions {
      display: flex;
      gap: 8px;
      margin-top: 6px;
    }

    .upnext-btn {
      padding: 8px 16px;
      border-radius: var(--radius-full);
      border: none;
      background: var(--primary-gradient);
      color: #fff;
      font: inherit;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 4px 14px rgba(254, 44, 85, 0.35);
    }

    .upnext-btn.ghost {
      background: rgba(255, 255, 255, 0.08);
      color: #fff;
      border: 1px solid var(--border);
      box-shadow: none;
    }

    /* UPDATE BANNER */
    .update-banner {
      position: fixed;
      left: 16px;
      right: 16px;
      bottom: calc(16px + env(safe-area-inset-bottom));
      z-index: 120;
      display: flex;
      align-items: center;
      gap: 12px;
      background: rgba(24, 26, 39, 0.97);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      padding: 12px 16px;
      box-shadow: var(--shadow-lg);
      color: #fff;
      font-size: 13px;
      font-weight: 600;
      transform: translateY(120%);
      opacity: 0;
      transition: all 0.35s var(--ease-smooth);
    }

    .update-banner.show {
      transform: translateY(0);
      opacity: 1;
    }

    .update-banner-info {
      flex: 1;
      display: flex;
      align-items: center;
      gap: 8px;
      color: var(--accent);
    }

    .update-reload-btn {
      padding: 8px 16px;
      border-radius: var(--radius-full);
      border: none;
      background: var(--primary-gradient);
      color: #fff;
      font: inherit;
      font-size: 13px;
      font-weight: 700;
      cursor: pointer;
    }

    .update-dismiss-btn {
      width: 30px;
      height: 30px;
      border-radius: 8px;
      border: 1px solid var(--border);
      background: transparent;
      color: var(--mute);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }
  .home-shelf{margin:22px 0}.shelf-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.shelf-head h2{font-size:17px}.shelf-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(145px,180px);gap:12px;overflow-x:auto;padding-bottom:8px;scrollbar-width:thin}.shelf-card{cursor:pointer;min-width:0}.shelf-card img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:10px;background:#111}.shelf-card strong{font-size:12px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:5px}.bookmark-btn{position:absolute;left:8px;bottom:8px;z-index:4;border:0;border-radius:50%;width:34px;height:34px;background:rgba(0,0,0,.68);color:#fff;font-size:17px}.card-progress{height:3px;background:rgba(255,255,255,.18);margin-top:5px;border-radius:9px;overflow:hidden}.card-progress span{display:block;height:100%;background:var(--primary)}.detail-layout{display:grid;grid-template-columns:110px 1fr;gap:16px;padding:12px}.detail-layout img{width:110px;aspect-ratio:3/4;object-fit:cover;border-radius:10px}.detail-actions{display:flex;gap:8px;margin-top:14px}.retry-btn{margin-top:12px;padding:9px 16px;border:0;border-radius:8px;background:var(--primary);color:#fff;font-weight:700}.drama-poster img,.shelf-card img{opacity:.15;transition:opacity .25s ease,transform .35s}.drama-poster img.loaded,.shelf-card img.loaded{opacity:1}    /* RESPONSIVE HARDENING */
    .hero-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.hero-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;color:#b9bdca}.btn-share-icon{width:44px;padding:0;justify-content:center}.detail-meta{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}.detail-meta span{padding:4px 8px;border:1px solid var(--border);border-radius:999px;color:var(--mute);font-size:10px}.home-shelf{margin:30px 0}.shelf-head{margin-bottom:14px}.drama-card{background:transparent;border-color:transparent}.drama-card:hover{border-color:var(--border);background:rgba(255,255,255,.018)}@media (min-width:900px){nav.bottom-nav{display:none}.scroll-body{padding-bottom:48px}}
    .drama-title,.hero-title,.history-title,.suggest-meta strong,.tiktok-title,.tiktok-summary-text{overflow-wrap:anywhere}
    button,.nav-tab-btn,.chip,.back-btn,.player-icon-btn{min-height:44px}
    @media (max-width:380px){.wrap{padding-inline:10px}.header-shell{padding-left:5px}.brand-icon{width:34px;height:34px}.search-box{padding-inline:9px}.search-box input{font-size:11px}.hero-title{font-size:27px}.hero-inner{padding-inline:14px}.drama-grid{gap:10px}.tiktok-actions{right:8px}.tiktok-summary{left:12px;right:66px}.bottom-nav .nav-inner{padding-inline:4px}}
    @media (orientation:landscape) and (max-height:520px){header.main-header{padding-top:max(4px,env(safe-area-inset-top));padding-bottom:4px}.header-shell{min-height:42px}.brand-icon{width:32px;height:32px}.search-box{height:34px}.hero-section{min-height:calc(100dvh - 52px)}.player-top-bar{padding-top:calc(6px + env(safe-area-inset-top))}.tiktok-summary{bottom:18px;max-width:55vw}.tiktok-actions{bottom:12px;gap:8px}.scrubber-wrap{bottom:4px}}
    @media (prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}.hero-track,.drama-card,.history-item{transition:none!important}}

.brand-icon img{width:100%;height:100%;display:block;border-radius:inherit}
