:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --amber: #d97706;
    --amber-dark: #b45309;
    --red: #ef4444;
    --orange: #f97316;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --radius: 24px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.12), transparent 34rem), var(--bg);
    color: var(--ink);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

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

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

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

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

.brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--red), var(--orange));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
    font-size: 17px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-text strong,
.footer-brand strong {
    font-size: 24px;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #dc2626, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link {
    position: relative;
    color: #374151;
    font-weight: 700;
    padding: 9px 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: var(--amber);
    transition: right 0.25s ease;
}

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

.nav-link:hover::after,
.nav-link.active::after {
    right: 0;
}

.header-search {
    display: flex;
    align-items: center;
    width: min(320px, 30vw);
    border: 1px solid #d1d5db;
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.header-search input,
.mobile-search input,
.home-search-panel input,
.big-search-shell input,
.filter-input {
    width: 100%;
    border: 0;
    outline: 0;
    background: #ffffff;
    color: var(--ink);
}

.header-search input {
    padding: 10px 14px;
}

.header-search button,
.mobile-search button,
.home-search-panel button {
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), #f59e0b);
    padding: 10px 15px;
    cursor: pointer;
    font-weight: 700;
}

.mobile-menu-button {
    display: none;
    border: 0;
    background: #fff7ed;
    color: #9a3412;
    border-radius: 12px;
    padding: 10px 13px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    padding: 12px 16px 18px;
    background: #ffffff;
}

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

.mobile-nav-link {
    display: block;
    padding: 12px 10px;
    color: #374151;
    font-weight: 700;
    border-radius: 12px;
}

.mobile-nav-link.active,
.mobile-nav-link:hover {
    background: #fff7ed;
    color: var(--amber-dark);
}

.mobile-search {
    display: flex;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    overflow: hidden;
    margin-top: 10px;
}

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

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

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.64), rgba(17, 24, 39, 0.08)), var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    filter: saturate(1.05);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(0deg, var(--bg), transparent);
}

.hero-inner {
    position: relative;
    z-index: 2;
    min-height: 630px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 390px;
    align-items: center;
    gap: 58px;
    padding: 72px 0 90px;
}

.hero-copy {
    color: #ffffff;
    max-width: 680px;
}

.hero-label,
.page-label {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 9px 14px;
    color: #fffbeb;
    background: rgba(217, 119, 6, 0.92);
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: 0 12px 34px rgba(217, 119, 6, 0.32);
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(40px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.08em;
}

.hero-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.85;
}

.hero-tags,
.detail-tags,
.category-keywords,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.category-keywords span,
.tag-row span {
    border-radius: 999px;
    padding: 6px 11px;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.primary-button,
.ghost-button,
.ranking-more,
.section-more,
.wide-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    padding: 14px 23px;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, var(--amber-dark));
    box-shadow: 0 20px 40px rgba(180, 83, 9, 0.32);
}

.ghost-button {
    padding: 13px 22px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.primary-button:hover,
.ghost-button:hover,
.ranking-more:hover,
.section-more:hover,
.wide-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    border-radius: 30px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.hero-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 22px;
    background: linear-gradient(135deg, #1f2937, #111827);
}

.hero-poster span {
    position: absolute;
    left: 28px;
    bottom: 28px;
    padding: 9px 14px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.58);
    font-weight: 800;
}

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

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

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 28px;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
}

.hero-dot.active {
    width: 28px;
    background: #f59e0b;
}

.home-search-panel {
    position: relative;
    z-index: 5;
    margin-top: -38px;
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    align-items: center;
    gap: 28px;
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
}

.home-search-panel strong {
    display: block;
    font-size: 24px;
    margin-bottom: 6px;
}

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

.home-search-panel form {
    display: flex;
    border: 1px solid #f3d7a9;
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff;
}

.home-search-panel input {
    padding: 16px 18px;
}

.home-search-panel button {
    padding-inline: 22px;
}

.section-block {
    padding: 64px 0 0;
}

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

.section-heading h2,
.toolbar h2,
.ranking-title h2,
.content-card h2,
.side-card h2 {
    margin: 0;
    color: var(--ink);
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 38px);
    letter-spacing: -0.05em;
}

.section-heading p,
.toolbar p {
    margin: 8px 0 0;
    color: var(--muted);
    line-height: 1.65;
}

.section-kicker {
    display: block;
    width: 46px;
    height: 8px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.section-more {
    flex: 0 0 auto;
    color: var(--amber-dark);
    background: #fff7ed;
    padding: 11px 16px;
}

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

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

.movie-card {
    border-radius: 22px;
    overflow: hidden;
    background: var(--panel);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #1f2937, #111827);
}

.poster-link img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent);
}

.year-badge,
.rank-badge,
.play-float {
    position: absolute;
    z-index: 2;
}

.year-badge {
    top: 12px;
    left: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.54);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 800;
}

.rank-badge {
    top: 12px;
    right: 12px;
    min-width: 34px;
    height: 34px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    font-style: normal;
    font-weight: 900;
}

.play-float {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(245, 158, 11, 0.92);
    box-shadow: 0 14px 28px rgba(217, 119, 6, 0.32);
}

.card-body {
    padding: 18px;
}

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

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
    font-size: 12px;
    color: var(--muted);
}

.card-meta a {
    color: var(--amber-dark);
    font-weight: 800;
}

.card-body h2 {
    margin: 0;
    font-size: 19px;
    line-height: 1.35;
}

.movie-card.compact .card-body h2 {
    font-size: 16px;
}

.card-body h2 a:hover {
    color: var(--amber-dark);
}

.card-body p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.tag-row {
    margin-top: 13px;
}

.tag-row span {
    color: #92400e;
    background: #fffbeb;
    font-size: 12px;
}

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

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

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 158px;
    border-radius: 22px;
    padding: 22px;
    color: #ffffff;
    isolation: isolate;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card::before,
.category-overview-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: linear-gradient(135deg, rgba(180, 83, 9, 0.88), rgba(239, 68, 68, 0.72)), var(--category-image);
    background-size: cover;
    background-position: center;
}

.category-card::after,
.category-overview-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.34), transparent 11rem);
}

.category-card:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 26px 56px rgba(15, 23, 42, 0.18);
}

.category-card .category-icon,
.category-overview-card span {
    display: block;
    font-size: 34px;
    margin-bottom: 12px;
}

.category-card strong,
.category-overview-card h2 {
    display: block;
    font-size: 22px;
    margin: 0 0 10px;
}

.category-card small,
.category-overview-card p,
.category-overview-card em {
    display: block;
    color: rgba(255, 255, 255, 0.84);
    line-height: 1.55;
    font-style: normal;
}

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

.category-overview-card {
    min-height: 230px;
}

.ranking-panel,
.side-card,
.content-card,
.video-shell,
.top-rank-card,
.toolbar {
    border: 1px solid rgba(229, 231, 235, 0.86);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.ranking-panel {
    position: sticky;
    top: 96px;
    border-radius: var(--radius);
    padding: 24px;
}

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

.ranking-title span {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    font-weight: 900;
}

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

.rank-line {
    display: grid;
    grid-template-columns: 36px 1fr;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: #f9fafb;
}

.rank-line:hover {
    background: #fff7ed;
}

.rank-line span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: #111827;
    font-weight: 900;
}

.rank-line strong {
    display: block;
    font-size: 15px;
}

.rank-line em {
    display: block;
    grid-column: 2;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.ranking-more {
    width: 100%;
    margin-top: 18px;
    padding: 13px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), #ef4444);
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: #ffffff;
    background: #111827;
    isolation: isolate;
}

.page-hero::before,
.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: linear-gradient(135deg, rgba(17, 24, 39, 0.94), rgba(146, 64, 14, 0.72)), var(--page-hero-image, var(--detail-image));
    background-size: cover;
    background-position: center;
}

.page-hero::after,
.detail-hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 40%;
    z-index: -1;
    background: linear-gradient(0deg, var(--bg), transparent);
}

.compact-hero .container,
.category-hero .container {
    padding: 76px 0 82px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

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

.page-hero h1,
.detail-copy h1 {
    margin: 0 0 18px;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.04;
    letter-spacing: -0.07em;
}

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

.category-keywords {
    margin-top: 22px;
}

.toolbar {
    padding: 22px;
    border-radius: 22px;
}

.filter-input,
.big-search-shell input {
    min-height: 48px;
    border-radius: 999px;
    padding: 0 18px;
    border: 1px solid #fed7aa;
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.10);
}

.big-search-shell {
    width: min(680px, 100%);
    margin-top: 28px;
}

.empty-state {
    display: none;
    margin-top: 24px;
    padding: 34px;
    text-align: center;
    color: var(--muted);
    border-radius: 22px;
    background: #ffffff;
    border: 1px dashed #f3d7a9;
}

.empty-state.visible {
    display: block;
}

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

.top-rank-card {
    display: grid;
    gap: 8px;
    border-radius: 20px;
    padding: 18px;
    transition: transform 0.25s ease;
}

.top-rank-card:hover {
    transform: translateY(-4px);
}

.top-rank-card span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    font-weight: 900;
}

.top-rank-card strong {
    font-size: 17px;
}

.top-rank-card em {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    font-style: normal;
}

.detail-hero-inner {
    min-height: 520px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: end;
    padding: 70px 0 92px;
}

.detail-poster {
    border-radius: 28px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
}

.detail-poster img {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 20px;
    background: #111827;
}

.detail-copy p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

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

.detail-meta span {
    padding: 9px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    font-weight: 700;
}

.detail-tags span {
    background: rgba(245, 158, 11, 0.86);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    margin-top: -42px;
    position: relative;
    z-index: 4;
}

.detail-main,
.detail-side {
    display: grid;
    gap: 24px;
    align-content: start;
}

.video-shell {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    background: #000000;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    color: #ffffff;
    text-align: center;
    cursor: pointer;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.66));
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.big-play {
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 20px 45px rgba(239, 68, 68, 0.34);
    cursor: pointer;
    font-size: 28px;
}

.player-overlay strong {
    font-size: 20px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}

.content-card,
.side-card {
    border-radius: 24px;
    padding: 26px;
}

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

.info-list-card dl {
    margin: 18px 0 0;
    display: grid;
    gap: 12px;
}

.info-list-card div {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.info-list-card dt {
    color: var(--muted);
}

.info-list-card dd {
    margin: 0;
    font-weight: 700;
}

.info-list-card dd span {
    display: inline-block;
    margin: 0 6px 6px 0;
    padding: 5px 9px;
    border-radius: 999px;
    background: #fff7ed;
    color: #92400e;
}

.info-list-card dd a {
    color: var(--amber-dark);
}

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

.side-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.side-list a {
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: #f9fafb;
}

.side-list a:hover {
    background: #fff7ed;
}

.side-list span {
    color: var(--amber-dark);
    font-weight: 900;
}

.side-list strong {
    font-size: 15px;
}

.side-list em {
    grid-column: 2;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.wide-link {
    width: 100%;
    margin-top: 14px;
    padding: 13px;
    color: #92400e;
    background: #fff7ed;
}

.site-footer {
    margin-top: 78px;
    padding-top: 54px;
    background: linear-gradient(135deg, #f9fafb, #ffffff);
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 36px;
}

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

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

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    background: #fff7ed;
    color: #92400e;
    font-size: 14px;
    font-weight: 700;
}

.footer-bottom {
    margin-top: 36px;
    padding: 22px 16px;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

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

    .mobile-menu-button {
        display: inline-flex;
    }

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

    .hero-poster {
        display: none;
    }

    .ranking-panel,
    .detail-side {
        position: static;
    }

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

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

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

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

    .nav-shell {
        height: 66px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-text strong {
        font-size: 19px;
    }

    .brand-text small {
        display: none;
    }

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

    .hero-inner {
        padding: 58px 0 88px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1 {
        letter-spacing: -0.04em;
    }

    .home-search-panel,
    .toolbar,
    .content-card,
    .side-card {
        padding: 18px;
        border-radius: 18px;
    }

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

    .movie-grid,
    .small-grid,
    .category-grid,
    .category-overview-grid,
    .top-rank-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-body {
        padding: 13px;
    }

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

    .card-body p,
    .tag-row {
        display: none;
    }

    .category-card,
    .category-overview-card {
        min-height: 178px;
        padding: 18px;
    }

    .detail-hero-inner {
        min-height: auto;
        padding: 48px 0 76px;
    }

    .detail-poster {
        width: min(220px, 70vw);
    }

    .detail-layout {
        margin-top: -28px;
    }

    .info-list-card div,
    .side-list a {
        grid-template-columns: 1fr;
    }

    .side-list em {
        grid-column: auto;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .small-grid,
    .category-grid,
    .category-overview-grid,
    .top-rank-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions,
    .home-search-panel form {
        flex-direction: column;
        border-radius: 18px;
    }

    .home-search-panel button {
        width: 100%;
        padding: 14px;
    }
}
