:root {
    color-scheme: dark;
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.82);
    --panel-strong: rgba(30, 41, 59, 0.92);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --subtle: #94a3b8;
    --accent: #f97316;
    --accent-2: #f59e0b;
    --teal: #14b8a6;
    --shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(249, 115, 22, 0.14), transparent 34rem),
        radial-gradient(circle at 70% 12%, rgba(20, 184, 166, 0.10), transparent 32rem),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.nav-shell,
.footer-shell,
.home-main > section:not(.hero),
.page-main,
.detail-main {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

.nav-shell {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    font-weight: 900;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 28px rgba(249, 115, 22, 0.34);
}

.brand-text {
    font-size: 1.22rem;
    background: linear-gradient(90deg, #fb923c, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.nav-link {
    padding: 10px 13px;
    color: var(--muted);
    border-radius: 12px;
    font-size: 0.94rem;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(249, 115, 22, 0.95);
    transform: translateY(-1px);
}

.top-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-search input,
.large-search input,
.filter-row input {
    min-width: 0;
    color: var(--text);
    background: rgba(15, 23, 42, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 14px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.top-search input {
    width: 220px;
    padding: 10px 14px;
}

.top-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.filter-row input:focus {
    border-color: rgba(249, 115, 22, 0.8);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.14);
    background: rgba(15, 23, 42, 0.98);
}

.top-search button,
.mobile-search button,
.large-search button,
.filter-row button {
    border: 0;
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 25px rgba(249, 115, 22, 0.28);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.top-search button {
    padding: 10px 14px;
}

.top-search button:hover,
.mobile-search button:hover,
.large-search button:hover,
.filter-row button:hover,
.primary-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.mobile-menu-button {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    color: #fff;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.74);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    border-top: 1px solid var(--line);
}

.mobile-panel.open {
    display: block;
}

.mobile-search {
    display: flex;
    gap: 8px;
    padding-top: 14px;
}

.mobile-search input {
    flex: 1;
    padding: 12px 14px;
}

.mobile-search button {
    padding: 12px 16px;
}

.mobile-links {
    display: grid;
    gap: 8px;
    padding-top: 12px;
}

.hero {
    position: relative;
    height: 620px;
    overflow: hidden;
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.9s ease;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 42%, rgba(0, 0, 0, 0.18) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.95) 0%, transparent 44%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    max-width: min(var(--max), calc(100% - 32px));
}

.hero-kicker,
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #fdba74;
    font-size: 0.92rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.hero-kicker::before,
.kicker::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 24px rgba(249, 115, 22, 0.75);
}

.hero h1 {
    width: min(760px, 100%);
    margin: 18px 0 18px;
    font-size: clamp(2.6rem, 7vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero p {
    width: min(670px, 100%);
    margin: 0 0 26px;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.75;
}

.hero-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-meta span,
.detail-meta span,
.card-tags span,
.tag-cloud span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    font-size: 0.84rem;
    font-weight: 800;
}

.hero-meta span:first-child,
.card-tags span:first-child,
.tag-cloud span:first-child {
    background: rgba(249, 115, 22, 0.95);
    border-color: rgba(249, 115, 22, 0.65);
}

.hero-actions,
.page-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 14px;
    font-weight: 900;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 16px 35px rgba(249, 115, 22, 0.30);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.ghost-button {
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(12px);
}

.ghost-button:hover {
    border-color: rgba(249, 115, 22, 0.55);
    color: #fed7aa;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 34px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 13px;
    height: 13px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.36);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
    width: 38px;
    background: var(--accent);
}

.home-search-block,
.content-section,
.page-hero,
.detail-hero,
.player-section,
.detail-copy,
.breadcrumb {
    margin-top: 42px;
}

.home-search-block {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 24px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(120deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.62));
    box-shadow: var(--shadow);
}

.home-search-copy h2,
.cta-card h2,
.page-hero h1,
.detail-info h1 {
    margin: 12px 0;
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.home-search-copy h2,
.cta-card h2 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.home-search-copy p,
.cta-card p,
.page-hero p,
.section-heading p,
.detail-one-line,
.detail-copy p,
.card-body p {
    color: var(--muted);
    line-height: 1.72;
}

.large-search {
    display: flex;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(2, 6, 23, 0.48);
}

.large-search input {
    flex: 1;
    padding: 14px 16px;
    border-radius: 14px;
}

.large-search button {
    padding: 0 24px;
}

.content-section {
    position: relative;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 10px 0 0;
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    letter-spacing: -0.03em;
}

.section-heading p {
    margin: 9px 0 0;
    max-width: 680px;
}

.section-link {
    color: #fdba74;
    background: rgba(249, 115, 22, 0.10);
    border: 1px solid rgba(249, 115, 22, 0.22);
    white-space: nowrap;
}

.section-link:hover {
    color: #fff;
    background: rgba(249, 115, 22, 0.24);
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.92));
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    border-color: rgba(249, 115, 22, 0.42);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.38);
}

.poster-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #111827, #020617);
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.movie-card:hover .poster-wrap img {
    transform: scale(1.06);
    opacity: 0.88;
}

.poster-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 52%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), transparent);
}

.poster-play {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #fff;
    background: rgba(249, 115, 22, 0.96);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.35);
}

.rank-mark {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 3;
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 10px 26px rgba(249, 115, 22, 0.32);
}

.card-body {
    padding: 16px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 12px;
}

.card-tags span {
    min-height: 26px;
    padding: 5px 9px;
    font-size: 0.74rem;
}

.card-body h3 {
    margin: 0;
    color: #fff;
    font-size: 1.08rem;
    line-height: 1.35;
}

.card-body h3 a:hover {
    color: #fdba74;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;
    color: var(--subtle);
    font-size: 0.84rem;
}

.card-meta span + span::before {
    content: "·";
    margin-right: 8px;
    color: rgba(148, 163, 184, 0.52);
}

.card-body p {
    margin: 12px 0 0;
    font-size: 0.94rem;
}

.movie-card.horizontal {
    display: grid;
    grid-template-columns: 142px minmax(0, 1fr);
}

.movie-card.horizontal .poster-wrap {
    aspect-ratio: auto;
    min-height: 190px;
}

.movie-card.horizontal .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-band {
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(110deg, rgba(30, 41, 59, 0.60), rgba(15, 23, 42, 0.86));
}

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

.ranking-list {
    display: grid;
    gap: 12px;
}

.ranking-item {
    display: grid;
    grid-template-columns: auto 64px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.ranking-item:hover {
    transform: translateX(4px);
    border-color: rgba(249, 115, 22, 0.42);
    background: rgba(30, 41, 59, 0.86);
}

.ranking-number {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
    background: rgba(249, 115, 22, 0.85);
}

.ranking-item img {
    width: 64px;
    height: 86px;
    object-fit: cover;
    border-radius: 12px;
    background: #0f172a;
}

.ranking-copy {
    min-width: 0;
}

.ranking-copy strong {
    display: block;
    overflow: hidden;
    color: #fff;
    font-size: 1rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-copy em {
    display: block;
    overflow: hidden;
    margin-top: 6px;
    color: var(--subtle);
    font-style: normal;
    font-size: 0.88rem;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.ranking-arrow {
    color: #fdba74;
    font-size: 1.5rem;
}

.cta-card,
.page-hero,
.detail-hero,
.player-section,
.detail-copy,
.filter-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.82));
    box-shadow: var(--shadow);
}

.cta-card,
.page-hero,
.filter-card {
    padding: 30px;
}

.page-main {
    padding-bottom: 60px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 270px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: -40% -10% auto auto;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.18);
    filter: blur(20px);
}

.page-hero > * {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    max-width: 820px;
    font-size: clamp(2rem, 5vw, 4rem);
}

.page-hero p {
    max-width: 760px;
    margin: 0 0 22px;
    font-size: 1.06rem;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.category-card a {
    position: relative;
    display: block;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.80);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.category-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.44;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.category-card a:hover img {
    opacity: 0.58;
    transform: scale(1.07);
}

.category-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.95), rgba(2, 6, 23, 0.30));
}

.category-card div {
    position: absolute;
    inset: auto 22px 22px;
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 1.65rem;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.category-card em {
    display: block;
    margin-top: 13px;
    overflow: hidden;
    color: #fdba74;
    font-style: normal;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.filter-card {
    margin-bottom: 18px;
    padding: 18px;
}

.filter-label {
    display: block;
    margin-bottom: 10px;
    color: #fdba74;
    font-weight: 900;
}

.filter-row {
    display: flex;
    gap: 10px;
}

.filter-row input {
    flex: 1;
    padding: 13px 14px;
}

.filter-row button {
    padding: 0 18px;
}

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 22px;
}

.chip-row button {
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid var(--line);
    color: var(--muted);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    cursor: pointer;
}

.chip-row button:hover,
.chip-row button.active {
    color: #fff;
    border-color: rgba(249, 115, 22, 0.55);
    background: rgba(249, 115, 22, 0.20);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    color: var(--subtle);
    font-size: 0.92rem;
}

.breadcrumb a:hover {
    color: #fdba74;
}

.detail-main {
    padding-bottom: 60px;
}

.detail-hero {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 30px;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.36);
    background: #0f172a;
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.detail-info h1 {
    font-size: clamp(2rem, 5vw, 4.6rem);
}

.detail-one-line {
    max-width: 850px;
    font-size: 1.12rem;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px 0 26px;
}

.player-section {
    padding: 26px;
}

.player-section h2,
.detail-copy h2 {
    margin: 0 0 18px;
}

.player-card {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    background: #000;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
}

.player-card video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.28));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-circle {
    display: grid;
    place-items: center;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 18px 45px rgba(249, 115, 22, 0.35);
}

.detail-copy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 28px;
}

.detail-copy article {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(2, 6, 23, 0.28);
}

.detail-copy p {
    margin: 0;
}

.related-section {
    margin-top: 42px;
}

.page-search {
    width: min(720px, 100%);
    margin-top: 8px;
}

.site-footer {
    margin-top: 70px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(2, 6, 23, 0.96));
}

.footer-shell {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 36px;
    padding: 44px 0;
}

.footer-brand p {
    max-width: 560px;
    color: var(--subtle);
    line-height: 1.7;
}

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

.footer-columns h2 {
    margin: 0 0 14px;
    font-size: 1rem;
    color: #fff;
}

.footer-columns a {
    display: block;
    margin: 9px 0;
    color: var(--subtle);
}

.footer-columns a:hover {
    color: #fdba74;
}

.footer-bottom {
    padding: 18px;
    color: var(--subtle);
    text-align: center;
    border-top: 1px solid var(--line);
}

.is-filtered-out {
    display: none !important;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 36px;
    color: var(--muted);
    text-align: center;
    border: 1px dashed rgba(148, 163, 184, 0.26);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.45);
}

@media (max-width: 1080px) {
    .nav-links,
    .top-search {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

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

    .home-search-block,
    .footer-shell,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .detail-poster {
        width: min(320px, 100%);
    }
}

@media (max-width: 760px) {
    .hero {
        height: 560px;
    }

    .hero-content {
        justify-content: flex-end;
        padding-bottom: 86px;
    }

    .hero h1 {
        font-size: clamp(2.25rem, 12vw, 4rem);
    }

    .hero p {
        font-size: 1rem;
    }

    .home-search-block,
    .feature-band,
    .page-hero,
    .detail-hero,
    .player-section,
    .detail-copy,
    .cta-card {
        padding: 20px;
        border-radius: 22px;
    }

    .large-search,
    .filter-row,
    .mobile-search {
        flex-direction: column;
    }

    .large-search button,
    .filter-row button,
    .mobile-search button {
        min-height: 46px;
    }

    .movie-grid,
    .movie-grid.compact,
    .horizontal-grid,
    .ranking-grid,
    .category-grid,
    .detail-copy,
    .footer-columns {
        grid-template-columns: 1fr;
    }

    .movie-card.horizontal {
        grid-template-columns: 122px minmax(0, 1fr);
    }

    .movie-card.horizontal .poster-wrap {
        min-height: 172px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ranking-item {
        grid-template-columns: auto 54px minmax(0, 1fr);
    }

    .ranking-arrow {
        display: none;
    }

    .ranking-item img {
        width: 54px;
        height: 74px;
    }
}

@media (max-width: 460px) {
    .nav-shell,
    .footer-shell,
    .home-main > section:not(.hero),
    .page-main,
    .detail-main,
    .mobile-panel {
        width: min(100% - 22px, var(--max));
    }

    .brand-text {
        font-size: 1.02rem;
    }

    .hero-actions,
    .page-hero-actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .primary-button,
    .ghost-button {
        width: 100%;
    }
}
