.mobile-categories,
.zorvi-mobile-dock {
  display: none;
}

.zorvi-mobile-more:not([open]) {
  display: none;
}

@media (max-width: 760px), (max-width: 1000px) and (max-height: 560px) and (pointer: coarse) {
  .zorvi-mobile-ready {
    --mobile-gutter: clamp(12px, 4vw, 24px);
    --mobile-left: max(var(--mobile-gutter), env(safe-area-inset-left));
    --mobile-right: max(var(--mobile-gutter), env(safe-area-inset-right));
    --mobile-dock-height: calc(62px + env(safe-area-inset-bottom));
    padding-bottom: calc(var(--mobile-dock-height) + 16px);
  }

  .zorvi-mobile-dock {
    position: fixed;
    z-index: 40;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    box-sizing: border-box;
    padding: 6px max(8px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    background: #100b1d;
    border-top: 1px solid #302443;
    box-shadow: 0 -10px 32px #090612a6;
    font: 700 11px/1.1 'DM Sans', system-ui, sans-serif;
  }

  .zorvi-mobile-dock a,
  .zorvi-mobile-dock button {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    min-height: 49px;
    padding: 4px 0;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #c2b5d0;
    font: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .zorvi-mobile-dock [aria-current="page"],
  .zorvi-mobile-dock [aria-expanded="true"] {
    background: #2c1c42;
    color: #f0d7ff;
  }

  .zorvi-mobile-dock :focus-visible,
  .zorvi-mobile-more :focus-visible,
  .mobile-categories :focus-visible {
    outline: 2px solid #e2b8ff;
    outline-offset: -2px;
  }

  .zorvi-mobile-dock svg,
  .zorvi-mobile-more svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .zorvi-mobile-more {
    box-sizing: border-box;
    position: fixed;
    inset: auto auto calc(var(--mobile-dock-height) + 8px) 50%;
    transform: translateX(-50%);
    margin: 0;
    padding: 12px;
    width: min(520px, calc(100% - var(--mobile-left) - var(--mobile-right)));
    max-height: calc(100dvh - var(--mobile-dock-height) - 24px - env(safe-area-inset-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid #5d4380;
    border-radius: 19px;
    background: #1a122a;
    color: #f5eaff;
    box-shadow: 0 14px 50px #080511cc;
    font-family: 'DM Sans', system-ui, sans-serif;
  }

  .zorvi-mobile-more::backdrop {
    background: #080511aa;
  }

  .zorvi-mobile-more-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin: 0 0 8px;
  }

  .zorvi-mobile-more-heading h2 {
    margin: 0 0 0 4px;
    font: 700 22px/1.2 Outfit, system-ui, sans-serif;
  }

  .zorvi-mobile-more-heading button,
  .zorvi-mobile-more-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    border: 1px solid #49345e;
    border-radius: 10px;
    background: #261936;
    color: #f2e7ff;
  }

  .zorvi-mobile-more-heading button {
    justify-content: center;
    width: 44px;
    padding: 0;
  }

  .zorvi-mobile-more-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .zorvi-mobile-more-links a {
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
  }

  .zorvi-mobile-ready:is(.modal-open, :has(.zpv-overlay)) .zorvi-mobile-dock {
    visibility: hidden;
  }

  .zorvi-mobile-ready .zhelp-widget {
    display: none;
  }

  .zorvi-mobile-ready #zorvi-announcement {
    bottom: calc(var(--mobile-dock-height) + 10px);
  }

  .zorvi-mobile-ready .zinstall {
    bottom: calc(var(--mobile-dock-height) + 12px);
    max-height: calc(100dvh - var(--mobile-dock-height) - 32px);
  }

  .zorvi-mobile-ready:is(.modal-open, .zorvi-auth-page, :has(#zorvi-announcement:not([hidden]), .zorvi-mobile-more[open])) .zinstall {
    display: none;
  }

  .zorvi-mobile-ready .toast {
    bottom: calc(var(--mobile-dock-height) + 12px);
  }

  .zorvi-mobile-ready input:not([type="checkbox"], [type="radio"]),
  .zorvi-mobile-ready textarea,
  .zorvi-mobile-ready select {
    font-size: 16px;
  }

  .zorvi-browse-page.zorvi-mobile-ready .topbar {
    gap: 8px;
    margin: 0;
    padding: env(safe-area-inset-top) var(--mobile-right) 0 var(--mobile-left);
    min-height: calc(56px + env(safe-area-inset-top));
  }

  .zorvi-browse-page.zorvi-mobile-ready .topbar .brand {
    gap: 7px;
    min-height: 44px;
  }

  .zorvi-mobile-ready .topbar .brand-planet {
    width: 42px;
    height: 31px;
  }

  .zorvi-mobile-ready .topbar .brand-planet::before {
    width: 26px;
    height: 26px;
    top: 3px;
    left: 8px;
  }

  .zorvi-mobile-ready .topbar .brand-planet::after {
    inset: 8px 0;
  }

  .zorvi-mobile-ready .topbar .header-actions {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .zorvi-mobile-ready .topbar .notifications {
    display: inline-flex;
    width: 44px;
    height: 44px;
  }

  .zorvi-browse-page.zorvi-mobile-ready :is(.topnav, #openMobileMenu, #openSearch, #openAccount, .z-friends-link, .z-profile-link) {
    display: none;
  }

  .zorvi-mobile-ready .mobile-categories {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 1px var(--mobile-right) 12px var(--mobile-left);
  }

  .mobile-categories button {
    min-width: 0;
    min-height: 44px;
    padding: 0 3px;
    border: 1px solid #38294e;
    border-radius: 11px;
    background: #1a1328;
    color: #e2d5ef;
    font-size: 13px;
    font-weight: 700;
  }

  .mobile-categories [aria-current="page"] {
    border-color: #8055aa;
    background: #36224e;
    color: #fff2ff;
  }

  .zorvi-browse-page .main-stage {
    width: auto;
    min-width: 0;
    margin: 0 var(--mobile-right, 12px) 0 var(--mobile-left, 12px);
  }

  .zorvi-browse-page .hero,
  .zorvi-browse-page.is-detail-page .hero {
    --hero-art-height: clamp(155px, 44vw, 255px);
    min-height: 0;
    height: auto;
    border: 1px solid #34234b;
    border-radius: 20px;
    background: #150c25;
  }

  .zorvi-browse-page .hero-media,
  .zorvi-browse-page .hero-shade {
    bottom: auto;
    height: calc(var(--hero-art-height) + 40px);
  }

  .zorvi-browse-page .hero-media img {
    object-position: center 34%;
  }

  .zorvi-browse-page .hero-shade {
    background: linear-gradient(0deg, #150c25 0%, #150c25d9 18%, #150c2528 58%, #0d081c10 100%);
  }

  .zorvi-browse-page .hero::after {
    display: none;
  }

  .zorvi-browse-page .hero-content,
  .zorvi-browse-page.is-detail-page .hero-content {
    width: auto;
    max-width: 100%;
    padding: var(--hero-art-height) 15px 13px;
  }

  .zorvi-browse-page .feature-poster {
    top: 13px;
    right: 14px;
    width: clamp(69px, 20vw, 112px);
    border-radius: 10px;
    transform: none;
  }

  .zorvi-browse-page .hero-title {
    font-size: clamp(29px, 8vw, 44px);
    overflow-wrap: anywhere;
    margin-bottom: 9px;
  }

  .zorvi-browse-page .hero-title br {
    display: none;
  }

  .zorvi-browse-page :is(.hero-tagline, .hero-counter) {
    display: none;
  }

  .zorvi-browse-page .hero-eyebrow {
    margin-bottom: 7px;
    font-size: 10px;
  }

  .zorvi-browse-page .hero-meta,
  .zorvi-browse-page .genre-pills,
  .zorvi-browse-page .hero-description {
    margin-bottom: 11px;
  }

  .zorvi-browse-page .hero-description {
    font-size: 14px;
    line-height: 1.5;
    -webkit-line-clamp: 2;
  }

  .zorvi-browse-page.is-detail-page .hero-description {
    display: block;
  }

  .zorvi-browse-page .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .zorvi-browse-page .hero-actions .btn {
    min-width: 0;
    min-height: 44px;
    justify-content: center;
    padding: 7px 6px;
    font-size: 12px;
    text-align: center;
    white-space: normal;
  }

  .zorvi-browse-page .hero-actions svg {
    flex: 0 0 16px;
  }

  .zorvi-browse-page #detailWatch {
    grid-column: 1 / -1;
    font-size: 14px;
  }

  .zorvi-browse-page .return-to-discover {
    position: absolute;
    top: 12px;
    left: 12px;
    margin: 0;
    min-height: 44px;
    background: #150d26e8;
  }

  .zorvi-browse-page .hero-secondary-actions {
    gap: 8px;
    margin: 4px 0 0;
  }

  .zorvi-browse-page .hero-secondary-actions button {
    min-height: 44px;
    padding: 0 8px;
  }

  .zorvi-browse-page .follow-status:empty {
    display: none;
  }

  .zorvi-browse-page .discover-content {
    padding-top: 14px;
  }

  .zorvi-browse-page .rails {
    gap: 0;
  }

  .zorvi-browse-page .rail {
    margin-bottom: 18px;
  }

  .zorvi-browse-page .rail-title {
    font-size: 17px;
    letter-spacing: .04em;
  }

  .zorvi-browse-page :is(.rail-track, .zorvi-continue-items) {
    gap: 10px;
    overscroll-behavior-x: contain;
  }

  .zorvi-browse-page .zorvi-continue-items {
    scroll-snap-type: x proximity;
  }

  .zorvi-browse-page .zorvi-continue-card {
    scroll-snap-align: start;
  }

  .zorvi-browse-page .rail-arrow {
    width: 44px;
    height: 44px;
  }

  .zorvi-browse-page .poster-card.is-landscape {
    width: clamp(155px, 51vw, 242px);
    flex-basis: clamp(155px, 51vw, 242px);
  }

  .zorvi-browse-page .poster-caption > :first-child {
    min-width: 0;
  }

  .zorvi-browse-page .poster-name,
  .zorvi-browse-page .poster-card.is-landscape .poster-name {
    max-width: 100%;
  }

  .zorvi-browse-page .catalog-view {
    padding-top: 15px;
  }

  .zorvi-browse-page .catalog-heading h1 {
    font-size: clamp(36px, 7vw, 50px);
    line-height: 1;
  }

  .zorvi-browse-page .filter-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 9px;
    margin: 14px 0;
  }

  .zorvi-browse-page .filter-bar label {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }

  .zorvi-browse-page .filter-bar select,
  .zorvi-browse-page .season-controls select {
    min-height: 44px;
    max-width: 100%;
    width: 100%;
    padding-inline: 5px;
  }

  .zorvi-browse-page .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr));
    gap: 10px;
  }

  .zorvi-browse-page .panel-tab {
    min-height: 44px;
  }

  .zorvi-browse-page .panel-body {
    overflow-wrap: anywhere;
  }

  .zorvi-browse-page .overlay {
    padding: calc(env(safe-area-inset-top) + 12px) var(--mobile-right) calc(env(safe-area-inset-bottom) + 12px) var(--mobile-left);
  }

  .zorvi-browse-page .overlay:has(.search-dialog) {
    padding: env(safe-area-inset-top) var(--mobile-right) env(safe-area-inset-bottom) var(--mobile-left);
    background: #140d22;
  }

  .zorvi-browse-page .search-dialog {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    padding: 12px 0 10px;
    border: 0;
    border-radius: 0;
    background: #140d22;
    box-shadow: none;
  }

  .zorvi-browse-page .search-dialog .dialog-top h2 {
    margin: 0 0 8px;
    font-size: 24px;
  }

  .zorvi-browse-page .search-dialog .dialog-top .kicker,
  .zorvi-browse-page .search-field kbd,
  .zorvi-browse-page #searchOverlay .overlay-shade {
    display: none;
  }

  .zorvi-browse-page .search-field {
    min-height: 46px;
    flex-shrink: 0;
  }

  .zorvi-browse-page .search-results {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 128px), 1fr));
    min-height: 0;
    max-height: none;
    overscroll-behavior: contain;
  }

  .zorvi-browse-page .round-btn {
    min-width: 44px;
    min-height: 44px;
  }

  .zorvi-browse-page #accountForgotPassword {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #e4c4ff;
  }

  .zorvi-browse-page .zpv-shell {
    width: auto;
    margin-inline: var(--mobile-left) var(--mobile-right);
    padding-top: calc(10px + env(safe-area-inset-top));
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

  .zorvi-browse-page .zpv-header {
    gap: 8px;
    margin-bottom: 14px;
  }

  .zorvi-browse-page .zpv-utilities {
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .zorvi-browse-page .zpv-controls .zpv-state {
    flex: 1 0 100%;
    max-width: 100%;
  }

  .zorvi-browse-page .zpv-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .zorvi-browse-page .zpv-actions .zpv-btn {
    width: 100%;
  }

  .zorvi-browse-page .zpv-overlay .zpv-btn,
  .zorvi-browse-page .zpv-overlay .zpv-source,
  .zorvi-browse-page .zpv-overlay .zpv-screen .zpv-cta {
    min-height: 44px;
  }

  .zorvi-browse-page .zpv-overlay .zpv-source-menu {
    width: min(330px, calc(100vw - var(--mobile-left) - var(--mobile-right) - 24px));
  }

  .zorvi-browse-page .zpv-overlay .zpv-empty {
    gap: 5px;
    padding: 5px 12px;
  }

  .zorvi-browse-page .zpv-overlay .zpv-empty-mark {
    width: 31px;
    height: 31px;
    font-size: 16px;
  }

  .zorvi-browse-page .zpv-overlay .zpv-empty p {
    line-height: 1.35;
  }

  .zorvi-mobile-ready:not(.zorvi-browse-page) {
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .zorvi-mobile-ready .profile-nav a,
  .zorvi-mobile-ready .auth-wrap .btn {
    min-height: 44px;
  }

  .zorvi-mobile-ready .profile-hero > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 540px) and (max-width: 760px) {
  .zorvi-browse-page .hero-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .zorvi-browse-page #detailWatch {
    grid-column: auto;
  }
}

@media (max-width: 350px) {
  .zorvi-browse-page .filter-bar label:last-child {
    grid-column: 1 / -1;
  }

  .zorvi-browse-page .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
