:root {
    color-scheme: dark;
    --bg: #060607;
    --bg-soft: #0d0b0e;
    --surface: rgba(20, 18, 22, 0.94);
    --surface-strong: #171419;
    --surface-soft: rgba(255, 255, 255, 0.055);
    --line: rgba(255, 255, 255, 0.105);
    --line-strong: rgba(255, 255, 255, 0.17);
    --text: #fff9fb;
    --text-secondary: #c8c0c5;
    --text-muted: #938b91;
    --accent: #d91f45;
    --accent-light: #f04467;
    --accent-dark: #9d102e;
    --shadow: 0 32px 80px rgba(0, 0, 0, 0.54);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--bg);
}

body {
    min-width: 280px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at 14% 0%, rgba(126, 18, 48, 0.24), transparent 34rem),
        linear-gradient(145deg, #0b0b0d 0%, #100b0d 48%, #060607 100%);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

.share-page {
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow-x: hidden;
}

.ambient-backdrop,
.ambient-gradient {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.ambient-backdrop {
    z-index: 0;
    overflow: hidden;
    opacity: 0.34;
}

.ambient-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(38px) saturate(0.78);
    transform: scale(1.12);
}

.ambient-gradient {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(6, 6, 7, 0.96) 0%, rgba(9, 8, 10, 0.76) 50%, rgba(6, 6, 7, 0.92) 100%),
        linear-gradient(180deg, rgba(6, 6, 7, 0.3) 0%, #060607 100%);
}

.site-header,
.share-shell,
.site-footer {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: calc(24px + var(--safe-top));
    padding-bottom: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.brand-logo {
    display: block;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 13px;
    object-fit: cover;
    box-shadow: 0 10px 26px rgba(196, 21, 58, 0.28);
}

.brand-logo--large {
    width: 76px;
    height: 76px;
    border-radius: 21px;
}

.brand-copy {
    display: grid;
    gap: 1px;
}

.brand-copy strong {
    font-size: 1rem;
    font-weight: 760;
    letter-spacing: -0.02em;
}

.brand-copy small {
    color: var(--text-muted);
    font-size: 0.72rem;
}

.header-badge,
.media-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text-secondary);
    background: rgba(14, 12, 15, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 0.75rem;
    font-weight: 650;
}

.share-shell {
    display: grid;
    align-items: center;
    padding-block: 28px 48px;
}

.content-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    max-width: 1040px;
    min-width: 0;
    min-height: 0;
    margin-inline: auto;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.media-panel {
    position: relative;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111014;
}

.media-image {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    background:
        radial-gradient(circle at 50% 40%, rgba(217, 31, 69, 0.17), transparent 14rem),
        linear-gradient(145deg, #18141a, #0c0b0d);
}

.media-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 7, 9, 0.12), transparent 60%),
        linear-gradient(180deg, transparent 56%, rgba(8, 7, 9, 0.9) 100%);
}

.media-label {
    position: absolute;
    left: 20px;
    bottom: 20px;
    color: #fff;
    background: rgba(7, 7, 8, 0.74);
}

.content-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: clamp(30px, 5vw, 58px);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-light);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

h1 {
    max-width: 24ch;
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.02;
    letter-spacing: -0.052em;
    text-wrap: balance;
}

.content-description {
    max-width: 62ch;
    margin: 0;
    color: var(--text-secondary);
    font-size: clamp(0.98rem, 1.25vw, 1.09rem);
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.description-section {
    grid-area: description;
    min-width: 0;
}

.description-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 13px;
}

.description-heading h2 {
    margin: 0;
    color: var(--text);
    font-size: 0.93rem;
    font-weight: 760;
    letter-spacing: -0.015em;
}

.description-heading span {
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 650;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.description-wrapper {
    position: relative;
}

.description-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 7px 0;
    border: 0;
    color: var(--accent-light);
    background: transparent;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 760;
    cursor: pointer;
}

.description-toggle[hidden] {
    display: none;
}

.description-toggle-icon {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease;
}

.description-toggle[aria-expanded="true"] .description-toggle-icon {
    transform: translateY(2px) rotate(225deg);
}

.content-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(265px, 320px);
    grid-template-areas: "description actions";
    align-items: start;
    gap: clamp(28px, 5vw, 54px);
    margin-top: 26px;
}

.action-panel {
    grid-area: actions;
    min-width: 0;
    padding: 19px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025)),
        rgba(10, 9, 11, 0.42);
}

.action-title {
    margin: 0;
    color: var(--text);
    font-size: 0.98rem;
    font-weight: 780;
    letter-spacing: -0.015em;
}

.action-subtitle {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.actions {
    display: grid;
    gap: 12px;
    margin-top: 17px;
}

.actions .button {
    width: 100%;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font-size: 0.91rem;
    font-weight: 760;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:focus-visible {
    outline: 3px solid rgba(240, 68, 103, 0.34);
    outline-offset: 3px;
}

.button--primary {
    color: #fff;
    background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
    box-shadow: 0 13px 28px rgba(190, 19, 55, 0.25);
}

.button--primary:hover {
    box-shadow: 0 16px 34px rgba(190, 19, 55, 0.34);
}

.button--secondary {
    border-color: var(--line-strong);
    color: var(--text);
    background: var(--surface-soft);
}

.button--secondary:hover {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.085);
}

.button-play {
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid currentColor;
}

.button--loading .button-play {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 700ms linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.open-status {
    margin: 13px 0 0;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.trust-row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--text-muted);
    font-size: 0.76rem;
    line-height: 1.5;
}

.trust-icon {
    position: relative;
    flex: 0 0 auto;
    width: 13px;
    height: 11px;
    margin-top: 3px;
    border: 1.5px solid var(--text-muted);
    border-radius: 3px;
}

.trust-icon::before {
    content: "";
    position: absolute;
    left: 2px;
    top: -7px;
    width: 6px;
    height: 7px;
    border: 1.5px solid var(--text-muted);
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 16px;
    padding-bottom: calc(24px + var(--safe-bottom));
    color: var(--text-muted);
    font-size: 0.74rem;
}

.site-footer a {
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--text);
}

@media (max-width: 820px) {
    .site-header,
    .share-shell,
    .site-footer {
        width: min(calc(100% - 28px), 680px);
    }

    .share-shell {
        align-items: start;
        padding-top: 8px;
    }

    .content-card {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .media-panel,
    .media-placeholder {
        min-height: 0;
        max-height: none;
    }

    .media-shade {
        background: linear-gradient(180deg, transparent 45%, var(--surface-strong) 100%);
    }

    .content-panel {
        padding: 30px clamp(22px, 6vw, 38px) 34px;
    }

    .content-body {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "actions"
            "description";
        gap: 25px;
    }

    .description-wrapper.is-collapsed {
        max-height: 10.2em;
        overflow: hidden;
    }

    .description-wrapper.is-collapsible.is-collapsed::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        height: 3.6em;
        pointer-events: none;
        background: linear-gradient(180deg, transparent, var(--surface-strong));
    }

    h1 {
        max-width: none;
        font-size: clamp(2rem, 9vw, 3.25rem);
    }
}

@media (max-width: 520px) {
    .site-header,
    .site-footer {
        width: calc(100% - 32px);
    }

    .site-header {
        padding-top: calc(14px + var(--safe-top));
        padding-bottom: 14px;
    }

    .brand {
        gap: 10px;
    }

    .brand-logo {
        width: 48px;
        height: 48px;
        border-radius: 15px;
    }

    .brand-copy strong {
        font-size: 1.02rem;
    }

    .brand-copy small,
    .header-badge {
        display: none;
    }

    .content-card {
        overflow: visible;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .share-shell {
        width: 100%;
        padding-top: 0;
        padding-bottom: 34px;
    }

    .media-panel,
    .media-placeholder {
        width: calc(100% - 28px);
        min-height: 0;
        margin-inline: 14px;
        border: 1px solid var(--line);
        border-radius: 22px;
        box-shadow: 0 20px 48px rgba(0, 0, 0, 0.34);
    }

    .content-panel {
        padding: 25px 20px 10px;
    }

    .eyebrow {
        margin-bottom: 10px;
        font-size: 0.69rem;
        letter-spacing: 0.115em;
    }

    h1 {
        font-size: clamp(2rem, 10vw, 2.7rem);
        line-height: 1.04;
        letter-spacing: -0.045em;
    }

    .content-body {
        gap: 23px;
        margin-top: 23px;
    }

    .action-panel {
        padding: 16px;
        border-radius: 20px;
        background:
            linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
            rgba(13, 12, 15, 0.72);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
    }

    .action-subtitle {
        display: none;
    }

    .actions {
        gap: 10px;
        margin-top: 14px;
    }

    .button {
        min-height: 47px;
        padding-block: 12px;
    }

    .open-status {
        margin-top: 11px;
        font-size: 0.73rem;
    }

    .trust-row {
        margin-top: 14px;
        padding-top: 14px;
        font-size: 0.71rem;
    }

    .content-description {
        margin: 0;
        font-size: 0.96rem;
        line-height: 1.65;
    }

    .description-heading {
        margin-bottom: 11px;
    }

    .description-wrapper.is-collapsible.is-collapsed::after {
        background: linear-gradient(180deg, transparent, var(--bg-soft));
    }

    .button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
