/* Streaming poster composition for the homepage on phones. */
.stream-tools,
.stream-categories,
.stream-original,
.stream-age,
.stream-genres,
.stream-micro,
.stream-dialog {
  display: none;
}

@media (max-width: 767px) {
  body.home {
    background: radial-gradient(ellipse 130% 630px at 50% 0, #573127 0%, #2a1e1e 55%, transparent 100%) no-repeat, var(--bg);
  }

  .home .site-head {
    position: relative;
    background: transparent;
    border: 0;
    backdrop-filter: none;
  }

  .home .head-row {
    width: 100%;
    height: 52px;
    min-height: 52px;
    padding: 0 8px 0 16px;
    gap: 4px;
  }

  .home .site-head .logo {
    gap: 0;
    color: var(--accent);
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.8px;
    line-height: 1;
  }

  .home .site-head .logo svg,
  .home .site-head .logo small,
  .home .site-head .nav,
  .home .site-head .head-actions {
    display: none;
  }

  .home .stream-tools {
    display: flex;
    margin-left: auto;
  }

  .home .stream-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    flex: none;
    border: 0;
    background: transparent;
    color: var(--ink);
    text-decoration: none;
    border-radius: 6px;
  }

  .home .stream-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .home .stream-categories {
    height: 52px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 2px 16px 14px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .home .stream-categories::-webkit-scrollbar,
  .home .app-showcase .app-grid::-webkit-scrollbar {
    display: none;
  }

  .home .stream-categories a,
  .home .stream-categories button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: none;
    height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(247, 238, 236, .45);
    border-radius: 999px;
    background: transparent;
    color: var(--ink);
    font: 500 14px/1 var(--font-body);
    text-decoration: none;
    white-space: nowrap;
  }

  .home .stream-categories svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
  }

  .home main > .hero {
    margin: 0 16px;
    padding: 0;
    overflow: visible;
    background: transparent;
  }

  .home main > .hero::before,
  .home main > .hero::after,
  .home .hero > .breadcrumb,
  .home .hero .eyebrow,
  .home .hero .author {
    display: none;
  }

  .home .hero > .hero-grid {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    aspect-ratio: 358 / 404;
    max-height: 62svh;
    border: 1px solid rgba(247, 238, 236, .16);
    border-radius: 12px;
    overflow: hidden;
    isolation: isolate;
    background: #2c1d1c;
    box-shadow: 0 24px 60px rgba(109, 51, 31, .42);
  }

  .home .hero .hero-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }

  .home .hero .hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 6%;
  }

  .home .hero .hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(18, 12, 12, .42), transparent 22% 35%, rgba(18, 12, 12, .52) 58%, rgba(18, 12, 12, .97));
  }

  .home .hero-grid > div {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 14px 14px;
    text-align: center;
  }

  .home .stream-original {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font: 700 10px/1 var(--font-body);
    letter-spacing: 2px;
    text-transform: uppercase;
    text-shadow: 0 1px 6px #24120f;
  }

  .home .stream-original b {
    font-size: 23px;
    color: var(--accent);
    letter-spacing: 0;
  }

  .home .stream-age {
    position: absolute;
    top: 0;
    right: 12px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 34px;
    height: 33px;
    border-radius: 0 0 4px 4px;
    background: var(--accent);
    color: #fff;
    font: 700 13px/1 var(--font-body);
  }

  .home .hero h1 {
    margin: 0;
    max-width: none;
    font-family: var(--font-body);
    text-wrap: initial;
    text-transform: uppercase;
    line-height: 1;
  }

  .home .stream-title-brand {
    display: block;
    font-size: clamp(38px, 13.5vw, 56px);
    font-weight: 700;
    letter-spacing: -2px;
    line-height: .92;
    color: #fff0e5;
    background: linear-gradient(#fff8f1 20%, #efc39e 80%, #ce9176);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .5));
  }

  .home .stream-title-separator {
    display: none;
  }

  .home .stream-title-topic {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 9px;
    color: #fff0e5;
    font: 700 12px/1.2 var(--font-body);
    letter-spacing: 1.7px;
  }

  .home .stream-title-topic::before,
  .home .stream-title-topic::after {
    content: "";
    width: 22px;
    height: 2px;
    flex: none;
    background: var(--accent);
  }

  .home .hero .lede {
    max-width: 33ch;
    margin: 10px auto 0;
    color: rgba(255, 255, 255, .85);
    font-size: 13px;
    line-height: 1.4;
    text-wrap: pretty;
  }

  .home .stream-genres {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 7px;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    line-height: 18px;
  }

  .home .stream-genres i {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
  }

  .home .hero .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
  }

  .home .hero .actions .btn {
    width: 100%;
    min-width: 0;
    height: 48px;
    min-height: 48px;
    padding: 0 6px;
    gap: 7px;
    border: 0;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
  }

  .home .hero .actions .btn-primary {
    background: #fff;
    color: #171111;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
  }

  .home .hero .actions .btn-secondary {
    background: rgba(109, 102, 102, .72);
    color: #fff;
    backdrop-filter: blur(10px);
  }

  .home .hero .actions svg {
    width: 17px;
    height: 17px;
    flex: none;
    fill: currentColor;
  }

  .home .stream-micro {
    display: block;
    margin-top: 10px;
    max-width: none;
    color: rgba(247, 238, 236, .6);
    text-align: center;
    font-size: 11px;
    line-height: 16px;
  }

  .home .app-showcase {
    padding: 20px 0 28px;
    background: transparent;
  }

  .home .app-showcase > .wrap {
    width: 100%;
    margin: 0;
  }

  .home .app-showcase .app-section-head {
    display: block;
    margin: 0 16px 10px;
  }

  .home .app-showcase .app-section-head .eyebrow,
  .home .app-showcase .app-section-head > p {
    display: none;
  }

  .home .app-showcase h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    font: 700 20px/1 var(--font-body);
    letter-spacing: -.3px;
  }

  .home .app-showcase h2::after {
    content: "›";
    color: var(--muted);
    font-size: 25px;
    font-weight: 400;
  }

  .home .app-showcase .app-grid {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    padding: 0 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-padding-inline: 16px;
    scroll-snap-type: x proximity;
  }

  .home .app-showcase .app-card {
    position: relative;
    display: block;
    flex: 0 0 112px;
    width: 112px;
    height: 168px;
    min-height: 0;
    aspect-ratio: 2 / 3;
    border: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: none;
    background: var(--surface);
    scroll-snap-align: start;
  }

  .home .app-showcase .app-image-link {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
  }

  .home .app-showcase .app-image-link::before {
    content: "H";
    position: absolute;
    top: 5px;
    left: 7px;
    z-index: 2;
    color: var(--accent);
    font: 700 18px/1 var(--font-body);
    text-shadow: 0 1px 5px #000;
  }

  .home .app-showcase .app-image-link::after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(transparent, rgba(16, 10, 10, .9));
  }

  .home .app-showcase .app-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 12%;
    transition: none;
    transform: none;
  }

  .home .app-showcase .app-card-body {
    position: absolute;
    inset: auto 0 0;
    z-index: 3;
    display: block;
    min-height: 0;
    padding: 0 5px 9px;
    background: transparent;
    pointer-events: none;
  }

  .home .app-showcase .app-card h3 {
    margin: 0;
    color: #fff;
    font: 700 14px/1.05 var(--font-body);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: -.25px;
    overflow-wrap: normal;
    text-shadow: 0 2px 8px #000;
  }

  .home .app-showcase .app-card-body .kicker,
  .home .app-showcase .app-card-body > p,
  .home .app-showcase .app-card-actions {
    display: none;
  }

  .home .app-showcase .app-context {
    margin: 18px 16px 0;
    font-size: 12px;
  }

  .home .stream-dialog {
    position: fixed;
    inset: 0;
    width: calc(100% - 32px);
    max-width: 440px;
    max-height: calc(100svh - 32px - env(safe-area-inset-bottom));
    margin: auto;
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #241c1d;
    color: var(--ink);
    box-shadow: 0 20px 70px #000;
  }

  .home .stream-dialog[open] {
    display: block;
  }

  .home .stream-dialog::backdrop {
    background: rgba(8, 5, 6, .8);
    backdrop-filter: blur(5px);
  }

  .home .stream-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
  }

  .home .stream-dialog h2 {
    font: 700 23px/1.2 var(--font-body);
  }

  .home .stream-dialog-close {
    width: 44px;
    height: 44px;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-size: 28px;
    line-height: 1;
  }

  .home .stream-dialog-links {
    display: grid;
    gap: 2px;
    list-style: none;
  }

  .home .stream-dialog-links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 15px;
    text-decoration: none;
  }

  .home .stream-search-label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 13px;
  }

  .home .stream-search-input {
    width: 100%;
    min-height: 48px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.4 var(--font-body);
  }

  .home .stream-search-empty {
    color: var(--muted);
    font-size: 14px;
  }

  .home .stream-dialog [hidden] {
    display: none;
  }
}

@media (max-width: 374px) {
  .home .stream-title-topic {
    font-size: 11px;
    letter-spacing: 1.2px;
  }

  .home .stream-title-topic::before,
  .home .stream-title-topic::after {
    width: 16px;
  }

  .home .hero .actions .btn {
    gap: 5px;
    font-size: 13px;
  }
}
