/* App Share subdomain — light theme (app.stremize.com) */

:root {
    --as-bg: #ffffff;
    --as-surface: #f8f9fb;
    --as-text: #111827;
    --as-text-muted: #6b7280;
    --as-border: #e5e7eb;
    --as-primary: #2563eb;
    --as-primary-hover: #1d4ed8;
    --as-shadow: 0 4px 24px rgba(17, 24, 39, 0.08);
    --as-radius: 16px;
    --as-radius-pill: 999px;
    --as-container: 1200px;
    --as-font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --as-brand: #ff6a00;
    --as-brand-hover: #ef6035;
    --as-success: #22c55e;
    --as-success-hover: #16a34a;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.as-body {
    margin: 0;
    font-family: var(--as-font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--as-text);
    background: var(--as-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.as-container {
    width: 100%;
    max-width: var(--as-container);
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.as-main {
    flex: 1;
}

/* Header */
.as-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--as-border);
}

.as-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
}

.as-header__brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--as-text);
}

.as-header__logo {
    height: 28px;
    width: auto;
}

.as-header__logo-text {
    font-weight: 700;
    font-size: 1.125rem;
}

/* Detail page — Liquid Glass floating header */
.as-body--detail .as-main {
    padding-top: 0;
}

.as-glass-header {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    justify-content: center;
    padding: 0 16px;
    pointer-events: none;
}

.as-mobile-header {
    display: none;
}

.as-glass-header__bar {
    display: inline-flex;
    align-items: center;
    gap: 24px;
    padding: 8px 16px;
    border-radius: var(--as-radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow:
        0 8px 32px rgba(17, 24, 39, 0.12),
        0 1px 0 rgba(255, 255, 255, 0.65) inset,
        0 -1px 0 rgba(255, 255, 255, 0.25) inset;
    pointer-events: auto;
}

.as-glass-header__bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 16px;
    border-radius: var(--as-radius-pill);
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.62);
    box-shadow:
        0 2px 8px rgba(17, 24, 39, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    color: var(--as-text);
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.as-glass-header__bubble:hover {
    background: rgba(255, 255, 255, 0.62);
    transform: translateY(-1px);
    box-shadow:
        0 4px 14px rgba(17, 24, 39, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.as-glass-header__bubble:active {
    transform: translateY(0);
}

.as-glass-header__bubble--logo {
    padding: 4px 14px;
}

.as-glass-header__logo {
    height: 32px;
    width: auto;
    display: block;
}

.as-glass-header__bubble--play {
    padding: 6px 12px;
}

.as-glass-header__play-icon {
    height: 32px;
    width: auto;
    display: block;
}

.as-glass-header__bubble--app {
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.48);
    color: var(--as-text);
}

/* Buttons */
.as-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--as-radius-pill);
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    font-family: inherit;
}

.as-btn--primary {
    background: var(--as-brand);
    color: #fff;
}

.as-btn--primary:hover {
    background: var(--as-primary-hover);
}

.as-btn--outline {
    background: transparent;
    color: var(--as-text);
    border: 1px solid #aaa;
}

.as-btn--outline:hover {
    background: var(--as-surface);
}

.as-btn--share {
    background: #fff;
    color: var(--as-text);
    box-shadow: var(--as-shadow);
    min-width: 120px;
    transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.as-btn--share .as-btn__icon--copied[hidden] {
    display: none;
}

.as-btn--share:hover {
    box-shadow: 0 6px 28px rgba(17, 24, 39, 0.12);
}

.as-btn--share.is-copied {
    background: var(--as-success);
    color: #fff;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
}

.as-btn--share.is-copied:hover {
    background: var(--as-success-hover);
}

/* Home landing (download + guides) */
.as-home-hero {
    padding: 56px 0 24px;
    text-align: center;
}

.as-home-hero__title {
    margin: 0 0 12px;
    font-size: clamp(1.875rem, 4.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.as-home-hero__subtitle {
    margin: 0 auto;
    max-width: 640px;
    color: var(--as-text-muted);
    font-size: 1.0625rem;
    line-height: 1.65;
}

.as-home-download {
    padding: 24px 0 40px;
}

.as-home-download__box {
    background: var(--as-surface);
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius);
    padding: 32px 28px;
    box-shadow: var(--as-shadow);
}

.as-home-download__title {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 700;
}

.as-home-download__lead {
    margin: 0 0 28px;
    color: var(--as-text-muted);
    max-width: 720px;
    line-height: 1.6;
}

.as-home-download__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.as-home-download__card {
    background: #fff;
    border: 1px solid var(--as-border);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.as-home-download__card-title {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.as-home-download__card-text {
    margin: 0;
    color: var(--as-text-muted);
    font-size: 0.9375rem;
    line-height: 1.55;
    flex: 1;
}

.as-home-download__store-link {
    display: inline-block;
    margin-top: 4px;
}

.as-home-download__apk-btn {
    margin-top: 4px;
}

.as-downloader-code {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 20px;
    background: var(--as-surface);
    border: 2px dashed #93c5fd;
    border-radius: 10px;
    width: 100%;
}

.as-downloader-code__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--as-text-muted);
}

.as-downloader-code__value {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--as-primary);
    font-variant-numeric: tabular-nums;
}

.as-home-features {
    padding: 16px 0 56px;
}

.as-home-features__heading {
    margin: 0 0 8px;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.as-home-features__intro {
    margin: 0 auto 32px;
    max-width: 640px;
    text-align: center;
    color: var(--as-text-muted);
    line-height: 1.6;
}

.as-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.as-feature-card {
    background: #fff;
    border: 1px solid var(--as-border);
    border-radius: 12px;
    padding: 24px;
}

.as-feature-card__head {
    margin-bottom: 10px;
}

.as-feature-card__icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff6ff;
    color: var(--as-primary);
    border-radius: 10px;
    font-size: 1.125rem;
    margin-bottom: 14px;
}

.as-feature-card__title {
    margin: 0 0 10px;
    font-size: 1.0625rem;
    font-weight: 700;
}

.as-feature-card__text {
    margin: 0;
    color: var(--as-text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.as-feature-card__list {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--as-text-muted);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.as-feature-card__link {
    color: var(--as-primary);
    font-weight: 500;
}

.as-feature-card__link:hover {
    text-decoration: underline;
}

.as-home-features__note {
    margin: 32px 0 0;
    text-align: center;
}

.as-home-features__note-text {
    margin: 0 0 16px;
    font-size: 0.9375rem;
    color: var(--as-text-muted);
    line-height: 1.6;
}

.as-home-features__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--as-radius-pill);
    background: var(--as-brand);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(255, 106, 0, 0.28);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.as-home-features__cta:hover {
    background: var(--as-brand-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 106, 0, 0.35);
}

/* Hero (home) */
.as-hero {
    padding: 56px 0 32px;
    text-align: center;
}

.as-hero__title {
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--as-text);
}

.as-hero__subtitle {
    margin: 0 auto 32px;
    max-width: 520px;
    color: var(--as-text-muted);
    font-size: 1.0625rem;
}

/* Search */
.as-search {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.as-search__input {
    width: 100%;
    padding: 16px 48px 16px 24px;
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius-pill);
    font-size: 1rem;
    font-family: inherit;
    background: #fff;
    box-shadow: var(--as-shadow);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.as-search__input:focus {
    border-color: #93c5fd;
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.12);
}

.as-search__icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--as-text-muted);
    pointer-events: none;
}

/* Grid */
.as-grid-section {
    padding: 24px 0 48px;
}

.as-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px 16px;
}

.as-card {
    display: block;
    transition: transform 0.2s;
}

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

.as-card__poster-wrap {
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    overflow: hidden;
    background: var(--as-surface);
    box-shadow: 0 2px 12px rgba(17, 24, 39, 0.08);
    margin-bottom: 10px;
}

.as-card__poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.as-card__title {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--as-text);
}

.as-card__year {
    margin: 2px 0 0;
    font-size: 0.8125rem;
    color: var(--as-text-muted);
}

.as-grid__empty {
    text-align: center;
    color: var(--as-text-muted);
    padding: 32px 0;
}

/* Download CTA */
.as-download-cta {
    padding: 0 0 56px;
}

.as-download-cta__box {
    background: var(--as-surface);
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius);
    padding: 32px 24px;
    text-align: center;
}

.as-download-cta__title {
    margin: 0 0 8px;
    font-size: 1.375rem;
    font-weight: 700;
}

.as-download-cta__text {
    margin: 0 auto 20px;
    max-width: 480px;
    color: var(--as-text-muted);
}

.as-download-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.as-download-cta__store img {
    height: 48px;
    width: auto;
}

/* Detail hero */
.as-detail-hero {
    position: relative;
    min-height: 920px;
    padding-top: 88px;
    display: flex;
    align-items: flex-end;
    background-color: #1f2937;
    background-image: var(--as-hero-bg);
    background-size: cover;
    background-position: center center;
}

.as-detail-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(17, 24, 39, 0.25) 0%,
        rgba(17, 24, 39, 0.75) 55%,
        rgba(17, 24, 39, 0.92) 100%
    );
}

.as-detail-hero__content {
    position: relative;
    z-index: 1;
    padding: 48px 20px 40px;
    text-align: center;
    color: #fff;
    width: 100%;
}

.as-detail-hero__back {
    display: inline-block;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
}

.as-detail-hero__back:hover {
    color: #fff;
}

.as-detail-hero__title {
    margin: 0 0 12px;
    font-size: clamp(2rem, 6vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.as-detail-hero__meta {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.9375rem;
}

.as-detail-hero__genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.as-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: var(--as-radius-pill);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: 0.8125rem;
    font-weight: 500;
    color: #fff;
}

.as-detail-hero__actions {
    display: flex;
    justify-content: center;
}

/* Detail overview */
.as-detail-overview {
    padding: 40px 0;
    background: var(--as-bg);
}

.as-detail-overview__text {
    margin: 0 auto;
    max-width: 720px;
    text-align: center;
    color: var(--as-text-muted);
    font-size: 1.0625rem;
    line-height: 1.7;
}

/* Detail body */
.as-detail-body {
    padding: 0 0 40px;
}

.as-detail-body__grid {
    display: grid;
    /* grid-template-columns: 280px 1fr; */
    gap: 32px;
    align-items: start;
}

.as-section-title {
    margin: 0 0 16px;
    font-size: 1.125rem;
    font-weight: 700;
}

.as-key-people {
    background: var(--as-surface);
    border: 1px solid var(--as-border);
    border-radius: var(--as-radius);
    padding: 20px;
}

.as-key-people__label {
    margin: 0 0 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--as-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.as-key-people__names {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

/* Cast */
.as-cast {
    grid-column: 1 / -1;
    max-width: 100%;
    overflow-x: auto;
}
.as-cast__scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.as-cast__item {
    flex: 0 0 auto;
    width: 100px;
    text-align: center;
    scroll-snap-align: start;
}

.as-cast__avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 8px;
    background: var(--as-surface);
    border: 2px solid var(--as-border);
}

.as-cast__name {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.3;
}

.as-cast__role {
    margin: 2px 0 0;
    font-size: 0.75rem;
    color: var(--as-text-muted);
    line-height: 1.3;
}

/* Trailers */
.as-trailers {
    grid-column: 1 / -1;
}

.as-trailers__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.as-trailer-card {
    display: block;
    color: var(--as-text);
    transition: transform 0.2s ease;
}

.as-trailer-card:hover {
    transform: translateY(-2px);
}

.as-trailer-card__thumb-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: var(--as-surface);
    box-shadow: 0 2px 12px rgba(17, 24, 39, 0.08);
    margin-bottom: 8px;
}

.as-trailer-card__thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.as-trailer-card__play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.28);
    color: #fff;
    transition: background 0.2s ease;
}

.as-trailer-card:hover .as-trailer-card__play {
    background: rgba(17, 24, 39, 0.4);
}

.as-trailer-card__play svg {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.as-trailer-card__title {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Footer */
.as-footer {
    border-top: 1px solid var(--as-border);
    background: var(--as-surface);
    padding: 32px 0;
    margin-top: auto;
}

.as-footer__inner {
    text-align: center;
}

.as-footer__disclaimer {
    margin: 0 auto 12px;
    max-width: 640px;
    font-size: 0.8125rem;
    color: var(--as-text-muted);
    line-height: 1.6;
}

.as-footer__links {
    margin: 0 0 8px;
    font-size: 0.875rem;
}

.as-footer__link {
    color: var(--as-primary);
    font-weight: 500;
}

.as-footer__link:hover {
    text-decoration: underline;
}

.as-footer__copy {
    margin: 0;
    font-size: 0.75rem;
    color: var(--as-text-muted);
}

/* Responsive */
@media (max-width: 1199px) {
    .as-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 991px) {
    .as-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .as-detail-body__grid {
        grid-template-columns: 1fr;
    }

    .as-home-download__grid,
    .as-feature-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .as-hero {
        padding-top: 40px;
    }

    /* Desktop glass header hidden; mobile bar sits above hero */
    .as-glass-header--desktop {
        display: none;
    }

    .as-mobile-header {
        display: block;
        position: relative;
        z-index: 50;
        background: #fff;
        border-bottom: 1px solid var(--as-border);
    }

    .as-mobile-header__inner {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        padding: 10px 16px;
        max-width: var(--as-container);
        margin: 0 auto;
    }

    .as-mobile-header__btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        border-radius: var(--as-radius-pill);
        font-size: 0.875rem;
        font-weight: 600;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .as-mobile-header__btn:active {
        transform: scale(0.98);
    }

    .as-mobile-header__btn--play {
        flex: 1;
        /* max-width: 180px; */
        padding: 4px 12px;
        /* background: var(--as-surface);
        border: 1px solid var(--as-border); */
    }

    .as-mobile-header__play-icon {
        height: 44px;
        width: auto;
        display: block;
    }

    .as-mobile-header__btn--app {
        flex: 1;
        padding: 10px 16px;
        /* background: var(--as-brand);
        color: #fff; */
        white-space: nowrap;
    }

    .as-mobile-header__btn--app:hover {
        background: var(--as-brand-hover);
        color: #fff;
    }

    .as-detail-hero {
        min-height: 360px;
        padding-top: 0;
    }

    .as-trailers__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .as-feature-card__head {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .as-feature-card__head .as-feature-card__icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .as-feature-card__head .as-feature-card__title {
        margin-bottom: 0;
    }
}

@media (max-width: 575px) {
    .as-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px 12px;
    }

    .as-header__cta {
        padding: 8px 14px;
        font-size: 0.8125rem;
    }

    .as-mobile-header__play-icon {
        height: 44px;
    }

    .as-mobile-header__btn--app {
        font-size: 0.875rem;
        padding: 10px 10px;
        min-height: 10px;
        height: 44px;
    }

    .as-mobile-header__btn--app span {
        background: var(--as-brand);
        color: #fff;
        display: inline-block;
        /* height: 44px; */
        border-radius: var(--as-radius-pill);
        width: 150px;
        text-align: center;
        vertical-align: middle;
        padding: 11px 0px;
    }

    .as-cast__item {
        width: 88px;
    }

    .as-cast__avatar {
        width: 80px;
        height: 80px;
    }
}
