:root {
    --deepblue-950: #000f17;
    --deepblue-900: #00151f;
    --deepblue-800: #002a3e;
    --deepblue-700: #003f5d;
    --deepblue-600: #00547c;
    --ocean-50: #e6f7f9;
    --ocean-100: #cceef3;
    --ocean-200: #99dde7;
    --ocean-300: #66cbdb;
    --ocean-400: #33bacf;
    --ocean-600: #00879c;
    --ocean-700: #006575;
    --ocean-800: #00444e;
    --seagreen-50: #e8f5f1;
    --seagreen-100: #d1ebe3;
    --seagreen-600: #147c5c;
    --seagreen-700: #0f5d45;
    --coral-50: #fff0ed;
    --coral-200: #ffc3b7;
    --coral-300: #ffa593;
    --coral-400: #ff876f;
    --coral-500: #ff694b;
    --coral-600: #cc543c;
    --sand-50: #faf8f4;
    --sand-100: #f5f1e9;
    --sand-200: #ebe3d3;
    --sand-700: #7b6f57;
    --sand-800: #524a3a;
    --shadow-ocean: 0 4px 14px rgba(0, 169, 195, 0.15);
    --shadow-ocean-lg: 0 18px 40px rgba(0, 169, 195, 0.22);
    --radius-xl: 20px;
    --radius-2xl: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--deepblue-900);
    background:
        radial-gradient(circle at top left, rgba(255, 135, 111, 0.12), transparent 32rem),
        linear-gradient(135deg, var(--sand-50), var(--ocean-50) 48%, var(--seagreen-50));
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

body.no-scroll {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(100% - 32px, 1240px);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--deepblue-800), var(--ocean-700), var(--seagreen-700));
    box-shadow: 0 10px 28px rgba(0, 21, 31, 0.28);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 20px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand {
    font-size: clamp(20px, 3vw, 28px);
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--coral-500), var(--ocean-400));
    box-shadow: 0 8px 22px rgba(255, 105, 75, 0.28);
    font-size: 15px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.desktop-nav a,
.mobile-menu a {
    color: var(--ocean-50);
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a {
    padding: 10px 14px;
}

.desktop-nav a:hover,
.mobile-menu a:hover {
    color: white;
    background: rgba(255, 255, 255, 0.12);
}

.header-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search input,
.mobile-search input,
.filter-panel input,
.filter-panel select,
.search-box-large input {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    outline: none;
    border-radius: 14px;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    width: min(26vw, 300px);
    padding: 10px 14px;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: var(--ocean-200);
}

.header-search input:focus,
.mobile-search input:focus,
.filter-panel input:focus,
.filter-panel select:focus,
.search-box-large input:focus {
    border-color: var(--coral-400);
    box-shadow: 0 0 0 4px rgba(255, 135, 111, 0.18);
    background: rgba(255, 255, 255, 0.2);
}

.header-search button,
.mobile-search button,
.search-box-large button {
    border: 0;
    border-radius: 14px;
    padding: 10px 16px;
    color: white;
    background: var(--coral-500);
    transition: background 0.2s ease, transform 0.2s ease;
}

.header-search button:hover,
.mobile-search button:hover,
.search-box-large button:hover {
    background: var(--coral-600);
    transform: translateY(-1px);
}

.mobile-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    color: white;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-menu {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 21, 31, 0.96);
    backdrop-filter: blur(16px);
}

.mobile-menu[hidden] {
    display: none;
}

.mobile-menu a {
    padding: 12px 14px;
}

.mobile-search input {
    padding: 11px 14px;
}

.hero {
    position: relative;
    min-height: 68vh;
    overflow: hidden;
    color: white;
    background: linear-gradient(180deg, var(--deepblue-900), var(--ocean-800));
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.55s ease;
}

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

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

.hero-bg {
    opacity: 0.42;
    transform: scale(1.03);
}

.hero-overlay,
.detail-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 21, 31, 0.95), rgba(0, 21, 31, 0.68), rgba(0, 21, 31, 0.22)),
        linear-gradient(0deg, var(--deepblue-900), rgba(0, 21, 31, 0.25), transparent);
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.48fr);
    align-items: center;
    min-height: 68vh;
    gap: clamp(28px, 5vw, 72px);
    padding: 60px 0;
}

.hero-copy {
    max-width: 760px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--coral-200);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero h1 {
    font-size: clamp(42px, 7vw, 82px);
    text-shadow: 0 12px 40px rgba(0, 0, 0, 0.26);
}

.hero p {
    max-width: 720px;
    margin: 22px 0 0;
    color: var(--ocean-100);
    font-size: clamp(17px, 2vw, 22px);
}

.hero-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-tags span,
.detail-tags span {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 7px 12px;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    font-size: 14px;
}

.hero-actions,
.detail-copy .btn {
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn + .btn {
    margin-left: 12px;
}

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--coral-500), var(--coral-600));
    box-shadow: 0 14px 28px rgba(255, 105, 75, 0.26);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(255, 105, 75, 0.34);
}

.btn-ghost {
    color: white;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}

.btn-small {
    padding: 9px 15px;
    color: white;
    background: var(--ocean-600);
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
    color: var(--ocean-100);
}

.hero-stats span {
    display: grid;
    min-width: 105px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(0, 21, 31, 0.28);
    backdrop-filter: blur(16px);
}

.hero-stats strong {
    color: white;
    font-size: 20px;
}

.hero-poster {
    position: relative;
    align-self: center;
    justify-self: end;
    width: min(100%, 360px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 21, 31, 0.46);
    transform: rotate(2deg);
    transition: transform 0.25s ease;
}

.hero-poster:hover {
    transform: rotate(0deg) translateY(-4px);
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    border-radius: 999px;
    padding: 10px 14px;
    color: white;
    background: rgba(0, 21, 31, 0.78);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: white;
    background: rgba(0, 21, 31, 0.38);
    backdrop-filter: blur(14px);
    font-size: 34px;
    transform: translateY(-50%);
}

.hero-prev {
    left: 18px;
}

.hero-next {
    right: 18px;
}

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

.hero-dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.38);
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dots button.is-active {
    width: 30px;
    background: var(--coral-400);
}

.content-section {
    padding: clamp(42px, 7vw, 84px) 0 0;
}

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

.section-heading h2,
.panel-title h2,
.link-columns h2,
.text-card h2,
.side-card h2,
.player-card h2 {
    margin: 0;
    color: var(--deepblue-900);
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
}

.section-heading p {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--ocean-800);
}

.section-more,
.panel-more,
.filter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 16px;
    color: var(--ocean-700);
    background: white;
    box-shadow: var(--shadow-ocean);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-ocean);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-ocean-lg);
}

.movie-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--deepblue-800), var(--ocean-700));
}

.movie-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, filter 0.45s ease;
}

.movie-card:hover .movie-cover img,
.overview-card:hover img,
.rank-row:hover img {
    transform: scale(1.08);
    filter: saturate(1.08);
}

.movie-cover::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 35%, rgba(0, 21, 31, 0.66));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .movie-cover::after {
    opacity: 1;
}

.duration {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 9px;
    color: white;
    background: rgba(0, 21, 31, 0.82);
    backdrop-filter: blur(12px);
    font-size: 12px;
    font-weight: 800;
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 999px;
    color: white;
    background: var(--coral-500);
    box-shadow: 0 12px 28px rgba(255, 105, 75, 0.34);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.78);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-badge {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.movie-info {
    padding: 18px;
}

.movie-info h3 {
    display: -webkit-box;
    min-height: 3.1em;
    margin: 0 0 9px;
    overflow: hidden;
    color: var(--deepblue-900);
    font-size: 18px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-info h3 a:hover {
    color: var(--ocean-600);
}

.movie-info p {
    display: -webkit-box;
    min-height: 3.1em;
    margin: 0 0 14px;
    overflow: hidden;
    color: var(--ocean-800);
    font-size: 14px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    color: var(--ocean-700);
    font-size: 13px;
}

.movie-meta span {
    border-radius: 999px;
    padding: 4px 8px;
    background: var(--ocean-50);
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 180px 1fr;
}

.movie-card-horizontal .movie-cover {
    aspect-ratio: 4 / 3;
    height: 100%;
}

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

.ranking-panel,
.text-card,
.side-card,
.player-card,
.filter-panel,
.narrow-page .text-card {
    border: 1px solid rgba(51, 186, 207, 0.24);
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-ocean);
}

.ranking-panel {
    position: sticky;
    top: 100px;
    padding: 22px;
}

.panel-title span {
    color: var(--coral-500);
    font-weight: 900;
    letter-spacing: 0.12em;
}

.rank-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.rank-row {
    display: grid;
    grid-template-columns: 38px 58px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 9px;
    border-radius: 16px;
    background: var(--sand-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
    background: var(--ocean-50);
    transform: translateX(2px);
}

.rank-row img {
    width: 58px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.rank-num {
    color: var(--coral-500);
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 800;
}

.rank-heat {
    color: var(--ocean-700);
    font-size: 13px;
}

.panel-more {
    width: 100%;
    margin-top: 18px;
}

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

.category-pill {
    min-height: 112px;
    border-radius: 22px;
    padding: 18px;
    color: white;
    background: linear-gradient(135deg, var(--deepblue-700), var(--ocean-600), var(--seagreen-600));
    box-shadow: var(--shadow-ocean);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-pill:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-ocean-lg);
}

.category-pill strong,
.category-pill span {
    display: block;
}

.category-pill strong {
    font-size: 18px;
}

.category-pill span {
    margin-top: 14px;
    color: var(--ocean-100);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(135deg, var(--deepblue-900), var(--ocean-800));
}

.page-hero {
    padding: clamp(70px, 10vw, 120px) 0;
}

.compact-hero {
    padding: clamp(48px, 8vw, 86px) 0;
}

.page-hero::before {
    position: absolute;
    inset: -30% 40% auto auto;
    width: 46vw;
    height: 46vw;
    content: "";
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 105, 75, 0.28), transparent 60%);
}

.page-hero .container {
    position: relative;
}

.page-hero h1 {
    font-size: clamp(36px, 6vw, 64px);
}

.page-hero p {
    max-width: 780px;
    margin: 16px 0 0;
    color: var(--ocean-100);
    font-size: 18px;
}

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

.overview-card {
    position: relative;
    min-height: 240px;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    padding: 24px;
    color: white;
    box-shadow: var(--shadow-ocean);
}

.overview-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.overview-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(0, 21, 31, 0.18), rgba(0, 21, 31, 0.88));
}

.overview-card h2,
.overview-card p,
.overview-card span {
    position: relative;
    z-index: 1;
}

.overview-card span {
    display: inline-flex;
    border-radius: 999px;
    padding: 6px 10px;
    background: rgba(255, 105, 75, 0.86);
    font-weight: 800;
}

.overview-card h2 {
    margin: 72px 0 8px;
    font-size: 28px;
}

.overview-card p {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--ocean-100);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.link-columns section {
    padding: 24px;
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-ocean);
}

.link-columns h2 {
    margin-bottom: 16px;
    font-size: 26px;
}

.dense-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dense-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 8px 12px;
    color: var(--ocean-800);
    background: var(--ocean-50);
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dense-links a:hover {
    color: white;
    background: var(--ocean-600);
    transform: translateY(-2px);
}

.dense-links em {
    color: var(--coral-500);
    font-style: normal;
    font-weight: 800;
}

.filter-panel {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(130px, 0.55fr)) auto;
    gap: 12px;
    align-items: center;
    margin-bottom: 24px;
    padding: 16px;
}

.filter-panel input,
.filter-panel select {
    min-height: 44px;
    border-color: rgba(0, 135, 156, 0.18);
    color: var(--deepblue-900);
    background: white;
    padding: 10px 12px;
}

.filter-panel input::placeholder {
    color: var(--sand-700);
}

.filter-empty {
    grid-column: 1 / -1;
    border-radius: var(--radius-xl);
    padding: 24px;
    color: var(--ocean-800);
    background: white;
    text-align: center;
    box-shadow: var(--shadow-ocean);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 34px;
}

.pagination a,
.pagination strong,
.pagination span {
    display: inline-flex;
    min-width: 42px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 13px;
    background: white;
    box-shadow: var(--shadow-ocean);
}

.pagination strong {
    color: white;
    background: var(--ocean-600);
}

.ranking-stack {
    display: grid;
    gap: 14px;
}

.ranking-card {
    display: grid;
    grid-template-columns: 70px 130px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border-radius: var(--radius-2xl);
    padding: 16px;
    background: white;
    box-shadow: var(--shadow-ocean);
}

.rank-index {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 18px;
    color: white;
    background: linear-gradient(135deg, var(--coral-500), var(--ocean-600));
    font-weight: 900;
}

.rank-poster {
    overflow: hidden;
    border-radius: 18px;
}

.rank-poster img {
    width: 130px;
    height: 82px;
    object-fit: cover;
}

.rank-content h2 {
    margin: 0 0 6px;
    color: var(--deepblue-900);
    font-size: 22px;
}

.rank-content p {
    display: -webkit-box;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--ocean-800);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.search-box-large {
    display: flex;
    gap: 12px;
    max-width: 820px;
    margin-top: 28px;
}

.search-box-large input {
    min-height: 56px;
    padding: 12px 18px;
    font-size: 18px;
}

.search-box-large button {
    min-width: 112px;
}

.search-summary {
    margin: 0 0 22px;
    color: var(--ocean-800);
    font-weight: 700;
}

.search-results:empty {
    display: none;
}

.detail-hero {
    min-height: 520px;
}

.detail-bg {
    opacity: 0.4;
    filter: blur(1px) saturate(1.05);
}

.detail-hero-inner {
    position: relative;
    padding: 34px 0 64px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
    color: var(--ocean-100);
    font-size: 14px;
}

.breadcrumbs a:hover {
    color: var(--coral-300);
}

.detail-main {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(0, 21, 31, 0.46);
}

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

.detail-copy h1 {
    font-size: clamp(40px, 7vw, 76px);
}

.detail-one-line {
    max-width: 800px;
    margin: 18px 0 0;
    color: var(--ocean-100);
    font-size: 20px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.detail-meta span {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 7px 12px;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.detail-content {
    display: grid;
    gap: 22px;
}

.player-card,
.text-card,
.side-card {
    padding: 22px;
}

.player-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.player-title-row h2,
.text-card h2,
.side-card h2 {
    font-size: 26px;
}

.player-title-row span {
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--ocean-700);
    background: var(--ocean-50);
    font-weight: 800;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: black;
    aspect-ratio: 16 / 9;
}

.movie-player {
    width: 100%;
    height: 100%;
    background: black;
}

.player-start {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 10px;
    border: 0;
    color: white;
    background: linear-gradient(180deg, rgba(0, 21, 31, 0.12), rgba(0, 21, 31, 0.72));
}

.player-start.is-hidden {
    display: none;
}

.player-start span {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    border-radius: 999px;
    background: var(--coral-500);
    box-shadow: 0 18px 44px rgba(255, 105, 75, 0.36);
    font-size: 28px;
}

.player-start strong {
    font-size: 18px;
}

.player-message {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    margin: 0;
    color: var(--ocean-100);
    font-size: 14px;
    text-align: center;
    pointer-events: none;
}

.text-card p {
    margin: 12px 0 0;
    color: var(--sand-800);
    font-size: 17px;
}

.detail-sidebar {
    position: sticky;
    top: 100px;
    display: grid;
    gap: 18px;
}

.side-card dl {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 10px 12px;
    margin: 16px 0 0;
}

.side-card dt {
    color: var(--ocean-700);
    font-weight: 800;
}

.side-card dd {
    margin: 0;
    color: var(--sand-800);
}

.compact-tags span {
    color: var(--ocean-800);
    border-color: rgba(0, 135, 156, 0.18);
    background: var(--ocean-50);
}

.narrow-page {
    max-width: 880px;
}

.site-footer {
    margin-top: 84px;
    color: var(--ocean-100);
    background: linear-gradient(180deg, var(--deepblue-900), var(--deepblue-950));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
    padding: 48px 0 32px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: white;
    font-size: 18px;
}

.site-footer p {
    margin: 14px 0 0;
    color: var(--ocean-300);
}

.site-footer a:not(.footer-brand) {
    display: block;
    margin: 8px 0;
    color: var(--ocean-200);
}

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

.footer-bottom {
    border-top: 1px solid rgba(204, 238, 243, 0.16);
    padding: 18px 0 26px;
    color: var(--ocean-400);
    font-size: 14px;
}

@media (max-width: 1100px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .mobile-toggle {
        display: grid;
        place-items: center;
    }

    .hero-inner,
    .split-layout,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster,
    .ranking-panel,
    .detail-sidebar {
        position: static;
    }

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

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

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

@media (max-width: 780px) {
    .container {
        width: min(100% - 24px, 1240px);
    }

    .nav-bar {
        min-height: 66px;
    }

    .hero,
    .hero-inner {
        min-height: 76vh;
    }

    .hero-inner {
        display: flex;
        align-items: end;
        padding: 80px 0 72px;
    }

    .hero-poster {
        display: none;
    }

    .hero-arrow {
        display: none;
    }

    .hero h1 {
        font-size: clamp(34px, 13vw, 56px);
    }

    .hero p,
    .detail-one-line {
        font-size: 17px;
    }

    .section-heading {
        display: block;
    }

    .section-more {
        margin-top: 14px;
    }

    .movie-grid,
    .featured-grid,
    .overview-grid,
    .link-columns {
        grid-template-columns: 1fr;
    }

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

    .filter-panel,
    .search-box-large,
    .detail-main,
    .ranking-card {
        grid-template-columns: 1fr;
    }

    .search-box-large {
        display: grid;
    }

    .movie-card-horizontal {
        grid-template-columns: 128px 1fr;
    }

    .rank-poster img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .detail-poster {
        max-width: 220px;
    }

    .btn + .btn {
        margin-left: 0;
        margin-top: 10px;
    }

    .hero-actions {
        display: grid;
        width: min(100%, 300px);
    }
}

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

    .movie-grid {
        gap: 16px;
    }

    .category-strip {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal .movie-cover {
        aspect-ratio: 16 / 9;
    }
}
