:root {
    --teal-50: #f0fdfa;
    --teal-100: #ccfbf1;
    --teal-500: #14b8a6;
    --teal-600: #0d9488;
    --teal-700: #0f766e;
    --cyan-500: #06b6d4;
    --cyan-600: #0891b2;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 6px 18px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 22px 50px rgba(15, 23, 42, 0.18);
    --radius-lg: 18px;
    --radius-xl: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--gray-50);
    color: var(--gray-900);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(229, 231, 235, 0.82);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(18px);
}

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

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

.brand-text {
    font-size: 24px;
    background: linear-gradient(90deg, var(--teal-600), var(--cyan-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--teal-600), var(--cyan-500));
    color: var(--white);
    font-size: 14px;
    box-shadow: 0 10px 22px rgba(20, 184, 166, 0.28);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--gray-700);
    font-weight: 650;
    white-space: nowrap;
}

.main-nav a,
.mobile-nav a,
.footer-links a {
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.main-nav a:hover,
.footer-links a:hover {
    color: var(--teal-600);
}

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

.header-search input,
.mobile-search input,
.hero-search input,
.search-page-form input,
.inline-tools input,
.inline-tools select {
    border: 1px solid var(--gray-200);
    background: var(--white);
    color: var(--gray-900);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search input {
    width: 210px;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--gray-50);
}

.header-search button,
.mobile-search button,
.hero-search button,
.search-page-form button {
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--teal-600), var(--cyan-600));
    color: var(--white);
    padding: 10px 18px;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 10px 18px rgba(13, 148, 136, 0.18);
}

.header-search input:focus,
.mobile-search input:focus,
.hero-search input:focus,
.search-page-form input:focus,
.inline-tools input:focus,
.inline-tools select:focus {
    border-color: var(--teal-500);
    box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
    background: var(--white);
}

.menu-button {
    display: none;
    border: none;
    border-radius: 12px;
    background: var(--gray-100);
    color: var(--gray-800);
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 12px 0 18px;
    border-top: 1px solid var(--gray-200);
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--gray-700);
}

.mobile-nav a:hover {
    background: var(--gray-100);
    color: var(--teal-600);
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border-radius: 999px;
}

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 44%, #0891b2 100%);
}

.hero-glow {
    position: absolute;
    inset: -30% -18% auto auto;
    width: 680px;
    height: 680px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(204, 251, 241, 0.36), rgba(6, 182, 212, 0.08) 56%, transparent 70%);
}

.hero::after {
    position: absolute;
    inset: auto -10% -30% 30%;
    width: 520px;
    height: 520px;
    content: "";
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 68%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: 48px;
    width: min(1240px, calc(100% - 32px));
    min-height: 560px;
    margin: 0 auto;
    padding: 54px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--teal-100);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.hero-copy h1 {
    max-width: 760px;
    font-size: clamp(42px, 6vw, 72px);
}

.hero-copy p {
    max-width: 660px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 20px;
}

.hero-search {
    max-width: 640px;
    margin-top: 30px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
}

.hero-search button {
    padding: 14px 24px;
    background: var(--gray-900);
    box-shadow: none;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 11px 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary,
.btn-light {
    background: var(--white);
    color: var(--teal-700);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.18);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.36);
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
}

.hero-pills a {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    padding: 8px 13px;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.hero-pills a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.hero-slider {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    box-shadow: var(--shadow-lg);
    background: rgba(15, 23, 42, 0.38);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: end;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

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

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

.hero-slide::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.82));
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    padding: 34px;
}

.hero-slide-content h2 {
    margin: 10px 0 10px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.15;
}

.hero-slide-content p {
    display: -webkit-box;
    max-width: 520px;
    margin: 0 0 20px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.86);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.hero-dots {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 4;
    display: flex;
    gap: 8px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 28px;
    background: var(--white);
}

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

.simple-page {
    padding: 34px 0 64px;
}

.content-section {
    margin: 48px 0;
}

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

.section-heading h2,
.page-hero h1,
.detail-copy h2,
.info-panel h2,
.related-panel h2 {
    margin: 0;
    font-weight: 850;
    color: var(--gray-900);
}

.section-heading h2 {
    font-size: 30px;
}

.section-heading p {
    margin: 6px 0 0;
    color: var(--gray-500);
}

.section-link {
    flex: 0 0 auto;
    color: var(--teal-600);
    font-weight: 800;
}

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(15, 23, 42, 0.14);
}

.poster-link,
.poster-frame {
    display: block;
}

.poster-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gray-200), var(--teal-100));
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.78));
    color: var(--white);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-layer {
    opacity: 1;
}

.play-badge {
    display: inline-grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 999px;
    background: var(--teal-600);
    box-shadow: 0 14px 28px rgba(13, 148, 136, 0.35);
}

.poster-line {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.corner-label,
.year-label {
    position: absolute;
    top: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
}

.corner-label {
    left: 12px;
    background: var(--teal-600);
}

.year-label {
    right: 12px;
    background: rgba(0, 0, 0, 0.62);
}

.movie-card-body {
    padding: 16px;
}

.movie-card-body h3 {
    margin: 0 0 6px;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 18px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.movie-card-body h3 a:hover {
    color: var(--teal-600);
}

.movie-meta,
.movie-line {
    margin: 0;
    color: var(--gray-500);
    font-size: 14px;
}

.movie-line {
    display: -webkit-box;
    min-height: 46px;
    margin-top: 8px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.tag-row span {
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
}

.light-tags span {
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 62px 124px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-row:hover {
    transform: translateX(5px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
}

.rank-no {
    color: var(--teal-600);
    font-size: 24px;
    font-weight: 900;
}

.ranking-row img {
    width: 124px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    object-fit: cover;
    background: var(--gray-200);
}

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

.ranking-main strong,
.ranking-main em,
.ranking-meta {
    display: block;
}

.ranking-main strong {
    overflow: hidden;
    font-size: 18px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-main em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-500);
    font-style: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.ranking-meta {
    color: var(--gray-500);
    font-size: 14px;
    white-space: nowrap;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 42px;
    background: linear-gradient(135deg, var(--teal-600), var(--cyan-600));
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.page-hero::after {
    position: absolute;
    right: -120px;
    bottom: -160px;
    width: 380px;
    height: 380px;
    content: "";
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.page-hero h1 {
    position: relative;
    z-index: 1;
    font-size: clamp(34px, 5vw, 52px);
}

.page-hero p {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

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

.category-tile {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.category-tile > a {
    display: block;
    padding: 28px;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(6, 182, 212, 0.12));
}

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

.category-tile span {
    color: var(--teal-700);
    font-size: 24px;
    font-weight: 900;
}

.category-tile strong {
    margin-top: 8px;
    color: var(--gray-700);
    font-weight: 650;
}

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px 20px 22px;
}

.category-samples a {
    border-radius: 999px;
    background: var(--gray-100);
    color: var(--gray-700);
    padding: 6px 10px;
    font-size: 13px;
}

.inline-tools {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.inline-tools input,
.inline-tools select {
    min-height: 46px;
    border-radius: 999px;
    padding: 0 16px;
}

.inline-tools input {
    width: min(520px, 100%);
}

.inline-tools select {
    cursor: pointer;
}

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

.rank-card a {
    position: relative;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    min-height: 130px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.rank-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--gray-200);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    border-radius: 999px;
    background: var(--teal-600);
    color: var(--white);
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 900;
}

.rank-card-body {
    display: grid;
    align-content: center;
    gap: 6px;
    padding: 18px 18px 18px 0;
}

.rank-card-body strong,
.rank-card-body em,
.rank-card-body span {
    display: block;
}

.rank-card-body strong {
    overflow: hidden;
    font-size: 19px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-card-body em {
    color: var(--teal-700);
    font-style: normal;
    font-weight: 700;
}

.rank-card-body span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-500);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.search-page-form {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin-top: 24px;
}

.search-page-form input {
    flex: 1;
    min-width: 0;
    border-radius: 999px;
    padding: 14px 18px;
}

.search-summary {
    margin-bottom: 18px;
    color: var(--gray-500);
    font-weight: 700;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 28px 0 18px;
    color: var(--gray-500);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--teal-600);
}

.detail-hero {
    border-radius: 30px;
    padding: 36px;
    color: var(--white);
    background: linear-gradient(135deg, var(--gray-900), var(--teal-700));
    box-shadow: var(--shadow-lg);
}

.detail-title h1 {
    font-size: clamp(34px, 5vw, 56px);
}

.detail-title p {
    max-width: 900px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

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

.detail-main,
.detail-side > section,
.detail-cover {
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    background: #020617;
    aspect-ratio: 16 / 9;
}

.player-shell video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #020617;
    object-fit: contain;
}

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    border: none;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.48));
    color: var(--white);
    cursor: pointer;
}

.player-start span {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--teal-600), var(--cyan-600));
    font-size: 32px;
    box-shadow: 0 22px 54px rgba(20, 184, 166, 0.35);
}

.player-shell.is-playing .player-start {
    display: none;
}

.detail-copy {
    padding: 28px;
}

.detail-copy h2 {
    margin-top: 26px;
    font-size: 24px;
}

.detail-copy h2:first-child {
    margin-top: 0;
}

.detail-copy p {
    margin: 10px 0 0;
    color: var(--gray-700);
    font-size: 17px;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: var(--gray-200);
}

.info-panel,
.related-panel {
    margin-top: 18px;
    padding: 22px;
}

.info-panel h2,
.related-panel h2 {
    margin-bottom: 16px;
    font-size: 22px;
}

.info-panel dl {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 10px 14px;
    margin: 0;
}

.info-panel dt {
    color: var(--gray-500);
}

.info-panel dd {
    margin: 0;
    color: var(--gray-800);
    font-weight: 700;
}

.info-panel dd a {
    color: var(--teal-700);
}

.related-list {
    display: grid;
    gap: 14px;
}

.related-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
}

.related-item img {
    width: 112px;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    object-fit: cover;
    background: var(--gray-200);
}

.related-item strong,
.related-item em {
    display: block;
}

.related-item strong {
    display: -webkit-box;
    overflow: hidden;
    color: var(--gray-900);
    font-size: 15px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.related-item em {
    margin-top: 3px;
    color: var(--gray-500);
    font-size: 13px;
    font-style: normal;
}

.site-footer {
    margin-top: 44px;
    background: linear-gradient(135deg, var(--gray-900), var(--gray-800));
    color: #d1d5db;
}

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

.footer-brand {
    color: var(--white);
    font-size: 24px;
}

.footer-about p {
    max-width: 560px;
    margin: 16px 0 0;
    color: #9ca3af;
}

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

.footer-links {
    display: grid;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a {
    color: #9ca3af;
}

.footer-bottom {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 20px 0 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 14px;
}

.hidden-card {
    display: none !important;
}

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

    .header-search {
        margin-left: auto;
    }

    .menu-button {
        display: inline-grid;
        place-items: center;
    }

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

    .hero-slider {
        min-height: 460px;
    }

    .detail-side {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .detail-cover {
        margin-top: 18px;
    }
}

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

    .hero-inner {
        min-height: auto;
        padding: 44px 0;
    }

    .hero-search,
    .search-page-form {
        align-items: stretch;
        flex-direction: column;
        border-radius: 24px;
    }

    .hero-search input,
    .search-page-form input,
    .hero-search button,
    .search-page-form button {
        width: 100%;
        border-radius: 16px;
    }

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

    .category-grid,
    .rank-grid,
    .footer-inner,
    .detail-side {
        grid-template-columns: 1fr;
    }

    .ranking-row {
        grid-template-columns: 48px 96px minmax(0, 1fr);
    }

    .ranking-meta {
        display: none;
    }

    .rank-card a {
        grid-template-columns: 150px minmax(0, 1fr);
    }
}

@media (max-width: 620px) {
    .header-inner {
        height: 62px;
    }

    .brand-text {
        font-size: 20px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-title h1 {
        font-size: 34px;
    }

    .hero-copy p,
    .page-hero p,
    .detail-title p {
        font-size: 16px;
    }

    .hero-slider {
        min-height: 380px;
        border-radius: 22px;
    }

    .hero-slide-content,
    .page-hero,
    .detail-hero,
    .detail-copy {
        padding: 22px;
    }

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

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

    .ranking-row {
        grid-template-columns: 40px minmax(0, 1fr);
    }

    .ranking-row img {
        display: none;
    }

    .rank-card a {
        grid-template-columns: 1fr;
    }

    .rank-card img {
        aspect-ratio: 16 / 9;
    }

    .rank-card-body {
        padding: 0 18px 18px;
    }

    .related-item {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .related-item img {
        width: 96px;
    }
}
