:root {
    --accent: #f97316;
    --accent-strong: #ea580c;
    --pink: #ec4899;
    --purple: #8b5cf6;
    --blue: #3b82f6;
    --green: #10b981;
    --red: #ef4444;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #e5e7eb;
    --panel: #ffffff;
    --shadow: 0 18px 45px rgba(31, 41, 55, 0.14);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7ed 0%, #ffffff 32%, #fff1f2 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: 100;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-weight: 900;
    font-size: 25px;
    letter-spacing: -0.03em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.36);
}

.brand-text,
.section-heading h2,
.page-hero h1,
.search-card h2 {
    background: linear-gradient(90deg, var(--accent), var(--pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    flex: 1;
}

.nav-link {
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-search {
    display: flex;
    width: 280px;
    border: 1px solid var(--line);
    background: #ffffff;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.nav-search input,
.inline-search input,
.big-search input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.nav-search input {
    padding: 10px 0 10px 16px;
}

.nav-search button,
.inline-search button,
.big-search button {
    border: 0;
    color: #ffffff;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent), var(--pink));
    cursor: pointer;
}

.nav-search button {
    padding: 0 16px;
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 28px;
    cursor: pointer;
}

.hero-carousel {
    position: relative;
    height: 76vh;
    min-height: 560px;
    overflow: hidden;
    background: #111827;
}

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

.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    transition: transform 6s ease;
}

.hero-slide.is-active .hero-image {
    transform: scale(1.12);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 24%, rgba(249, 115, 22, 0.34), transparent 28%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.94) 0%, rgba(15, 23, 42, 0.72) 44%, rgba(15, 23, 42, 0.28) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, 0.9) 0%, transparent 42%);
}

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

.hero-kicker,
.pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    font-weight: 800;
}

.hero-kicker {
    padding: 8px 18px;
    background: var(--accent);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.32);
    margin-bottom: 18px;
}

.hero-content h1,
.hero-content h2 {
    max-width: 720px;
    margin: 0 0 18px;
    font-size: clamp(44px, 7vw, 78px);
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.hero-content p {
    max-width: 660px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

.hero-actions,
.detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover {
    transform: translateY(-2px) scale(1.03);
}

.btn.primary {
    color: #ffffff;
    background: linear-gradient(90deg, var(--accent), var(--pink));
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.34);
}

.btn.ghost {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.34);
    backdrop-filter: blur(10px);
}

.btn.light {
    color: var(--accent);
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(-50%);
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-prev,
.hero-next {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    font-size: 30px;
    backdrop-filter: blur(10px);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.is-active {
    width: 36px;
    background: #ffffff;
}

.content-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
}

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

.section-heading.centered {
    text-align: center;
}

.section-heading h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.15;
}

.section-heading h2 span {
    color: var(--accent);
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    font-weight: 900;
}

.section-more span {
    transition: transform 0.2s ease;
}

.section-more:hover span {
    transform: translateX(4px);
}

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

.category-tile {
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    color: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 24px 52px rgba(31, 41, 55, 0.20);
}

.category-tile span {
    font-size: 20px;
    font-weight: 900;
}

.category-tile strong {
    color: rgba(255, 255, 255, 0.86);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.sunset {
    background: linear-gradient(135deg, #f97316, #ec4899);
}

.pink {
    background: linear-gradient(135deg, #fb7185, #db2777);
}

.purple {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
}

.blue {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
}

.green {
    background: linear-gradient(135deg, #10b981, #65a30d);
}

.red {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.search-panel {
    padding-top: 0;
}

.search-card {
    display: grid;
    grid-template-columns: 1fr minmax(320px, 520px);
    gap: 24px;
    align-items: center;
    padding: 34px;
    background: linear-gradient(135deg, #ffffff, #fff7ed);
    border: 1px solid rgba(249, 115, 22, 0.14);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.search-card h2 {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 42px);
}

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

.big-search,
.inline-search {
    display: flex;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.big-search input,
.inline-search input {
    min-height: 54px;
    padding: 0 20px;
}

.big-search button,
.inline-search button {
    padding: 0 24px;
    white-space: nowrap;
}

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

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

.movie-card {
    min-width: 0;
}

.card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    background: var(--panel);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card-link:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
}

.poster-frame {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #f97316, #ec4899);
}

.poster-frame img,
.wide-poster img,
.category-card img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card-link:hover .poster-frame img,
.wide-card:hover img,
.category-card:hover img {
    transform: scale(1.08);
}

.score-badge,
.play-badge,
.rank-number {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 900;
    background: rgba(249, 115, 22, 0.94);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.22);
}

.score-badge {
    top: 12px;
    left: 12px;
    min-width: 42px;
    height: 30px;
    border-radius: 999px;
}

.play-badge {
    right: 12px;
    bottom: 12px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.card-link:hover .play-badge {
    opacity: 1;
    transform: translateY(0);
}

.card-body {
    padding: 18px;
}

.pill {
    padding: 5px 10px;
    color: #ea580c;
    background: #ffedd5;
    font-size: 12px;
    margin-bottom: 10px;
}

.card-body h2,
.card-body h3,
.wide-info h3 {
    margin: 0 0 8px;
    color: #111827;
    line-height: 1.35;
}

.card-body h2,
.card-body h3 {
    font-size: 18px;
}

.card-body p,
.wide-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.card-body p {
    min-height: 48px;
    font-size: 14px;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    color: #9ca3af;
    font-size: 13px;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.card-meta span + span::before {
    content: "·";
}

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

.wide-card a {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 18px;
    overflow: hidden;
    min-height: 210px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wide-card a:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
}

.wide-poster {
    position: relative;
    overflow: hidden;
}

.rank-number {
    left: 12px;
    top: 12px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    border-radius: 13px;
}

.wide-info {
    padding: 22px 22px 22px 0;
}

.wide-info h3 {
    font-size: 22px;
}

.callout-band {
    margin-top: 50px;
    padding: 76px 16px;
    color: #ffffff;
    text-align: center;
    background: linear-gradient(135deg, var(--accent), var(--pink));
}

.callout-band h2 {
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 54px);
}

.callout-band p {
    max-width: 760px;
    margin: 0 auto 26px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
    line-height: 1.8;
}

.page-hero {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    padding: 62px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.25), transparent 28%),
        linear-gradient(135deg, #f97316, #ec4899);
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.page-hero.compact {
    min-height: 270px;
}

.page-hero span {
    display: inline-flex;
    padding: 7px 16px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 999px;
    font-weight: 900;
    backdrop-filter: blur(10px);
}

.page-hero h1 {
    margin: 16px 0 14px;
    color: #ffffff;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 19px;
    line-height: 1.85;
}

.archive-toolbar {
    display: grid;
    grid-template-columns: minmax(260px, 430px) 1fr;
    gap: 18px;
    align-items: center;
    margin-bottom: 28px;
}

.filter-chips,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-chip,
.tag-row span {
    border: 0;
    border-radius: 999px;
    font-weight: 800;
}

.filter-chip {
    padding: 10px 14px;
    color: #ea580c;
    background: #ffedd5;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.filter-chip:hover,
.filter-chip.active {
    color: #ffffff;
    background: linear-gradient(90deg, var(--accent), var(--pink));
    transform: translateY(-1px);
}

.empty-state {
    padding: 30px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
}

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

.category-card a {
    display: grid;
    grid-template-columns: 140px 1fr;
    min-height: 190px;
    overflow: hidden;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.10);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card a:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.16);
}

.category-card div {
    padding: 22px;
}

.category-card span {
    color: var(--accent);
    font-weight: 900;
}

.category-card h2 {
    margin: 10px 0;
    color: #111827;
    font-size: 20px;
    line-height: 1.45;
}

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

.ranking-layout {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.ranking-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ranking-column h2 {
    margin: 0 0 6px;
    font-size: 28px;
    color: #111827;
}

.ranking-column .wide-card a {
    grid-template-columns: 116px 1fr;
    min-height: 150px;
}

.ranking-column .wide-info {
    padding: 16px 16px 16px 0;
}

.ranking-column .wide-info h3 {
    font-size: 18px;
}

.ranking-column .wide-info p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    font-size: 14px;
}

.detail-top {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 34px;
    padding: 34px;
    background:
        radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.18), transparent 26%),
        #ffffff;
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border-radius: 26px;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--accent);
    font-weight: 800;
}

.detail-info h1 {
    margin: 0 0 14px;
    color: #111827;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.045em;
}

.lead {
    margin: 0 0 20px;
    color: #4b5563;
    font-size: 19px;
    line-height: 1.85;
}

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

.detail-meta span {
    padding: 8px 13px;
    color: #ea580c;
    background: #ffedd5;
    border-radius: 999px;
    font-weight: 800;
}

.tag-row {
    margin-bottom: 24px;
}

.tag-row span {
    padding: 8px 13px;
    color: #6d28d9;
    background: #f3e8ff;
}

.player-section {
    padding-bottom: 36px;
}

.player-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #020617;
    border-radius: 28px;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.24);
}

.site-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #020617;
    object-fit: contain;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: #ffffff;
    background:
        radial-gradient(circle at center, rgba(249, 115, 22, 0.28), transparent 34%),
        rgba(2, 6, 23, 0.28);
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-cover span {
    display: grid;
    place-items: center;
    width: 90px;
    height: 90px;
    padding-left: 6px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    border-radius: 50%;
    font-size: 40px;
    box-shadow: 0 18px 40px rgba(249, 115, 22, 0.45);
}

.player-box.is-playing .player-cover,
.player-cover.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-message {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 16px;
    color: #ffffff;
    text-align: center;
    font-weight: 800;
    pointer-events: none;
}

.detail-text {
    padding-top: 20px;
}

.detail-text h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 30px;
}

.detail-text p {
    margin: 0 0 30px;
    color: #374151;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    padding: 24px;
    line-height: 2;
    font-size: 17px;
}

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

.related-grid .card-body p {
    display: none;
}

.site-footer {
    margin-top: 40px;
    padding: 56px 0 24px;
    background: linear-gradient(135deg, #fff7ed, #fdf2f8);
    border-top: 1px solid rgba(249, 115, 22, 0.12);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #111827;
    font-size: 20px;
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: var(--muted);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    width: min(1180px, calc(100% - 32px));
    margin: 36px auto 0 !important;
    padding-top: 24px;
    border-top: 1px solid rgba(249, 115, 22, 0.13);
    text-align: center;
    font-size: 14px;
}

@media (max-width: 1120px) {
    .nav-shell {
        gap: 16px;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-search {
        width: 230px;
    }

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

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

    .ranking-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .nav-shell {
        flex-wrap: wrap;
        padding: 12px 0;
    }

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

    .nav-links {
        display: none;
        width: 100%;
        order: 4;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 0 2px;
        border-top: 1px solid var(--line);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-link {
        padding: 12px 0;
    }

    .nav-search {
        order: 3;
        width: 100%;
    }

    .hero-carousel {
        height: 72vh;
        min-height: 520px;
    }

    .hero-content h1,
    .hero-content h2 {
        font-size: clamp(38px, 11vw, 58px);
    }

    .search-card,
    .archive-toolbar,
    .detail-top,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .wide-grid,
    .category-list-grid {
        grid-template-columns: 1fr;
    }

    .detail-top {
        padding: 22px;
    }

    .detail-poster {
        max-width: 420px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .brand {
        font-size: 21px;
    }

    .hero-carousel {
        min-height: 500px;
    }

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

    .hero-actions {
        width: 100%;
    }

    .btn {
        flex: 1;
    }

    .content-section {
        padding: 46px 0;
    }

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

    .movie-grid,
    .archive-grid,
    .category-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-body {
        padding: 14px;
    }

    .card-body h2,
    .card-body h3 {
        font-size: 16px;
    }

    .card-body p {
        display: none;
    }

    .wide-card a,
    .ranking-column .wide-card a,
    .category-card a {
        grid-template-columns: 110px 1fr;
        min-height: 150px;
    }

    .wide-info,
    .ranking-column .wide-info {
        padding: 14px 14px 14px 0;
    }

    .wide-info h3 {
        font-size: 17px;
    }

    .page-hero {
        padding: 34px 22px;
        border-radius: 24px;
    }

    .player-cover span {
        width: 72px;
        height: 72px;
        font-size: 32px;
    }
}
