
:root {
    --bg: #f5fbf7;
    --bg-soft: #ecfdf5;
    --panel: #ffffff;
    --panel-strong: #f0fdf4;
    --text: #0f172a;
    --muted: #5f6b7a;
    --subtle: #90a09a;
    --line: rgba(6, 95, 70, 0.13);
    --brand: #047857;
    --brand-dark: #064e3b;
    --brand-mid: #059669;
    --accent: #22c55e;
    --gold: #f59e0b;
    --shadow: 0 24px 70px rgba(6, 78, 59, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(16, 185, 129, 0.16), transparent 34rem),
        linear-gradient(180deg, #f7fff9 0%, #eefaf1 48%, #ffffff 100%);
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    min-height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--brand-dark);
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.brand-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border-radius: 14px;
    box-shadow: 0 12px 24px rgba(5, 150, 105, 0.28);
    font-size: 15px;
}

.brand-name {
    font-size: 1.28rem;
}

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

.nav-link,
.mobile-nav-link {
    padding: 9px 14px;
    border-radius: 999px;
    color: #315042;
    font-weight: 650;
    transition: background 0.24s ease, color 0.24s ease, transform 0.24s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--brand-dark);
    background: rgba(16, 185, 129, 0.14);
}

.header-search {
    display: flex;
    align-items: center;
    width: min(290px, 28vw);
    padding: 4px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.header-search input,
.quick-search-form input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    padding: 10px 14px;
}

.header-search button,
.quick-search-form button,
.primary-button {
    border: 0;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 14px 26px rgba(5, 150, 105, 0.24);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
    white-space: nowrap;
}

.header-search button:hover,
.quick-search-form button:hover,
.primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(5, 150, 105, 0.30);
}

.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.42);
    color: white;
    background: rgba(255, 255, 255, 0.12);
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 750;
    backdrop-filter: blur(12px);
    transition: transform 0.24s ease, background 0.24s ease;
}

.ghost-button:hover,
.section-link:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.20);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 14px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    background: var(--brand-dark);
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 14px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 8px;
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.08);
}

main {
    overflow: hidden;
}

.hero {
    position: relative;
    width: min(1240px, calc(100% - 32px));
    min-height: 640px;
    margin: 28px auto 0;
    border-radius: 38px;
    overflow: hidden;
    color: white;
    box-shadow: var(--shadow);
    background: var(--brand-dark);
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.55fr);
    align-items: center;
    gap: 42px;
    padding: clamp(32px, 6vw, 72px);
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
    background-image:
        linear-gradient(90deg, rgba(2, 44, 34, 0.96), rgba(6, 78, 59, 0.76) 45%, rgba(6, 95, 70, 0.38)),
        var(--hero-image);
    background-position: center;
    background-size: cover;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 18%, rgba(52, 211, 153, 0.28), transparent 28rem),
        linear-gradient(180deg, rgba(2, 44, 34, 0.2), rgba(2, 44, 34, 0.88));
}

.hero-copy,
.hero-poster {
    position: relative;
    z-index: 1;
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a7f3d0;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-copy h1 {
    max-width: 780px;
    margin: 14px 0 18px;
    font-size: clamp(2.9rem, 7vw, 6.2rem);
    line-height: 0.94;
    letter-spacing: -0.08em;
}

.hero-copy p {
    max-width: 720px;
    color: #d1fae5;
    font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    color: #047857;
    background: rgba(16, 185, 129, 0.11);
    border: 1px solid rgba(5, 150, 105, 0.14);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-tags span {
    color: #d1fae5;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.20);
}

.hero-poster {
    align-self: center;
    justify-self: center;
    width: min(320px, 100%);
    border: 12px solid rgba(255, 255, 255, 0.14);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 34px 80px rgba(0, 0, 0, 0.34);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #064e3b, #10b981);
}

.hero-poster span {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 8px 12px;
    color: white;
    background: rgba(4, 120, 87, 0.82);
    border-radius: 999px;
    font-weight: 800;
}

.hero-bottom-bar {
    position: absolute;
    z-index: 2;
    left: clamp(24px, 5vw, 64px);
    right: clamp(24px, 5vw, 64px);
    bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.hero-dots {
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.34);
    cursor: pointer;
}

.hero-dot.active {
    width: 36px;
    background: white;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.hero-pills a {
    color: white;
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 750;
    backdrop-filter: blur(10px);
}

.quick-search-panel {
    width: min(1160px, calc(100% - 32px));
    margin: -36px auto 0;
    position: relative;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 18px 60px rgba(6, 78, 59, 0.14);
    backdrop-filter: blur(18px);
}

.quick-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    background: var(--bg-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.quick-links a {
    padding: 10px 14px;
    color: var(--brand-dark);
    background: #ecfdf5;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-weight: 750;
}

.content-section {
    width: min(1240px, calc(100% - 32px));
    margin: 72px auto;
}

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

.section-heading h2 {
    margin: 8px 0 8px;
    color: var(--brand-dark);
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.section-heading p {
    max-width: 760px;
    color: var(--muted);
    margin: 0;
}

.section-heading .section-link {
    color: var(--brand-dark);
    background: white;
    border-color: var(--line);
}

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

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

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

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 44px rgba(6, 78, 59, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(5, 150, 105, 0.34);
    box-shadow: 0 30px 70px rgba(6, 78, 59, 0.16);
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #064e3b, #10b981);
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.3s ease;
}

.movie-card:hover .movie-poster img {
    transform: scale(1.08);
}

.poster-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    min-width: 46px;
    text-align: center;
    padding: 6px 9px;
    color: #1f2937;
    background: #facc15;
    border-radius: 999px;
    font-weight: 900;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
}

.poster-play {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 7px 11px;
    color: white;
    background: rgba(4, 120, 87, 0.86);
    border-radius: 999px;
    font-weight: 800;
}

.movie-card-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--subtle);
    font-size: 0.82rem;
    font-weight: 750;
}

.movie-card h3 {
    margin: 0;
    color: var(--text);
    font-size: 1.08rem;
    line-height: 1.25;
}

.movie-card h3 a:hover,
.rank-content h3 a:hover {
    color: var(--brand);
}

.movie-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.93rem;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 28px;
    align-items: start;
}

.ranking-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
    color: white;
    background: linear-gradient(145deg, #064e3b, #022c22);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.panel-heading span {
    color: #86efac;
    font-weight: 850;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.panel-heading h2 {
    margin: 5px 0 18px;
    font-size: 2rem;
    letter-spacing: -0.05em;
}

.rank-list,
.mini-rank-list {
    display: grid;
    gap: 14px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.rank-item {
    display: grid;
    grid-template-columns: 52px 72px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 18px;
}

.full-rank-list .rank-item {
    grid-template-columns: 60px 98px minmax(0, 1fr);
    background: white;
    border-color: var(--line);
    color: var(--text);
    box-shadow: 0 14px 40px rgba(6, 78, 59, 0.08);
}

.rank-number {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--accent));
    border-radius: 15px;
    font-weight: 950;
}

.rank-cover img {
    width: 72px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
    background: linear-gradient(135deg, #064e3b, #10b981);
}

.full-rank-list .rank-cover img {
    width: 98px;
}

.rank-content h3 {
    margin: 0 0 4px;
    font-size: 1rem;
    line-height: 1.25;
}

.rank-content p {
    margin: 0 0 8px;
    color: inherit;
    opacity: 0.76;
    font-size: 0.9rem;
}

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

.category-card {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 22px;
    color: white;
    background:
        radial-gradient(circle at top right, rgba(167, 243, 208, 0.32), transparent 11rem),
        linear-gradient(145deg, #065f46, #022c22);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(6, 78, 59, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-card:nth-child(even) {
    background:
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.26), transparent 11rem),
        linear-gradient(145deg, #047857, #064e3b);
}

.category-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 30px 70px rgba(6, 78, 59, 0.18);
}

.category-card span {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.category-card p {
    margin: 0;
    color: #d1fae5;
    font-size: 0.94rem;
}

.category-card strong {
    color: #bbf7d0;
}

.page-hero,
.detail-hero {
    width: min(1240px, calc(100% - 32px));
    margin: 28px auto 0;
    border-radius: 34px;
    overflow: hidden;
}

.simple-hero,
.category-hero {
    color: white;
    padding: clamp(40px, 7vw, 84px);
    background:
        radial-gradient(circle at 18% 20%, rgba(52, 211, 153, 0.32), transparent 26rem),
        linear-gradient(135deg, #064e3b, #022c22);
    box-shadow: var(--shadow);
}

.page-hero h1 {
    margin: 12px 0;
    font-size: clamp(2.4rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.07em;
}

.page-hero p {
    max-width: 780px;
    color: #d1fae5;
    margin: 0;
    font-size: 1.08rem;
}

.page-search {
    max-width: 720px;
    margin-top: 28px;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.20);
}

.page-search input {
    color: white;
}

.page-search input::placeholder {
    color: rgba(255, 255, 255, 0.78);
}

.filter-bar {
    width: min(1240px, calc(100% - 32px));
    margin: 24px auto 0;
    display: grid;
    gap: 12px;
    padding: 18px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: 0 14px 40px rgba(6, 78, 59, 0.08);
}

.filter-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-row span {
    color: var(--brand-dark);
    font-weight: 900;
    margin-right: 2px;
}

.filter-row button {
    border: 1px solid var(--line);
    color: #315042;
    background: #f7fff9;
    border-radius: 999px;
    padding: 7px 12px;
    cursor: pointer;
}

.filter-row button.active,
.filter-row button:hover {
    color: white;
    background: var(--brand);
}

.detail-hero {
    position: relative;
    color: white;
    background-image:
        linear-gradient(90deg, rgba(2, 44, 34, 0.96), rgba(6, 78, 59, 0.72)),
        var(--detail-bg);
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow);
}

.detail-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 18% 18%, rgba(52, 211, 153, 0.28), transparent 30rem);
}

.detail-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: clamp(24px, 5vw, 54px);
    align-items: center;
    padding: clamp(32px, 6vw, 76px);
}

.detail-poster {
    border-radius: 30px;
    overflow: hidden;
    border: 10px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.30);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #064e3b, #10b981);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #bbf7d0;
    font-weight: 750;
}

.breadcrumb a:hover {
    color: white;
}

.detail-copy h1 {
    margin: 12px 0 18px;
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    line-height: 0.96;
    letter-spacing: -0.07em;
}

.detail-copy p {
    max-width: 840px;
    color: #d1fae5;
    font-size: 1.12rem;
}

.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 22px 0;
}

.detail-stats span {
    color: #052e2b;
    background: #a7f3d0;
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 850;
}

.player-section {
    width: min(1060px, calc(100% - 32px));
    margin: 60px auto 0;
}

.video-shell {
    position: relative;
    overflow: hidden;
    background: #021713;
    border-radius: 30px;
    box-shadow: 0 30px 80px rgba(2, 44, 34, 0.28);
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    align-content: center;
    color: white;
    border: 0;
    background:
        radial-gradient(circle at center, rgba(5, 150, 105, 0.24), transparent 18rem),
        rgba(2, 6, 23, 0.42);
    cursor: pointer;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.play-overlay span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    padding-left: 6px;
    color: var(--brand-dark);
    background: white;
    border-radius: 999px;
    font-size: 2rem;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.30);
}

.play-overlay strong {
    font-size: 1.1rem;
}

.video-shell.playing .play-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    min-height: 0;
    color: #d1fae5;
    font-weight: 750;
    pointer-events: none;
}

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

.article-card {
    padding: clamp(22px, 4vw, 34px);
    background: white;
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 18px 50px rgba(6, 78, 59, 0.08);
}

.article-card h2 {
    margin: 0 0 14px;
    color: var(--brand-dark);
    font-size: 1.6rem;
    letter-spacing: -0.04em;
}

.article-card p {
    margin: 0;
    color: #35483f;
    font-size: 1.02rem;
}

.search-empty {
    grid-column: 1 / -1;
    padding: 34px;
    color: var(--muted);
    background: white;
    border: 1px solid var(--line);
    border-radius: 24px;
    text-align: center;
}

.site-footer {
    margin-top: 96px;
    color: white;
    background: linear-gradient(135deg, #064e3b, #022c22);
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.9fr);
    gap: 32px;
    padding: 48px 0;
}

.footer-logo {
    color: white;
}

.footer-brand p {
    max-width: 560px;
    color: #d1fae5;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-content: start;
}

.footer-links a {
    color: #d1fae5;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 750;
}

.footer-links a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 1120px) {
    .header-search {
        display: none;
    }

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

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

    .split-section {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }
}

@media (max-width: 820px) {
    .desktop-nav {
        display: none;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .mobile-nav.open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero {
        min-height: 720px;
        border-radius: 28px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        padding-bottom: 96px;
    }

    .hero-poster {
        width: 210px;
        justify-self: start;
    }

    .hero-bottom-bar {
        align-items: flex-start;
        flex-direction: column;
    }

    .quick-search-panel {
        grid-template-columns: 1fr;
    }

    .quick-links {
        justify-content: flex-start;
    }

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

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

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

    .detail-poster {
        width: min(260px, 70vw);
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .content-section,
    .hero,
    .page-hero,
    .detail-hero,
    .filter-bar,
    .quick-search-panel,
    .player-section {
        width: min(100% - 22px, 1240px);
    }

    .brand-name {
        font-size: 1.06rem;
    }

    .hero {
        min-height: 760px;
        margin-top: 14px;
    }

    .hero-slide {
        padding: 28px;
        padding-bottom: 122px;
    }

    .hero-copy h1,
    .detail-copy h1,
    .page-hero h1 {
        letter-spacing: -0.05em;
    }

    .movie-grid,
    .featured-grid,
    .compact-grid,
    .library-grid,
    .category-grid,
    .mobile-nav.open {
        grid-template-columns: 1fr;
    }

    .rank-item,
    .full-rank-list .rank-item {
        grid-template-columns: 46px 70px minmax(0, 1fr);
        gap: 10px;
    }

    .rank-cover img,
    .full-rank-list .rank-cover img {
        width: 70px;
    }

    .quick-search-form {
        align-items: stretch;
        flex-direction: column;
        border-radius: 20px;
    }

    .quick-search-form button {
        width: 100%;
    }
}
