:root {
    --bg: #000000;
    --panel: #0f0f0f;
    --panel-soft: rgba(18, 18, 18, 0.86);
    --panel-strong: rgba(0, 0, 0, 0.96);
    --border: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.7);
    --text-faint: rgba(255, 255, 255, 0.54);
    --accent: #dc2626;
    --accent-2: #7c3aed;
    --accent-3: #2563eb;
    --gold: #fbbf24;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    --container: min(1280px, calc(100vw - 2rem));
    --radius: 1rem;
    --radius-sm: 0.75rem;
    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
}

body.modal-open {
    overflow: hidden;
}

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

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

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

[hidden] {
    display: none !important;
}

.site-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(220, 38, 38, 0.14), transparent 24%),
        linear-gradient(180deg, rgba(17, 17, 17, 0.55), rgba(0, 0, 0, 0));
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 50;
    background: rgba(0, 0, 0, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-header.is-home {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.25));
    border-bottom-color: transparent;
}

.site-header__inner,
.page-main,
.seo-section__inner {
    width: var(--container);
    margin: 0 auto;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}

.site-header__brand-group,
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-logo {
    font-size: clamp(1.65rem, 2vw, 2rem);
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.03em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.site-nav__link {
    color: var(--text-soft);
    font-size: 0.98rem;
    transition: color var(--transition);
}

.site-nav__link:hover,
.site-nav__link.is-active {
    color: var(--text);
}

.nav-search {
    position: relative;
    width: 18rem;
}

.nav-search__form,
.mobile-search {
    position: relative;
}

.nav-search__input,
.mobile-search__input,
.chat-input__field,
.filter-field select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.9rem 2.8rem 0.9rem 1rem;
    background: rgba(0, 0, 0, 0.62);
    color: var(--text);
    outline: none;
    transition: border-color var(--transition), background var(--transition);
}

.nav-search__input:focus,
.mobile-search__input:focus,
.chat-input__field:focus,
.filter-field select:focus {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(10, 10, 10, 0.92);
}

.nav-search__clear {
    position: absolute;
    top: 50%;
    right: 0.8rem;
    transform: translateY(-50%);
    border: 0;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    color: var(--text-faint);
    background: transparent;
}

.nav-search__clear:hover {
    color: var(--text);
}

.nav-search__results {
    position: absolute;
    inset: calc(100% + 0.65rem) 0 auto;
    background: rgba(8, 8, 8, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.search-result,
.mobile-menu .site-nav__link {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.search-result {
    padding: 0.75rem;
    transition: background var(--transition);
}

.search-result:hover {
    background: rgba(255, 255, 255, 0.08);
}

.search-result__poster {
    width: 3rem;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 0.45rem;
    background: #111827;
}

.search-result__title {
    margin: 0 0 0.15rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.search-result__year {
    margin: 0;
    color: var(--text-faint);
    font-size: 0.86rem;
}

.assistant-button {
    position: relative;
    isolation: isolate;
    border: 0;
    border-radius: 999px;
    padding: 0.2rem;
    background: transparent;
}

.assistant-button__glow {
    position: absolute;
    inset: -0.2rem;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
    background-size: 200% 200%;
    filter: blur(12px);
    opacity: 0.9;
    animation: gradient-shift 3s linear infinite;
}

.assistant-button__label {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
    padding: 0 1.1rem;
    border-radius: 999px;
    background: #040404;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.assistant-button__text {
    background: linear-gradient(90deg, #fb7185, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.assistant-button:hover .assistant-button__glow {
    opacity: 1;
}

.menu-button {
    display: none;
    width: 2.9rem;
    height: 2.9rem;
    border: 1px solid var(--border);
    border-radius: 0.9rem;
    background: rgba(0, 0, 0, 0.72);
    padding: 0.7rem;
    flex-direction: column;
    justify-content: space-between;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
}

.mobile-menu {
    width: var(--container);
    margin: 0 auto;
    padding: 0 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav--mobile {
    display: grid;
    gap: 0.9rem;
    padding: 1rem 0 1.2rem;
}

.site-nav--mobile .site-nav__link {
    padding: 0.2rem 0;
}

.assistant-button--mobile {
    width: 100%;
}

.page-main {
    padding-top: 6.8rem;
    padding-bottom: 4rem;
}

.page-main--home {
    padding-top: 1.2rem;
}

.hero-shell {
    min-height: 62vh;
    position: relative;
}

.hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__backdrop,
.detail-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__overlay,
.detail-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.96), rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.1)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.88));
}

.hero__content {
    position: relative;
    z-index: 1;
    width: var(--container);
    margin: 0 auto;
    padding: 8rem 0 3rem;
    max-width: calc(var(--container) - 0rem);
}

.hero__copy {
    max-width: 40rem;
}

.hero__title,
.section-heading h1,
.detail-title {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.25rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
}

.hero__overview,
.detail-summary,
.actor-biography {
    margin: 1.25rem 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.6vw, 1.16rem);
    max-width: 40rem;
    white-space: pre-line;
}

.hero__actions,
.detail-actions,
.meta-list,
.detail-cast,
.detail-similar,
.actor-filmography {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero__actions {
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 3rem;
    border: 0;
    border-radius: 0.9rem;
    padding: 0 1.35rem;
    font-weight: 700;
    transition: transform var(--transition), opacity var(--transition), background var(--transition), color var(--transition);
}

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

.button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.button--light {
    background: #ffffff;
    color: #000000;
}

.button--glass,
.button--ghost,
.filter-toggle {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.button--danger {
    background: var(--accent);
    color: var(--text);
}

.mobile-inline {
    display: none;
}

.prime-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    border-radius: 1rem;
    padding: 0.95rem 1.25rem;
    background: linear-gradient(90deg, #00a8e1, #00a8e1, #37475a);
    color: var(--text);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.prime-button__note {
    display: block;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.9);
}

.detail-affiliate {
    display: grid;
    gap: 0.9rem;
}

.affiliate-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.affiliate-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0 1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-weight: 700;
    transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.affiliate-link:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.08);
}

.affiliate-link--amazon {
    border-color: rgba(255, 196, 57, 0.32);
    background: linear-gradient(180deg, rgba(255, 196, 57, 0.14), rgba(255, 196, 57, 0.06));
}

.affiliate-note {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.collection-section,
.catalog-header,
.section-heading {
    margin-bottom: 2rem;
}

.section-heading {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.section-heading--row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.section-heading h1,
.section-heading h2,
.detail-section h2 {
    margin: 0;
    font-size: clamp(1.7rem, 2vw, 2.25rem);
    line-height: 1.05;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.5rem;
}

.card-grid > .status-card,
.card-grid > .empty-state {
    grid-column: 1 / -1;
}

.movie-card {
    position: relative;
}

.movie-card__media {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #111827;
}

.movie-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease;
}

.movie-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.88));
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 2;
    pointer-events: none;
}

.movie-card:hover .movie-card__overlay {
    opacity: 1;
}

.movie-card:hover .movie-card__media img {
    transform: scale(1.05);
}

.movie-card__link {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.movie-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.play-button {
    width: 2.45rem;
    height: 2.45rem;
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    font-size: 0.92rem;
    font-weight: 700;
}

.play-button:hover {
    background: rgba(255, 255, 255, 0.88);
}

.movie-card__play {
    position: absolute;
    left: 1rem;
    bottom: 5.8rem;
    z-index: 3;
    opacity: 0;
    transition: opacity var(--transition), transform var(--transition);
}

.movie-card:hover .movie-card__play,
.movie-card:focus-within .movie-card__play {
    opacity: 1;
}

.movie-card__play:focus-visible {
    opacity: 1;
    transform: scale(1.04);
}

.rating-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--gold);
    font-weight: 700;
    font-size: 0.92rem;
}

.movie-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.movie-card__summary,
.movie-card__meta,
.filmography-role {
    color: var(--text-soft);
    font-size: 0.88rem;
}

.movie-card__summary {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.filters-panel {
    margin-top: 1.25rem;
    padding: 1.5rem;
    border-radius: var(--radius);
    background: rgba(17, 17, 17, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.filter-field {
    display: grid;
    gap: 0.55rem;
}

.filter-field span,
.genre-panel h2 {
    color: var(--text-soft);
    font-size: 0.92rem;
    font-weight: 600;
}

.filter-field select {
    border-radius: 0.9rem;
    padding-right: 1rem;
}

.filter-field--button {
    align-self: end;
}

.genre-panel {
    margin-top: 1.5rem;
}

.genre-panel h2 {
    margin: 0 0 0.9rem;
}

.genre-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.genre-chip {
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-soft);
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}

.genre-chip.is-active {
    background: var(--accent);
    color: var(--text);
}

.load-more {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.status-card,
.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 7rem;
    padding: 1.4rem;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(10, 10, 10, 0.78);
    color: var(--text-soft);
    text-align: center;
}

.status-card--hero {
    min-height: 62vh;
}

.detail-root {
    display: grid;
    gap: 2rem;
}

.detail-hero {
    position: relative;
    min-height: 54vh;
}

.detail-hero__overlay {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.54), rgba(0, 0, 0, 0.12)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.88));
}

.detail-hero__spacer {
    height: 54vh;
}

.detail-layout,
.actor-layout {
    position: relative;
    width: var(--container);
    margin: -15rem auto 0;
    display: grid;
    grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr);
    gap: 2.2rem;
}

.detail-layout--plain {
    margin-top: 0;
    padding-top: 1rem;
}

.detail-poster img,
.actor-portrait img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.detail-content,
.actor-content {
    display: grid;
    gap: 1.8rem;
}

.detail-tagline {
    margin: -0.45rem 0 0;
    color: var(--text-soft);
    font-size: 1.12rem;
    font-style: italic;
}

.meta-list {
    gap: 1.25rem;
    color: var(--text-soft);
}

.detail-section {
    display: grid;
    gap: 1rem;
}

.cast-grid,
.filmography-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.1rem;
}

.cast-card,
.filmography-card {
    display: grid;
    gap: 0.55rem;
}

.cast-card__image {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: #111827;
}

.cast-card__image img,
.filmography-card .movie-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cast-card__name {
    font-weight: 700;
}

.cast-card__role,
.actor-meta {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.actor-layout {
    margin-top: 0;
    padding-top: 1rem;
}

.actor-meta-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
}

.seo-section {
    position: relative;
    padding: 4.5rem 0 5.5rem;
    background:
        radial-gradient(circle at 14% 18%, rgba(220, 38, 38, 0.16), transparent 24%),
        radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.08), transparent 18%),
        radial-gradient(circle at 86% 80%, rgba(37, 99, 235, 0.14), transparent 24%),
        linear-gradient(180deg, #050505, #000000 62%);
    overflow: hidden;
}

.seo-section__inner {
    display: grid;
    gap: 2rem;
    position: relative;
}

.seo-stage,
.seo-spread,
.seo-cadence {
    position: relative;
}

.seo-stage {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.75rem);
    grid-template-columns: minmax(0, 1.65fr) minmax(16rem, 0.72fr);
    padding: clamp(1.6rem, 3vw, 2.8rem);
    border-radius: 2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(108deg, rgba(10, 10, 10, 0.98) 0%, rgba(13, 13, 13, 0.94) 54%, rgba(31, 10, 10, 0.9) 100%);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.seo-stage::before {
    content: "";
    position: absolute;
    inset: -18% 12% -28% auto;
    width: min(28rem, 42vw);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
    transform: skewX(-18deg);
    filter: blur(72px);
    opacity: 0.22;
}

.seo-stage::after {
    content: "";
    position: absolute;
    inset: 1rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

.seo-stage__copy,
.seo-memory {
    position: relative;
    z-index: 1;
}

.seo-kicker,
.seo-spread__eyebrow,
.seo-memory__title {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.seo-stage h1,
.seo-spread h2 {
    margin: 0;
    color: #ffffff;
    line-height: 1.02;
}

.seo-stage h1 {
    max-width: 18ch;
    margin-top: 1rem;
    font-size: clamp(1.7rem, 2.85vw, 3.25rem);
    letter-spacing: -0.06em;
    text-wrap: balance;
}

.seo-stage__lead,
.seo-spread p,
.seo-memory__list p,
.seo-memory__note,
.seo-method span,
.seo-quote {
    color: rgba(255, 255, 255, 0.78);
}

.seo-stage__lead {
    margin: 1.35rem 0 0;
    max-width: 46rem;
    font-size: 1.08rem;
    line-height: 1.78;
}

.seo-stage__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.seo-stage__cta {
    width: auto;
    min-width: 13rem;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    box-shadow: 0 18px 40px rgba(220, 38, 38, 0.2);
}

.seo-stage__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 12rem;
    min-height: 3.25rem;
    padding: 0 1.4rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.seo-stage__link:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
}

.seo-memory {
    align-self: end;
    padding-left: 1.35rem;
}

.seo-memory::before {
    content: "";
    position: absolute;
    inset: 0.2rem auto 0.2rem 0;
    width: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.04));
}

.seo-memory__title {
    margin-bottom: 1.15rem;
    color: #fca5a5;
}

.seo-memory__list {
    display: grid;
    gap: 0.95rem;
}

.seo-memory__list p {
    margin: 0;
    padding-bottom: 0.95rem;
    font-size: 1rem;
    line-height: 1.65;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-memory__list p:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.seo-memory__list span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fda4af;
}

.seo-memory__note {
    margin: 1.35rem 0 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.56);
}

.seo-cadence {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-cadence span {
    padding-top: 0.95rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.98rem;
    line-height: 1.6;
}

.seo-spread {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.75rem);
    grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.85fr);
    align-items: start;
}

.seo-spread__story {
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.seo-spread__method {
    padding: 1.1rem 0 0 1.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.seo-spread__eyebrow {
    margin-bottom: 1rem;
}

.seo-spread h2 {
    max-width: 18ch;
    font-size: clamp(1.35rem, 2vw, 2.2rem);
    letter-spacing: -0.05em;
    text-wrap: balance;
}

.seo-spread p {
    max-width: 44rem;
    margin: 1rem 0 0;
    line-height: 1.8;
}

.seo-method {
    counter-reset: method;
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.seo-method li {
    counter-increment: method;
    display: grid;
    gap: 0.35rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.seo-method li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.seo-method li::before {
    content: "0" counter(method);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fca5a5;
}

.seo-method strong {
    display: block;
    color: #ffffff;
    font-size: 1.18rem;
    line-height: 1.3;
}

.seo-method span {
    line-height: 1.72;
}

.seo-quote {
    max-width: 48rem;
    margin: 0;
    padding-top: 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: clamp(1.15rem, 2vw, 1.6rem);
    line-height: 1.55;
    font-style: italic;
    color: rgba(255, 255, 255, 0.88);
}

#modal-root {
    position: relative;
    z-index: 90;
}

.modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.modal__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 70rem);
    max-height: calc(100vh - 2rem);
    border-radius: var(--radius);
    background: #080808;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.6);
    color: var(--text);
    font-size: 1.3rem;
}

.video-modal__frame {
    width: min(100%, 70rem);
    aspect-ratio: 16 / 9;
    background: #000000;
}

.chat-modal__dialog {
    display: flex;
    flex-direction: column;
    width: min(100%, 52rem);
    height: min(80vh, 56rem);
}

.chat-modal__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 1.4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat-modal__title {
    margin: 0;
    font-size: 1.18rem;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-message {
    display: flex;
    width: 100%;
}

.chat-message--assistant {
    justify-content: flex-start;
}

.chat-message--user {
    justify-content: flex-end;
}

.chat-message__bubble {
    max-width: min(42rem, 82%);
    width: fit-content;
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    white-space: pre-wrap;
    word-break: break-word;
}

.chat-message--assistant .chat-message__bubble {
    background: #18181b;
}

.chat-message--user .chat-message__bubble {
    background: var(--accent);
}

.chat-message__bubble--typing {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 4rem;
}

.chat-typing-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    animation: chat-typing 1s infinite ease-in-out;
}

.chat-typing-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.chat-typing-dot:nth-child(3) {
    animation-delay: 0.3s;
}

.chat-alert {
    margin: 0 1.35rem 1rem;
    border-radius: 1rem;
    padding: 0.95rem 1rem;
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.22);
    color: #fca5a5;
}

.chat-suggestions {
    display: grid;
    gap: 0.85rem;
}

.chat-suggestions h3 {
    margin: 0;
    font-size: 1rem;
}

.suggested-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.suggested-card {
    display: grid;
    gap: 0.7rem;
    padding: 0.75rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.04);
    transition: background var(--transition);
}

.suggested-card:hover {
    background: rgba(255, 255, 255, 0.1);
}

.suggested-card__main {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.suggested-card__main > div {
    min-width: 0;
    display: grid;
    gap: 0.18rem;
}

.suggested-card__poster {
    width: 4.25rem;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 0.65rem;
    background: #111827;
}

.suggested-card__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}

.suggested-card__summary {
    margin: 0.35rem 0 0;
    color: var(--text-soft);
    font-size: 0.86rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.suggested-card__affiliate {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 2rem;
    padding: 0 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 196, 57, 0.22);
    background: rgba(255, 196, 57, 0.08);
    color: #ffd66b;
    font-size: 0.78rem;
    font-weight: 700;
}

.chat-input {
    display: flex;
    gap: 0.8rem;
    padding: 1.2rem 1.35rem 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@keyframes chat-typing {
    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 0.35;
    }

    40% {
        transform: translateY(-0.2rem);
        opacity: 1;
    }
}

.chat-input__field {
    border-radius: 0.95rem;
}

.chat-input__submit {
    min-width: 3.35rem;
    border-radius: 0.95rem;
}

.hidden {
    display: none !important;
}

.text-muted {
    color: var(--text-soft);
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@media (max-width: 1160px) {
    .card-grid,
    .cast-grid,
    .filmography-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .filters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .site-nav--desktop,
    .nav-search,
    .assistant-button--desktop {
        display: none;
    }

    .menu-button {
        display: inline-flex;
    }

    .detail-layout,
    .actor-layout {
        grid-template-columns: 1fr;
        margin-top: -8rem;
    }

    .detail-poster,
    .actor-portrait {
        width: min(18rem, 70vw);
        margin: 0 auto;
    }

    .detail-content,
    .actor-content {
        text-align: center;
    }

    .detail-actions,
    .meta-list,
    .actor-meta-list {
        justify-content: center;
    }

    .cast-grid,
    .filmography-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .seo-stage,
    .seo-spread,
    .seo-cadence {
        grid-template-columns: 1fr;
    }

    .seo-stage h1,
    .seo-spread h2 {
        max-width: none;
    }

    .seo-spread__method {
        padding-left: 0;
        padding-top: 1.3rem;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 720px) {
    .page-main {
        padding-top: 6.3rem;
        padding-bottom: 3rem;
    }

    .hero__content {
        padding-top: 7.5rem;
    }

    .card-grid,
    .cast-grid,
    .filmography-grid,
    .suggested-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .filters-grid,
    .section-heading--row {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .filter-toggle,
    .button,
    .prime-button {
        width: 100%;
    }

    .chat-input {
        flex-direction: column;
    }

    .chat-input__submit {
        width: 100%;
    }

    .chat-modal__dialog {
        width: min(100%, 34rem);
        height: min(86vh, 56rem);
    }

    .chat-modal__header,
    .chat-messages {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .chat-message__bubble {
        max-width: min(100%, 90%);
    }

    .suggested-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .suggested-card {
        padding: 0.7rem;
        border-radius: 0.9rem;
    }

    .suggested-card__affiliate {
        min-height: 1.9rem;
        font-size: 0.75rem;
    }

    .suggested-card__poster {
        width: 3.5rem;
        border-radius: 0.55rem;
    }

    .suggested-card__title {
        font-size: 0.94rem;
    }

    .suggested-card__summary {
        margin-top: 0.15rem;
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }

    .movie-card__play {
        opacity: 1;
    }

    .desktop-inline {
        display: none;
    }

    .mobile-inline {
        display: inline;
    }

    .seo-section {
        padding: 3.4rem 0 4.2rem;
    }

    .seo-stage {
        padding: 1.35rem;
        border-radius: 1.4rem;
    }

    .seo-stage__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .seo-stage__link {
        width: 100%;
    }

    .seo-memory {
        padding-left: 1rem;
    }

    .seo-cadence {
        gap: 0.95rem;
    }

    .seo-quote {
        font-size: 1.08rem;
    }
}

@media (max-width: 520px) {
    :root {
        --container: min(100vw - 1.25rem, 1280px);
    }

    .card-grid,
    .cast-grid,
    .filmography-grid,
    .suggested-grid {
        gap: 1rem;
    }

    .movie-card__overlay {
        opacity: 1;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.9));
    }

    .hero {
        min-height: 72vh;
    }

    .detail-layout,
    .actor-layout {
        margin-top: -5rem;
    }

    .chat-modal__dialog {
        height: min(88vh, 56rem);
    }

    .chat-modal__header {
        padding: 0.95rem 1rem;
    }

    .chat-messages {
        padding: 0.95rem;
        gap: 0.85rem;
    }

    .chat-alert {
        margin: 0 0.95rem 0.85rem;
        padding: 0.85rem 0.9rem;
    }

    .suggested-card {
        gap: 0.65rem;
    }

    .suggested-card__poster {
        width: 3.15rem;
    }

    .suggested-card__summary {
        display: none;
    }

    .affiliate-links {
        flex-direction: column;
        align-items: stretch;
    }

    .affiliate-link {
        width: 100%;
    }
}
