:root {
    --orange: #f97316;
    --amber: #f59e0b;
    --yellow: #facc15;
    --ink: #1f2937;
    --muted: #6b7280;
    --soft: #fff7ed;
    --line: #fed7aa;
    --shadow: 0 24px 60px rgba(146, 64, 14, 0.16);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: linear-gradient(180deg, #fffbeb 0%, #fff7ed 44%, #ffffff 100%);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(124, 45, 18, 0.1);
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.34);
    transition: transform 0.3s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(4deg);
}

.brand strong,
.footer-brand strong {
    display: block;
    font-size: 22px;
    line-height: 1.1;
    background: linear-gradient(90deg, #ea580c, #d97706);
    -webkit-background-clip: text;
    color: transparent;
}

.brand em {
    display: block;
    font-size: 12px;
    color: var(--muted);
    font-style: normal;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-weight: 700;
    color: #374151;
}

.nav-links a {
    position: relative;
    padding: 22px 0;
    transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--orange);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 14px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--orange), var(--amber));
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    border: 0;
    background: #fff7ed;
    color: #9a3412;
    border-radius: 12px;
    font-size: 24px;
    padding: 8px 12px;
}

.mobile-nav {
    display: none;
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    gap: 12px;
    flex-direction: column;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff7ed;
    color: #7c2d12;
    font-weight: 700;
}

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

.hero-carousel {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    background: #7c2d12;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

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

.hero-slide.active img {
    animation: heroZoom 8s ease forwards;
}

.hero-shade,
.detail-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(251, 191, 36, 0.5), transparent 34%),
        linear-gradient(90deg, rgba(124, 45, 18, 0.92), rgba(154, 52, 18, 0.62), rgba(0, 0, 0, 0.18)),
        linear-gradient(0deg, rgba(255, 247, 237, 0.2), transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 3;
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 660px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
}

.hero-kicker,
.page-hero span,
.section-head span {
    display: inline-flex;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    color: #fff7ed;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.hero-content h1 {
    max-width: 760px;
    margin: 24px 0 18px;
    font-size: clamp(42px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.06em;
    text-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    max-width: 720px;
    margin: 0 0 34px;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

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

.primary-btn {
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    box-shadow: 0 18px 34px rgba(249, 115, 22, 0.34);
}

.ghost-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.17);
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.primary-btn:hover,
.ghost-btn:hover {
    transform: translateY(-3px);
}

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

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

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

.hero-bg-pattern span {
    position: absolute;
    z-index: 2;
    width: 110px;
    height: 110px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    animation: float 7s ease-in-out infinite;
}

.hero-bg-pattern span:nth-child(1) {
    right: 10%;
    top: 18%;
}

.hero-bg-pattern span:nth-child(2) {
    right: 24%;
    bottom: 18%;
    animation-delay: 1s;
}

.hero-bg-pattern span:nth-child(3) {
    left: 8%;
    bottom: 12%;
    animation-delay: 2s;
}

.search-panel {
    position: relative;
    z-index: 10;
    margin-top: -52px;
}

.search-shell {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 28px;
    align-items: center;
    padding: 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.search-shell h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.search-shell p {
    margin: 0;
    color: var(--muted);
}

.search-box,
.filter-bar {
    display: flex;
    gap: 12px;
}

.search-box input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    min-height: 52px;
    border: 2px solid #fed7aa;
    border-radius: 999px;
    padding: 0 18px;
    outline: none;
    background: #fffaf2;
    color: #431407;
    font-size: 16px;
}

.search-box input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 5px rgba(249, 115, 22, 0.14);
}

.search-box button {
    min-width: 116px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
    font-weight: 900;
    cursor: pointer;
}

.search-results {
    grid-column: 1 / -1;
    display: none;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.search-results.open {
    display: grid;
}

.search-result-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: #fff7ed;
    transition: transform 0.25s ease;
}

.search-result-item:hover {
    transform: translateY(-2px);
}

.search-result-item img {
    width: 72px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
}

.search-result-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.3;
}

.search-result-item em {
    display: block;
    margin-top: 3px;
    font-style: normal;
    color: var(--muted);
    font-size: 12px;
}

.section {
    padding: 74px 0;
}

.warm-section {
    background: linear-gradient(180deg, #fff7ed, rgba(255, 255, 255, 0));
}

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

.section-head span {
    color: #c2410c;
    background: #ffedd5;
    box-shadow: none;
}

.section-head h2 {
    margin: 8px 0 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-head a,
.category-overview-head a {
    color: var(--orange);
    font-weight: 900;
}

.compact-head {
    align-items: center;
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 26px;
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(124, 45, 18, 0.12);
    isolation: isolate;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(124, 45, 18, 0.18);
}

.category-glow {
    position: absolute;
    inset: 0;
    opacity: 0.92;
    z-index: -1;
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

.category-card strong {
    display: block;
    color: #ffffff;
    font-size: 24px;
    margin-bottom: 12px;
}

.category-card em {
    color: rgba(255, 255, 255, 0.9);
    font-style: normal;
    line-height: 1.7;
}

.from-orange-500.to-amber-500 { background: linear-gradient(135deg, #f97316, #f59e0b); }
.from-red-500.to-rose-500 { background: linear-gradient(135deg, #ef4444, #f43f5e); }
.from-purple-500.to-indigo-500 { background: linear-gradient(135deg, #a855f7, #6366f1); }
.from-pink-500.to-orange-500 { background: linear-gradient(135deg, #ec4899, #f97316); }
.from-blue-500.to-cyan-500 { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.from-yellow-500.to-orange-500 { background: linear-gradient(135deg, #eab308, #f97316); }
.from-emerald-500.to-teal-500 { background: linear-gradient(135deg, #10b981, #14b8a6); }
.from-amber-500.to-lime-500 { background: linear-gradient(135deg, #f59e0b, #84cc16); }
.from-sky-500.to-blue-500 { background: linear-gradient(135deg, #0ea5e9, #3b82f6); }
.from-slate-600.to-purple-600 { background: linear-gradient(135deg, #475569, #9333ea); }
.from-stone-500.to-orange-600 { background: linear-gradient(135deg, #78716c, #ea580c); }
.from-fuchsia-500.to-pink-600 { background: linear-gradient(135deg, #d946ef, #db2777); }

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 38px rgba(124, 45, 18, 0.12);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(124, 45, 18, 0.2);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #7c2d12;
}

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

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

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

.movie-card:hover .movie-cover img {
    transform: scale(1.09);
}

.movie-score {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.72);
    color: #facc15;
    font-weight: 900;
    font-size: 13px;
}

.movie-play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(12px);
    transform: translate(-50%, -50%) scale(0.78);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

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

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

.movie-meta-line,
.detail-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.movie-meta-line span,
.detail-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: #ffedd5;
    color: #c2410c;
    font-size: 12px;
    font-weight: 800;
}

.movie-card h3 {
    margin: 14px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--orange);
}

.movie-card p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.movie-card.compact .movie-card-body {
    padding: 14px;
}

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

.rank-panel,
.side-panel,
.story-card,
.player-card,
.category-overview-card {
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(124, 45, 18, 0.12);
}

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.rank-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.rank-title span {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--orange), var(--amber));
}

.rank-title h2 {
    margin: 0;
    font-size: 26px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 42px 74px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: #fff7ed;
    transition: transform 0.25s ease, background 0.25s ease;
}

.rank-item:hover {
    transform: translateX(4px);
    background: #ffedd5;
}

.rank-number {
    color: #ea580c;
    font-weight: 950;
    font-size: 18px;
}

.rank-item img {
    width: 74px;
    height: 50px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-text strong,
.mini-card strong {
    display: block;
    line-height: 1.35;
}

.rank-text em,
.mini-card em {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.rank-heat {
    color: #d97706;
    font-weight: 900;
}

.page-hero {
    position: relative;
    padding: 92px 0;
    color: #ffffff;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.28), transparent 28%),
        linear-gradient(135deg, #f97316, #f59e0b 48%, #facc15);
}

.page-hero h1 {
    margin: 18px 0;
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -0.05em;
}

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

.category-overview {
    display: grid;
    gap: 24px;
}

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

.category-overview-head {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: center;
    margin-bottom: 20px;
}

.category-overview-head .category-glow {
    position: static;
    width: 70px;
    height: 70px;
    border-radius: 22px;
    opacity: 1;
}

.category-overview-head h2 {
    margin: 0 0 8px;
    font-size: 28px;
}

.category-overview-head p {
    margin: 0;
    color: var(--muted);
}

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

.mini-card-grid.single-column {
    grid-template-columns: 1fr;
}

.mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: #fff7ed;
    transition: transform 0.25s ease, background 0.25s ease;
}

.mini-card:hover {
    transform: translateY(-2px);
    background: #ffedd5;
}

.mini-card img {
    width: 84px;
    height: 56px;
    flex: 0 0 auto;
    border-radius: 12px;
    object-fit: cover;
}

.filter-bar {
    margin-bottom: 28px;
}

.filter-bar select {
    max-width: 180px;
    cursor: pointer;
}

.movie-card.is-hidden {
    display: none;
}

.full-rank {
    position: static;
}

.detail-hero {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    color: #ffffff;
    background: #7c2d12;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(4px) saturate(1.1);
    transform: scale(1.04);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 560px;
    display: grid;
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}

.poster-card {
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    padding: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.poster-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 800;
}

.breadcrumb a:hover {
    color: #fef3c7;
}

.detail-intro h1 {
    margin: 20px 0;
    font-size: clamp(40px, 6vw, 74px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.detail-intro p {
    max-width: 820px;
    font-size: 20px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.92);
}

.detail-tags {
    margin: 24px 0;
}

.detail-tags span {
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
}

.detail-section {
    padding-top: 46px;
}

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

.player-card {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    background: #000000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.32), rgba(0, 0, 0, 0.08));
    cursor: pointer;
    z-index: 4;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-left: 5px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 34px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24), 0 18px 44px rgba(0, 0, 0, 0.34);
    transition: transform 0.25s ease, background 0.25s ease;
}

.player-overlay:hover span {
    transform: scale(1.08);
    background: rgba(249, 115, 22, 0.82);
}

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

.story-card {
    padding: 28px;
    margin-bottom: 22px;
}

.story-card h2,
.side-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.story-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.9;
    font-size: 16px;
}

.info-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 22px;
}

.info-card div {
    padding: 14px;
    border-radius: 16px;
    background: #fff7ed;
}

.info-card dt {
    color: #9a3412;
    font-size: 13px;
    font-weight: 900;
}

.info-card dd {
    margin: 6px 0 0;
    color: #1f2937;
    font-weight: 800;
}

.large-tags span {
    min-height: 32px;
    padding: 0 14px;
}

.side-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.in-card {
    margin-bottom: 20px;
}

.site-footer {
    background: #1f2937;
    color: #e5e7eb;
    margin-top: 30px;
}

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

.site-footer p {
    color: #9ca3af;
    line-height: 1.8;
    max-width: 480px;
}

.site-footer h2 {
    margin: 0 0 16px;
    font-size: 18px;
    color: #ffffff;
}

.site-footer a {
    display: block;
    color: #d1d5db;
    margin: 9px 0;
    transition: color 0.25s ease;
}

.site-footer a:hover {
    color: #fdba74;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-tags a {
    margin: 0;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 16px;
    text-align: center;
    color: #9ca3af;
}

@keyframes heroZoom {
    from { transform: scale(1.06); }
    to { transform: scale(1.13); }
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(4deg); }
}

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

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

    .rank-panel,
    .side-panel {
        position: static;
    }

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

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero-carousel,
    .hero-content {
        min-height: 620px;
    }

    .hero-content h1 {
        font-size: 48px;
    }

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

    .search-box,
    .filter-bar {
        flex-direction: column;
    }

    .search-box button {
        min-height: 50px;
    }

    .category-grid,
    .movie-grid,
    .compact-grid,
    .mini-card-grid,
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .detail-hero-inner {
        grid-template-columns: 1fr;
        padding: 40px 0;
    }

    .poster-card {
        width: min(300px, 82vw);
    }
}

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

    .brand strong {
        font-size: 18px;
    }

    .brand em {
        display: none;
    }

    .hero-carousel,
    .hero-content {
        min-height: 560px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p,
    .detail-intro p,
    .page-hero p {
        font-size: 16px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-btn,
    .ghost-btn {
        width: 100%;
    }

    .category-grid,
    .movie-grid,
    .compact-grid,
    .mini-card-grid,
    .footer-grid,
    .info-card dl,
    .search-results {
        grid-template-columns: 1fr;
    }

    .section-head,
    .category-overview-head {
        display: block;
    }

    .category-overview-head .category-glow {
        margin-bottom: 16px;
    }

    .rank-item {
        grid-template-columns: 34px 64px 1fr;
    }

    .rank-heat {
        display: none;
    }

    .section {
        padding: 52px 0;
    }
}
