.mobile-app-dock, .mobile-app-categories, .mobile-header-downloads { display: none; }

@media (max-width: 900px) and (orientation: portrait) {
  html.mobile-app-shell { --nav-h: calc(58px + env(safe-area-inset-top, 0px)); }
  .mobile-app-shell body { background: #0b0d13; }
  .mobile-app-shell #navbar {
    background: linear-gradient(105deg, #242a3a, #11141d 70%);
    padding: env(safe-area-inset-top, 0px) max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
  }
  .mobile-app-shell #navbar + #app { padding-top: calc(var(--nav-h) + 6px); padding-bottom: 92px; }
  .mobile-app-shell .navbar .logo { width: 128px; }
  .mobile-app-shell .navbar .logo img { width: 128px; max-height: 38px; object-fit: contain; }
  .mobile-app-shell .navbar .menu-toggle { display: none; }
  .mobile-app-shell .nav-right { gap: 8px; }
  .mobile-app-shell .mobile-header-downloads {
    display: grid; place-items: center; min-width: 40px; min-height: 40px;
    color: #f4f7ff; background: transparent; border: 0;
  }
  .mobile-app-shell :is(.mobile-header-downloads, .mobile-app-dock) svg {
    width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
  }
  .mobile-app-shell .mobile-app-categories {
    display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 5px 14px 13px;
  }
  .mobile-app-shell .mobile-app-categories button {
    flex: none; border: 1px solid #444c65; border-radius: 10px; background: #1b2030;
    color: #edf2ff; font-size: 13px; font-weight: 700; padding: 10px 13px; min-height: 42px;
  }
  .mobile-app-shell .mobile-app-categories button.active { background: #a1ebdf; color: #122421; border-color: #a1ebdf; }
  .mobile-app-shell body:has(#searchResults:not([hidden])) .mobile-app-categories { visibility: hidden; }
  .mobile-app-shell #app .hero:not(.empty-hero) {
    margin: 0 16px 18px; min-height: clamp(390px, 121vw, 600px); border-radius: 19px;
    border: 1px solid #505365; background: #11141e; overflow: hidden;
  }
  .mobile-app-shell .hero .hero-bg {
    object-fit: cover; object-position: center 28%; height: 100%;
  }
  .mobile-app-shell .hero::after {
    background: linear-gradient(0deg, #0c101dfc, #0c101dbb 31%, transparent 74%);
  }
  .mobile-app-shell .hero-content {
    inset: auto 14px 15px; width: auto; max-width: none; text-align: center;
  }
  .mobile-app-shell .hero-logo { max-width: min(74vw,320px); max-height: 92px; object-position: center; margin-inline: auto; }
  .mobile-app-shell .hero-title { font-size: clamp(23px, 7vw, 40px); }
  .mobile-app-shell .hero .badge-row { justify-content: center; font-size: 11px; flex-wrap: wrap; }
  .mobile-app-shell .hero-content .btn-row { display: grid; grid-template-columns: 1fr; gap: 7px; }
  .mobile-app-shell .hero-content .btn { min-height: 43px; width: 100%; font-size: 14px; border-radius: 10px; }
  .mobile-app-shell .hero-tags { display: none; }
  .mobile-app-shell .row { --pad: 14px; }
  .mobile-app-shell .row h3 { font-size: 19px; margin-bottom: 9px; }
  .mobile-app-shell .row-track { gap: 9px; scroll-padding-left: 14px; }
  .mobile-app-shell .row-track .card { flex: 0 0 clamp(94px, 28vw, 158px); width: clamp(94px, 28vw, 158px); height: auto; aspect-ratio: 2 / 3; border-radius: 8px; }
  .mobile-app-shell .row-track .card img.card-bg { object-fit: cover; }
  .mobile-app-shell .row-arrow { display: none; }
  .mobile-app-shell .mobile-app-dock {
    position: fixed; z-index: 102; inset: auto 12px max(8px, env(safe-area-inset-bottom, 0px));
    display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 3px; padding: 6px;
    border: 1px solid #7f889b5e; border-radius: 18px; color: #c3cde0;
    background: #1a2032f0; backdrop-filter: blur(16px); box-shadow: 0 10px 30px #0009;
  }
  .mobile-app-shell .mobile-app-dock button {
    display: grid; place-items: center; align-content: center; gap: 3px; min-height: 47px;
    border: 0; border-radius: 12px; background: transparent; color: inherit; font-size: 11px; font-weight: 700;
  }
  .mobile-app-shell .mobile-app-dock button[aria-current] { color: #b2f4ea; background: #394861; }
  .mobile-app-shell body:has(#navbar[hidden]) .mobile-app-dock,
  .mobile-app-shell body:has(#player:not([hidden])) .mobile-app-dock,
  .mobile-app-shell body:has(#profilePickerScreen:not([hidden])) .mobile-app-dock,
  .mobile-app-shell body:has(#authGate:not([hidden])) .mobile-app-dock,
  .mobile-app-shell body:has(#subscriptionGate:not([hidden])) .mobile-app-dock { display: none; }
  .mobile-app-shell #detailModal .modal-card { max-height: 100dvh; border-radius: 16px 16px 0 0; }
  .mobile-app-shell #detailHero {
    height: auto; min-height: 0; padding-top: 54vw; background-position: top center; background-size: 100% auto;
    background-repeat: no-repeat; background-color: #10141e;
  }
  .mobile-app-shell #detailHero .modal-hero-video { height: 54vw; bottom: auto; }
  .mobile-app-shell #detailHero .modal-hero-shade { height: 54vw; bottom: auto; }
  .mobile-app-shell #detailHero .modal-hero-info {
    position: relative; inset: auto; padding: 10px 16px 14px; background: #10141e;
  }
  .mobile-app-shell #detailHero .modal-hero-info .btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
  .mobile-app-shell #detailHero :is(#detailPlay, #detailDownload) { flex: 1 1 100%; min-height: 44px; border-radius: 10px; }
}
