/* Explore: quiet surfaces, readable results, and shared app navigation. */
.home-main[hidden], .explore-main[hidden], .explore-main [hidden] { display: none !important; }
.desktop-app-nav { display: flex; align-items: center; gap: 8px; margin-inline-start: 24px; }
.desktop-app-nav button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 12px; border: 0; background: none; color: #96969c; font-size: 13px; cursor: pointer; transition: color .2s; }
.desktop-app-nav button.active { color: #fff; font-weight: 700; }
.desktop-app-nav svg { width: 17px; height: 17px; }
.explore-main { min-height: calc(100dvh - 76px); color: #f3f3f5; }
.explore-container { width: min(100%, 1380px); margin-inline: auto; padding: 40px clamp(20px, 5vw, 74px) 56px; }
.explore-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.explore-heading h1 { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.6; }
.explore-heading p { margin: 3px 0 0; color: #a3a3ab; font-size: 14px; }
.explore-signature { display: inline-flex; align-items: center; gap: 9px; color: #777780; font-size: 12px; }
.explore-signature svg { width: 20px; height: 20px; }
.explore-search { display: flex; align-items: center; gap: 14px; min-height: 66px; padding: 8px 18px 8px 8px; border-radius: 18px; background: #1a1a1d; transition: background .2s, box-shadow .2s; }
.explore-search:focus-within { background: #202023; box-shadow: 0 0 0 2px #54545b; }
.explore-search > svg { flex: 0 0 auto; width: 23px; height: 23px; color: #a3a3ab; }
.explore-search input { flex: 1 1 auto; width: 0; min-width: 0; height: 42px; padding: 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: 15px; }
.explore-search input::placeholder { color: #92929c; opacity: 1; }
.explore-search input::-webkit-search-cancel-button { display: none; }
.explore-search button { flex: 0 0 auto; border: 0; cursor: pointer; }
.explore-clear { display: grid; width: 36px; height: 36px; place-items: center; padding: 0; border-radius: 50%; color: #c1c1c8; background: #303035; }
.explore-clear svg { width: 17px; height: 17px; }
.explore-submit { display: inline-flex; align-items: center; gap: 13px; min-height: 46px; padding: 0 21px; border-radius: 13px; background: #f1f1f3; color: #141416; font-size: 12px; font-weight: 700; }
.explore-submit svg { width: 17px; height: 17px; }
.explore-suggestions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 44px; padding: 12px 2px 0; }
.explore-suggestions > span { margin-inline-end: 6px; color: #85858f; font-size: 11px; }
.explore-suggestions button, #exploreRecentItems button { max-width: 100%; padding: 7px 12px; border: 0; border-radius: 999px; background: #171719; color: #bdbdc5; font-size: 11px; cursor: pointer; }
.explore-recent { margin-top: 20px; }
.explore-recent-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 12px; color: #a5a5ae; }
.explore-recent-heading button { padding: 6px 0 6px 10px; border: 0; background: none; color: #b4b4be; font-size: 11px; cursor: pointer; }
#exploreRecentItems { display: flex; flex-wrap: wrap; gap: 8px; }
#exploreRecentItems button { display: inline-flex; align-items: center; gap: 7px; }
#exploreRecentItems button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#exploreRecentItems svg { flex-shrink: 0; width: 13px; height: 13px; color: #7a7a85; }
.explore-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); align-items: start; gap: 34px; margin-top: 34px; }
.explore-categories { position: sticky; top: 108px; min-width: 0; }
.explore-categories h2 { margin: 5px 12px 18px; color: #a5a5ae; font-size: 12px; font-weight: 500; }
.explore-genre-list { display: flex; flex-direction: column; gap: 5px; }
.explore-genre-list button { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; padding: 10px 14px; border: 0; border-radius: 999px; background: transparent; color: #a6a6af; font-size: 12px; text-align: right; white-space: nowrap; cursor: pointer; transition: color .2s, background .2s; }
.explore-genre-list button small { color: #777782; font-size: 10px; font-variant-numeric: tabular-nums; }
.explore-genre-list button.is-active { background: #242428; color: #fff; font-weight: 700; }
.explore-genre-list button.is-active small { color: #c7c7cf; }
.explore-content { min-width: 0; }
.explore-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 44px; }
.explore-type-tabs { display: inline-flex; position: relative; isolation: isolate; align-items: center; gap: 2px; padding: 4px; border-radius: 999px; background: #171719; }
.explore-tab-indicator { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 0; width: var(--active-width, 50px); border-radius: 999px; background: #f1f1f3; transform: translateX(var(--active-left, 0px)); transition: transform .26s ease, width .26s ease; }
.explore-type-tabs button { min-height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: #a4a4ae; font-size: 11px; cursor: pointer; white-space: nowrap; transition: color .2s; }
.explore-type-tabs button.is-active { color: #171719; font-weight: 700; }
.explore-sort { display: inline-flex; align-items: center; gap: 8px; padding-inline-start: 4px; color: #a1a1ac; }
.explore-sort select { min-height: 42px; max-width: 160px; appearance: none; padding: 0 2px; border: 0; border-radius: 6px; background: transparent; color: inherit; font: inherit; font-size: 11px; cursor: pointer; }
.explore-sort option { background: #1a1a1d; color: #efeff2; }
.explore-sort svg { width: 14px; height: 14px; pointer-events: none; }
.explore-results-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 27px 0 18px; }
.explore-results-heading h2 { min-width: 0; margin: 0; overflow-wrap: anywhere; font-size: 18px; font-weight: 700; }
.explore-results-heading > span { flex-shrink: 0; font-size: 11px; color: #8f8f9b; }
.explore-active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin: -4px 0 17px; }
.explore-active-filters button { display: flex; align-items: center; gap: 9px; padding: 7px 11px; border: 0; border-radius: 999px; background: #222225; color: #d5d5dd; font-size: 10px; cursor: pointer; }
.explore-active-filters svg { width: 12px; height: 12px; }
.explore-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.explore-result-card { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 15px; width: 100%; min-width: 0; padding: 10px; border: 0; border-radius: 18px; background: #121214; color: #f3f3f5; text-align: right; cursor: pointer; transition: background .2s; }
.explore-result-poster { display: block; position: relative; align-self: start; width: 100%; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 11px; background: #202023; }
.explore-result-poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.explore-coming { position: absolute; bottom: 0; right: 0; left: 0; padding: 20px 7px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .94)); color: #fff; font-size: 10px; text-align: center; }
.explore-result-copy { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; padding: 5px 0 5px 3px; }
.explore-result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; color: #94949f; font-size: 9px; line-height: 1.8; }
.explore-result-meta > span { margin: 0 2px; color: #595962; }
.explore-result-copy > strong { display: block; margin-top: 6px; font-size: 15px; line-height: 1.9; font-weight: 700; }
.explore-result-description { display: -webkit-box; margin: 7px 0 13px; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #a6a6b0; font-size: 11px; line-height: 1.95; }
.explore-result-action { display: flex; align-items: center; gap: 7px; width: 100%; margin-top: auto; color: #dddde4; font-size: 10px; }
.explore-result-action svg { width: 13px; height: 13px; }
.explore-result-action svg:last-child { margin-inline-start: auto; color: #676772; }
.explore-pagination { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 28px; }
.explore-pagination button { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 24px; border: 0; border-radius: 999px; background: #222226; color: #e8e8ee; font-size: 12px; cursor: pointer; }
.explore-pagination button svg { width: 15px; height: 15px; }
.explore-pagination > span { color: #777782; font-size: 10px; text-align: center; }
.explore-empty { padding: 50px 20px; border-radius: 20px; background: #131315; text-align: center; }
.explore-empty-icon { display: grid; width: 56px; height: 56px; margin: 0 auto 18px; place-items: center; border-radius: 50%; background: #222226; color: #9595a2; }
.explore-empty-icon svg { width: 25px; height: 25px; }
.explore-empty h3 { margin: 0; font-size: 18px; }
.explore-empty p { margin: 10px 0 22px; color: #9c9ca7; font-size: 12px; line-height: 2; }
.explore-empty button { min-height: 42px; padding: 0 20px; border: 0; border-radius: 999px; background: #ededf0; color: #19191d; font-size: 12px; font-weight: 600; cursor: pointer; }
.explore-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.explore-main :is(button, select):focus-visible, .desktop-app-nav button:focus-visible { outline: 2px solid #d7d7df; outline-offset: 4px; }
@media (hover: hover) {
  .explore-result-card:hover { background: #1a1a1e; }
  .explore-genre-list button:hover { background: #202023; color: #f1f1f5; }
  .explore-suggestions button:hover, #exploreRecentItems button:hover { background: #29292e; color: #fff; }
  .desktop-app-nav button:hover { color: #fff; }
}
@media (max-width: 1100px) and (min-width: 801px) {
  .explore-layout { grid-template-columns: 160px minmax(0, 1fr); gap: 22px; }
  .explore-results { grid-template-columns: 1fr; }
  .explore-result-card { grid-template-columns: 96px minmax(0, 1fr); gap: 20px; }
  .desktop-app-nav { margin-inline-start: 5px; gap: 0; }
}
@media (max-width: 800px) {
  .desktop-app-nav { display: none; }
  .explore-container { padding: 24px 16px calc(86px + env(safe-area-inset-bottom)); }
  .explore-heading { margin-bottom: 20px; }
  .explore-heading h1 { font-size: 26px; }
  .explore-heading p { font-size: 12px; }
  .explore-signature { display: none; }
  .explore-search { min-height: 56px; gap: 10px; padding: 6px 14px 6px 8px; border-radius: 15px; }
  .explore-search > svg { width: 20px; height: 20px; }
  .explore-search input { font-size: 16px; }
  .explore-search input::placeholder { font-size: 12px; }
  .explore-submit { display: none; }
  .explore-suggestions { gap: 7px; padding-top: 12px; }
  .explore-suggestions > span { flex-basis: 100%; font-size: 10px; margin-bottom: 3px; }
  .explore-suggestions button { font-size: 10px; }
  .explore-layout { display: block; margin-top: 29px; }
  .explore-categories { position: static; margin-bottom: 23px; }
  .explore-categories h2 { margin: 0 0 12px; font-size: 12px; }
  .explore-genre-list { flex-direction: row; gap: 7px; margin-inline: -16px; padding-inline: 16px; overflow-x: auto; overscroll-behavior-x: contain; }
  .explore-genre-list button { flex-shrink: 0; gap: 10px; min-height: 38px; padding: 8px 14px; background: #171719; font-size: 11px; }
  .explore-genre-list button.is-active { background: #303035; }
  .explore-genre-list button small { font-size: 9px; }
  .explore-toolbar { gap: 8px; }
  .explore-type-tabs { gap: 0; }
  .explore-type-tabs button { min-height: 34px; padding: 0 12px; font-size: 10px; }
  .explore-sort { gap: 5px; }
  .explore-sort select { max-width: 116px; font-size: 10px; }
  .explore-results-heading { margin-top: 24px; margin-bottom: 16px; }
  .explore-results-heading h2 { font-size: 17px; }
  .explore-results { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .explore-result-card { grid-template-columns: 92px minmax(0, 1fr); gap: 13px; padding: 9px; border-radius: 16px; }
  .explore-result-copy > strong { font-size: 14px; margin-top: 4px; }
  .explore-result-description { font-size: 10px; margin-top: 5px; margin-bottom: 11px; }
  .explore-result-meta { font-size: 9px; }
  .explore-result-action { font-size: 10px; }
}
@media (max-width: 600px) {
  .explore-results { grid-template-columns: 1fr; gap: 12px; }
  .explore-result-card { grid-template-columns: 102px minmax(0, 1fr); gap: 15px; padding: 9px; }
  .explore-result-copy { padding-block: 6px; }
  .explore-result-copy > strong { font-size: 15px; }
  .explore-result-description { font-size: 11px; }
}
@media (max-width: 390px) {
  .explore-sort { margin-inline-start: auto; }
  .explore-result-card { grid-template-columns: 86px minmax(0, 1fr); gap: 12px; }
  .explore-result-copy > strong { font-size: 13px; }
  .explore-result-description { font-size: 10px; }
  .explore-search input::placeholder { font-size: 11px; }
}
