:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --ink: #111827;
    --muted: #6b7280;
    --soft: #f3f4f6;
    --line: #e5e7eb;
    --amber: #d97706;
    --amber-dark: #b45309;
    --orange: #ea580c;
    --shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.6;
}

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);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.72);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    box-shadow: 0 10px 32px rgba(17, 24, 39, 0.08);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 22px;
}

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

.brand-mark,
.footer-brand span {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(217, 119, 6, 0.25);
}

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

.brand-text strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    font-weight: 600;
    color: #374151;
}

.desktop-nav a {
    transition: color 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--amber-dark);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 230px;
    margin-left: 4px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #ffffff;
    overflow: hidden;
}

.header-search input {
    min-width: 0;
    width: 100%;
    padding: 10px 10px 10px 16px;
    border: 0;
    outline: 0;
    background: transparent;
}

.header-search button {
    height: 100%;
    padding: 9px 14px;
    color: #ffffff;
    border: 0;
    background: var(--amber);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--soft);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--ink);
    border-radius: 99px;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.mobile-panel a {
    display: block;
    padding: 11px 12px;
    color: #374151;
    border-radius: 12px;
}

.mobile-panel a:hover {
    color: var(--amber-dark);
    background: #fff7ed;
}

.mobile-panel.is-open {
    display: block;
}

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

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

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

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

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 18%, rgba(245, 158, 11, 0.32), transparent 34%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.66) 42%, rgba(0, 0, 0, 0.12) 100%),
        linear-gradient(0deg, rgba(17, 24, 39, 0.72), transparent 44%);
}

.hero-inner {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    min-height: 610px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 72px 0 118px;
}

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

.hero-badge,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    color: #92400e;
    background: #fef3c7;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.eyebrow.light {
    color: #fffbeb;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero-copy h1,
.page-hero h1,
.detail-hero h1 {
    margin: 18px 0 16px;
    font-size: clamp(34px, 6vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.detail-hero p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

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

.hero-meta span {
    padding: 6px 10px;
    color: rgba(255, 255, 255, 0.84);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 14px;
}

.hero-tags span,
.mini-tags span {
    display: inline-flex;
    padding: 4px 9px;
    color: #78350f;
    background: #fffbeb;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

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

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

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 36px rgba(217, 119, 6, 0.28);
}

.btn-secondary {
    color: var(--amber-dark);
    background: #fffbeb;
    border: 1px solid #fde68a;
}

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

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

.hero-controls button {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.32);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

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

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

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

.hero-thumbs {
    position: absolute;
    right: max(24px, calc((100vw - 1180px) / 2));
    bottom: 34px;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(5, 92px);
    gap: 10px;
}

.hero-thumb {
    position: relative;
    display: block;
    height: 62px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    opacity: 0.72;
}

.hero-thumb.is-active {
    border-color: #f59e0b;
    opacity: 1;
}

.hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-thumb span {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 10px 7px 5px;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

.section-head h2 {
    margin: 10px 0 0;
    font-size: clamp(26px, 3.6vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-head.compact h2 {
    font-size: 26px;
}

.more-link {
    color: var(--amber-dark);
    font-weight: 800;
}

.section-search-card {
    margin-top: -42px;
    position: relative;
    z-index: 5;
    padding-top: 0;
}

.search-card {
    display: grid;
    grid-template-columns: 1fr minmax(300px, 470px);
    gap: 24px;
    align-items: center;
    padding: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(229, 231, 235, 0.84);
    border-radius: 24px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

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

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

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

.large-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: 0;
    background: #ffffff;
}

.large-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
}

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

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.84);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 50px rgba(17, 24, 39, 0.13);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #111827;
}

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

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

.poster-shade {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent 68%);
    transition: opacity 0.25s ease;
}

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

.poster-play {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    color: #ffffff;
    background: rgba(217, 119, 6, 0.92);
    border-radius: 999px;
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.movie-card-body {
    display: flex;
    min-height: 206px;
    flex-direction: column;
    padding: 16px;
}

.movie-card-meta,
.card-bottom,
.rank-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

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

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

.movie-card h3 a:hover,
.rank-item h3 a:hover,
.overview-card h2 a:hover {
    color: var(--amber-dark);
}

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

.mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.card-bottom {
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}

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

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

.category-tile,
.rank-panel,
.content-card,
.aside-card,
.overview-card,
.top-rank-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.86);
    border-radius: 22px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.category-tile {
    padding: 18px;
}

.category-tile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.category-tile-head strong {
    font-size: 20px;
}

.category-tile-head span {
    color: var(--amber-dark);
    font-weight: 800;
}

.category-tile p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

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

.category-mini-grid a,
.overview-posters a {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #111827;
}

.category-mini-grid img,
.overview-posters img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.category-mini-grid span,
.overview-posters span {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 14px 6px 5px;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), transparent);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

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

.rank-item {
    display: grid;
    grid-template-columns: 108px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
}

.rank-list.small .rank-item {
    grid-template-columns: 84px minmax(0, 1fr);
}

.rank-cover {
    overflow: hidden;
    border-radius: 14px;
}

.rank-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.rank-line {
    display: flex;
    align-items: start;
    gap: 10px;
}

.rank-num {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    color: #6b7280;
    background: var(--soft);
    border-radius: 10px;
    font-weight: 900;
}

.rank-gold,
.rank-silver,
.rank-bronze {
    color: #ffffff;
}

.rank-gold {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.rank-silver {
    background: linear-gradient(135deg, #9ca3af, #4b5563);
}

.rank-bronze {
    background: linear-gradient(135deg, #fb923c, #c2410c);
}

.rank-item h3 {
    margin: 2px 0 0;
    font-size: 16px;
    line-height: 1.35;
}

.rank-item p {
    margin: 8px 0 8px;
    color: var(--muted);
    font-size: 13px;
}

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

.movie-card-wide {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
}

.movie-card-wide .poster-link {
    height: 100%;
    min-height: 168px;
}

.movie-card-wide .movie-card-body {
    min-height: auto;
}

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

.gradient-hero,
.search-hero {
    background:
        radial-gradient(circle at 80% 30%, rgba(251, 146, 60, 0.45), transparent 30%),
        linear-gradient(135deg, #92400e, #d97706 54%, #ea580c);
}

.search-hero {
    background:
        radial-gradient(circle at 16% 20%, rgba(253, 230, 138, 0.36), transparent 28%),
        linear-gradient(135deg, #111827, #92400e 58%, #ea580c);
}

.page-hero-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 70px 0;
}

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

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

.filter-bar {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) 220px;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(17, 24, 39, 0.06);
}

.search-filter {
    grid-template-columns: minmax(260px, 1fr) 220px 180px;
}

.filter-bar label {
    display: grid;
    gap: 7px;
    color: #374151;
    font-weight: 800;
}

.filter-grid .is-hidden,
.rank-list.full .is-hidden {
    display: none;
}

.overview-list {
    display: grid;
    gap: 22px;
}

.overview-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) 1fr;
    gap: 22px;
    padding: 22px;
}

.overview-card-text h2 {
    margin: 12px 0 10px;
    font-size: 28px;
}

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

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

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

.top-rank-card {
    position: relative;
    overflow: hidden;
    padding-bottom: 20px;
}

.top-rank-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.top-rank-num {
    position: absolute;
    top: 14px;
    left: 14px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 16px;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
}

.top-rank-card h2 {
    margin: 18px 18px 8px;
    font-size: 22px;
}

.top-rank-card p {
    margin: 0 18px;
    color: var(--muted);
}

.rank-list.full .rank-item {
    grid-template-columns: 150px minmax(0, 1fr);
}

.detail-hero {
    background: #111827;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--detail-bg);
    background-size: cover;
    background-position: center;
    filter: blur(16px);
    transform: scale(1.08);
    opacity: 0.48;
}

.detail-hero-layer {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 16%, rgba(245, 158, 11, 0.36), transparent 34%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.68));
}

.detail-hero-inner {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 62px 0;
}

.detail-title-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: end;
}

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

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

.player-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #020617;
    border-radius: 24px;
    box-shadow: 0 26px 70px rgba(2, 6, 23, 0.24);
}

.video-player {
    width: 100%;
    height: 100%;
    background: #020617;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 12px;
    color: #ffffff;
    text-align: center;
    border: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.72), rgba(2, 6, 23, 0.28));
    cursor: pointer;
    transition: opacity 0.22s ease, visibility 0.22s ease;
}

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

.player-play {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin: 0 auto;
    color: #ffffff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(217, 119, 6, 0.34);
    font-size: 26px;
}

.player-overlay strong {
    max-width: min(520px, calc(100vw - 80px));
    font-size: 22px;
}

.content-card {
    padding: 24px;
}

.content-card h2,
.aside-card h2 {
    margin: 0 0 14px;
    font-size: 24px;
}

.content-card p {
    margin: 0 0 14px;
    color: #374151;
}

.content-card p:last-child {
    margin-bottom: 0;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 20px;
}

.info-list div {
    padding: 12px;
    background: #f9fafb;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.info-list dt {
    color: var(--muted);
    font-size: 13px;
}

.info-list dd {
    margin: 5px 0 0;
    font-weight: 800;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-pill {
    padding: 7px 12px;
    color: #78350f;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 999px;
    font-weight: 700;
}

.detail-aside {
    position: sticky;
    top: 96px;
    display: grid;
    gap: 18px;
}

.aside-card {
    padding: 18px;
}

.poster-aside img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 14px;
    border-radius: 16px;
}

.poster-aside .btn {
    width: 100%;
}

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

.side-rec {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
}

.side-rec img {
    width: 92px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
}

.side-rec span {
    display: block;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.side-rec small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

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

.site-footer {
    margin-top: 40px;
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr;
    gap: 32px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #ffffff;
    font-size: 20px;
}

.site-footer p {
    max-width: 520px;
    margin: 0;
    color: #cbd5e1;
}

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

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
}

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

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

    .menu-toggle {
        display: block;
    }

    .hero-thumbs {
        display: none;
    }

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

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

    .rank-panel,
    .detail-aside {
        position: static;
    }
}

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

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

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

    .hero-inner {
        padding-bottom: 92px;
    }

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

    .search-card,
    .overview-card,
    .detail-title-row,
    .footer-grid {
        grid-template-columns: 1fr;
    }

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

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

    .movie-card-wide .poster-link {
        min-height: auto;
    }

    .filter-bar,
    .search-filter {
        grid-template-columns: 1fr;
    }

    .rank-list.full .rank-item {
        grid-template-columns: 108px minmax(0, 1fr);
    }
}

@media (max-width: 560px) {
    .section {
        width: min(100% - 24px, 1180px);
        padding: 38px 0;
    }

    .page-hero-inner,
    .detail-hero-inner,
    .header-inner,
    .mobile-panel,
    .footer-grid {
        width: min(100% - 24px, 1180px);
    }

    .hero-inner {
        width: min(100% - 24px, 1180px);
        min-height: 540px;
    }

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

    .hero-controls {
        bottom: 22px;
    }

    .hero-meta,
    .hero-tags,
    .hero-actions {
        gap: 8px;
    }

    .hero-actions .btn,
    .large-search .btn {
        width: 100%;
    }

    .large-search {
        flex-direction: column;
    }

    .movie-grid,
    .related-grid,
    .category-grid,
    .wide-list,
    .top-rank-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-body {
        min-height: auto;
    }

    .overview-posters,
    .category-mini-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .rank-item,
    .rank-list.small .rank-item,
    .rank-list.full .rank-item {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .info-list {
        grid-template-columns: 1fr;
    }

    .side-rec {
        grid-template-columns: 82px minmax(0, 1fr);
    }

    .side-rec img {
        width: 82px;
    }
}
