:root {
    --sakura-50: #fff5f7;
    --sakura-100: #ffe3e9;
    --sakura-300: #ff9db3;
    --sakura-400: #ff6b8f;
    --sakura-500: #ff446f;
    --sakura-600: #ed1c5a;
    --azuki-500: #dc2626;
    --azuki-600: #b91c1c;
    --matcha-500: #5a9c5a;
    --matcha-700: #386338;
    --yuzu-400: #ffd633;
    --yuzu-500: #ffc300;
    --yuzu-700: #997500;
    --shiratama-50: #fafafa;
    --shiratama-100: #f5f5f5;
    --shiratama-200: #e5e5e5;
    --shiratama-300: #d4d4d4;
    --shiratama-700: #404040;
    --shiratama-800: #262626;
    --shiratama-900: #171717;
    --slate-900: #0f172a;
    --text: #1f2937;
    --muted: #6b7280;
    --white: #ffffff;
    --shadow: 0 20px 35px rgba(15, 23, 42, 0.12);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(135deg, var(--shiratama-50), var(--sakura-50));
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(229, 229, 229, 0.9);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    min-height: 74px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    white-space: nowrap;
}

.logo-mark {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--white);
    background: linear-gradient(135deg, var(--sakura-400), var(--azuki-500));
    box-shadow: 0 12px 22px rgba(237, 28, 90, 0.25);
}

.logo-text {
    font-size: 1.45rem;
    background: linear-gradient(90deg, var(--sakura-500), var(--azuki-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.nav-links a {
    color: #374151;
    font-weight: 650;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--sakura-600);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid var(--shiratama-200);
    border-radius: 999px;
    background: var(--white);
    overflow: hidden;
}

.header-search input {
    width: 220px;
    border: 0;
    outline: 0;
    padding: 10px 14px;
    background: transparent;
}

.header-search button {
    border: 0;
    color: var(--white);
    background: linear-gradient(90deg, var(--sakura-500), var(--azuki-500));
    padding: 10px 16px;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    color: #374151;
    background: transparent;
    font-size: 1.7rem;
}

.page-shell {
    padding: 32px 0 72px;
}

.hero-carousel {
    position: relative;
    aspect-ratio: 21 / 9;
    min-height: 420px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--slate-900);
    box-shadow: var(--shadow);
}

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

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transform: translateX(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 22%, rgba(255, 68, 111, 0.38), transparent 28%),
        linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.58) 48%, rgba(15, 23, 42, 0.2));
}

.hero-content {
    position: absolute;
    left: clamp(24px, 6vw, 72px);
    right: clamp(24px, 6vw, 72px);
    bottom: clamp(28px, 7vw, 76px);
    max-width: 760px;
    color: var(--white);
}

.hero-tags,
.card-meta,
.rank-meta,
.tag-row,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    border-radius: 999px;
    padding: 5px 12px;
    color: var(--white);
    background: rgba(237, 28, 90, 0.92);
    font-size: 0.86rem;
    font-weight: 700;
}

.hero-content h1 {
    margin: 16px 0 12px;
    font-size: clamp(2.2rem, 6vw, 5.2rem);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 2vw, 1.25rem);
}

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

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

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

.btn.primary {
    color: var(--white);
    background: linear-gradient(90deg, var(--sakura-500), var(--azuki-600));
    box-shadow: 0 12px 24px rgba(237, 28, 90, 0.28);
}

.btn.ghost {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.btn.light {
    color: var(--matcha-700);
    background: var(--white);
}

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

.hero-arrow {
    position: absolute;
    top: 50%;
    display: flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    color: var(--white);
    background: rgba(0, 0, 0, 0.48);
    font-size: 2rem;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.hero-carousel:hover .hero-arrow,
.hero-arrow:focus {
    opacity: 1;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.72);
}

.hero-arrow.prev {
    left: 18px;
}

.hero-arrow.next {
    right: 18px;
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    display: flex;
    gap: 8px;
    transform: translateX(-50%);
}

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

.hero-dot.active {
    width: 32px;
    background: var(--sakura-500);
}

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

.category-chip {
    display: flex;
    min-height: 92px;
    flex-direction: column;
    justify-content: center;
    border: 1px solid rgba(255, 68, 111, 0.12);
    border-radius: var(--radius-lg);
    padding: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-chip:hover,
.category-overview-card:hover,
.movie-card:hover,
.wide-card:hover,
.rank-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
}

.category-chip span {
    color: var(--sakura-600);
    font-size: 1.08rem;
    font-weight: 850;
}

.category-chip small {
    color: var(--muted);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-section {
    margin-bottom: 64px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
}

.heading-line {
    width: 5px;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--sakura-500), var(--azuki-600));
}

.section-heading.matcha .heading-line {
    background: linear-gradient(180deg, var(--matcha-500), var(--matcha-700));
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    line-height: 1.15;
}

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

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

.movie-card,
.wide-card,
.rank-card,
.category-overview-card,
.detail-meta-card,
.detail-article,
.search-panel {
    border: 1px solid rgba(229, 229, 229, 0.8);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-card {
    overflow: hidden;
}

.poster-link,
.wide-cover,
.rank-cover,
.compact-cover {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--shiratama-200), var(--sakura-100));
}

.poster-link {
    height: 260px;
}

.poster-link img,
.wide-cover img,
.rank-cover img,
.compact-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.movie-card:hover img,
.wide-card:hover img,
.rank-card:hover img,
.compact-card:hover img {
    transform: scale(1.08);
}

.poster-mask {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.poster-mask span,
.play-badge {
    display: inline-flex;
    width: 56px;
    height: 56px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 68, 111, 0.92);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.movie-card:hover .poster-mask {
    opacity: 1;
    background: rgba(0, 0, 0, 0.28);
}

.poster-label {
    position: absolute;
    top: 12px;
    right: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--white);
    background: var(--azuki-500);
    font-size: 0.78rem;
    font-weight: 800;
}

.card-body {
    padding: 16px;
}

.card-body h3,
.wide-info h3,
.compact-card h3,
.rank-info h2 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.35;
}

.card-body h3 a:hover,
.wide-info h3 a:hover,
.compact-card h3 a:hover,
.rank-info h2 a:hover {
    color: var(--sakura-600);
}

.card-body p,
.wide-info p,
.rank-info p {
    display: -webkit-box;
    min-height: 3.1em;
    margin: 9px 0 13px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.92rem;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-foot,
.card-meta,
.rank-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 0.88rem;
}

.card-foot span:first-child,
.rank-meta span:last-child {
    color: var(--yuzu-700);
    font-weight: 800;
}

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

.wide-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    overflow: hidden;
}

.wide-cover {
    min-height: 190px;
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    color: var(--white);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.wide-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
}

.card-meta span,
.rank-meta span {
    border-radius: 999px;
    padding: 3px 9px;
    background: var(--shiratama-100);
}

.tag-row span {
    color: var(--sakura-600);
    background: var(--sakura-100);
    font-size: 0.8rem;
}

.feature-panel {
    margin-bottom: 64px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow);
}

.feature-head {
    padding: 28px;
    color: var(--white);
}

.feature-head h2 {
    margin: 0;
    font-size: 2rem;
}

.feature-head p {
    margin: 6px 0 0;
    opacity: 0.9;
}

.yuzu-panel .feature-head {
    background: linear-gradient(90deg, var(--yuzu-400), var(--yuzu-700));
}

.sakura-panel .feature-head {
    background: linear-gradient(90deg, var(--sakura-400), var(--sakura-600));
}

.compact-grid {
    padding: 24px;
}

.cta-panel,
.page-hero {
    border-radius: var(--radius-xl);
    padding: clamp(28px, 5vw, 54px);
    color: var(--white);
    background:
        radial-gradient(circle at 82% 18%, rgba(255, 214, 51, 0.42), transparent 30%),
        linear-gradient(120deg, var(--matcha-500), var(--matcha-700));
    box-shadow: var(--shadow);
}

.cta-panel h2,
.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.15;
}

.cta-panel p,
.page-hero p {
    max-width: 780px;
    margin: 0 0 24px;
    opacity: 0.92;
    font-size: 1.08rem;
}

.small-hero,
.category-hero,
.ranking-hero,
.search-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
    background:
        radial-gradient(circle at 80% 20%, rgba(255, 68, 111, 0.34), transparent 30%),
        linear-gradient(135deg, var(--slate-900), #3b1122 60%, var(--azuki-600));
}

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

.category-overview-card {
    padding: 24px;
}

.category-title-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.category-title-link h2 {
    margin: 0;
    color: var(--sakura-600);
    font-size: 1.55rem;
}

.category-title-link span {
    border-radius: 999px;
    padding: 6px 12px;
    color: var(--white);
    background: linear-gradient(90deg, var(--sakura-500), var(--azuki-600));
    font-size: 0.86rem;
    font-weight: 800;
}

.category-overview-card p {
    margin: 14px 0 18px;
    color: var(--muted);
}

.category-preview-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-preview-links a {
    border-radius: 999px;
    padding: 5px 11px;
    color: var(--shiratama-700);
    background: var(--shiratama-100);
    font-size: 0.88rem;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}

.filter-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: #374151;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    font-weight: 800;
}

.filter-button.active,
.filter-button:hover {
    color: var(--white);
    background: linear-gradient(90deg, var(--sakura-500), var(--azuki-600));
}

.category-movie-grid {
    align-items: stretch;
}

.rank-list {
    display: grid;
    gap: 16px;
}

.rank-card {
    display: grid;
    grid-template-columns: 62px 140px 1fr;
    gap: 18px;
    align-items: center;
    padding: 14px;
}

.rank-number {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--sakura-500), var(--azuki-600));
    font-weight: 900;
}

.rank-cover {
    height: 92px;
    border-radius: var(--radius-md);
}

.rank-info p {
    max-width: 720px;
    margin-bottom: 10px;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr 220px 180px;
    gap: 14px;
    margin-bottom: 14px;
    padding: 18px;
}

.search-panel input,
.search-panel select {
    width: 100%;
    border: 1px solid var(--shiratama-200);
    border-radius: 999px;
    outline: 0;
    padding: 12px 16px;
    background: var(--shiratama-50);
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: var(--sakura-400);
    box-shadow: 0 0 0 3px rgba(255, 107, 143, 0.16);
}

.search-state {
    margin: 0 0 22px;
    color: var(--muted);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 0.95rem;
}

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

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

.video-frame {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #000;
    box-shadow: var(--shadow);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: var(--white);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.16), rgba(15, 23, 42, 0.56));
    z-index: 3;
}

.play-layer span {
    display: inline-flex;
    width: 82px;
    height: 82px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sakura-500), var(--azuki-600));
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
    font-size: 2rem;
}

.video-frame.is-playing .play-layer {
    display: none;
}

.detail-article {
    margin-top: 24px;
    padding: 28px;
}

.detail-article h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
}

.detail-one-line {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 1.08rem;
}

.detail-tags {
    margin-bottom: 26px;
}

.detail-tags span {
    color: var(--sakura-600);
    background: var(--sakura-100);
}

.detail-article h2 {
    margin: 26px 0 10px;
    font-size: 1.35rem;
}

.detail-article p {
    color: #374151;
}

.detail-side {
    position: sticky;
    top: 96px;
}

.detail-poster {
    width: 100%;
    min-height: 430px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--shiratama-200), var(--sakura-100));
}

.detail-meta-card {
    margin-top: 18px;
    padding: 18px;
}

.detail-meta-card p {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin: 0;
    padding: 11px 0;
    border-bottom: 1px solid var(--shiratama-100);
}

.detail-meta-card p:last-child {
    border-bottom: 0;
}

.detail-meta-card strong {
    color: var(--muted);
}

.detail-meta-card span {
    text-align: right;
    font-weight: 750;
}

.compact-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    align-items: center;
    border-radius: var(--radius-md);
    padding: 8px;
    background: var(--white);
    transition: transform 0.2s ease, background 0.2s ease;
}

.compact-card:hover {
    background: var(--shiratama-50);
    transform: translateY(-2px);
}

.compact-cover {
    height: 68px;
    border-radius: 10px;
}

.compact-card h3 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.compact-card p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.site-footer {
    color: var(--white);
    background: linear-gradient(135deg, var(--shiratama-800), var(--shiratama-900));
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 34px;
    padding: 46px 0;
}

.site-footer p,
.site-footer a {
    color: var(--shiratama-300);
}

.site-footer a {
    display: block;
    margin-top: 8px;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--sakura-300);
}

.site-footer h3 {
    margin: 0 0 12px;
    font-size: 1.08rem;
}

.footer-bottom {
    border-top: 1px solid rgba(212, 212, 212, 0.15);
    padding: 18px 16px;
    color: var(--shiratama-400);
    text-align: center;
}

[data-card].hidden {
    display: none;
}

@media (max-width: 1100px) {
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

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

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

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

    .detail-poster {
        min-height: 0;
        height: 360px;
    }

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

@media (max-width: 820px) {
    .header-inner {
        min-height: 68px;
        gap: 16px;
    }

    .nav-links {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 76px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border: 1px solid var(--shiratama-200);
        border-radius: var(--radius-lg);
        padding: 10px;
        background: var(--white);
        box-shadow: var(--shadow);
    }

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

    .nav-links a {
        padding: 12px 14px;
        border-radius: 10px;
    }

    .nav-links a:hover {
        background: var(--sakura-50);
    }

    .header-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .hero-carousel {
        aspect-ratio: auto;
        min-height: 520px;
    }

    .hero-overlay {
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.35), rgba(15, 23, 42, 0.92));
    }

    .hero-content {
        left: 22px;
        right: 22px;
        bottom: 54px;
    }

    .hero-arrow {
        opacity: 1;
    }

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

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

    .poster-link {
        height: 220px;
    }

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

    .wide-cover {
        height: 230px;
    }

    .small-hero,
    .category-hero,
    .ranking-hero,
    .search-hero {
        display: block;
    }

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

    .rank-card {
        grid-template-columns: 48px 98px 1fr;
        gap: 12px;
    }

    .rank-cover {
        height: 78px;
    }

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

    .detail-poster {
        height: auto;
        max-height: 540px;
    }
}

@media (max-width: 540px) {
    .container {
        width: min(100% - 22px, 1280px);
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .page-shell {
        padding-top: 18px;
    }

    .hero-carousel {
        min-height: 560px;
        border-radius: 18px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

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

    .poster-link {
        height: 300px;
    }

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

    .rank-cover {
        display: none;
    }

    .detail-article {
        padding: 20px;
    }

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