:root {
    --page-bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: #fffaf3;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(15, 23, 42, 0.1);
    --primary: #ef4444;
    --primary-dark: #dc2626;
    --secondary: #f97316;
    --gold: #facc15;
    --green: #16a34a;
    --shadow: 0 24px 60px rgba(127, 29, 29, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(239, 68, 68, 0.14), transparent 32rem),
        radial-gradient(circle at 95% 8%, rgba(249, 115, 22, 0.16), transparent 28rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
}

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.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 40px rgba(127, 29, 29, 0.08);
    backdrop-filter: blur(18px);
}

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

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

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: inline-grid;
    place-items: center;
    color: #ffffff;
    font-size: 16px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 12px 28px rgba(239, 68, 68, 0.3);
}

.brand-copy {
    display: grid;
    line-height: 1.15;
}

.brand-copy strong,
.footer-brand strong {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #dc2626, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy small {
    color: var(--muted);
    font-size: 12px;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: #374151;
    font-weight: 700;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.08);
    transform: translateY(-1px);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 280px;
    padding: 6px;
    border: 1px solid rgba(239, 68, 68, 0.14);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.header-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 8px 10px 8px 14px;
    color: #111827;
    background: transparent;
}

.header-search button,
.hero-search button,
.primary-btn,
.secondary-btn,
.watch-btn,
.reset-btn {
    border: 0;
    cursor: pointer;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.header-search button {
    padding: 8px 14px;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.header-search button:hover,
.primary-btn:hover,
.watch-btn:hover,
.hero-search button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 28px rgba(239, 68, 68, 0.24);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: #fff1f2;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 4px;
    background: #ef4444;
}

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

.mobile-panel a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    color: #374151;
    font-weight: 800;
}

.mobile-panel a:hover {
    color: var(--primary);
    background: #fff1f2;
}

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

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, #b91c1c 0%, #ef4444 45%, #f97316 100%);
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    filter: blur(20px);
    opacity: 0.28;
    pointer-events: none;
}

.hero::before {
    width: 420px;
    height: 420px;
    top: 54px;
    left: -120px;
    background: #ffffff;
}

.hero::after {
    width: 520px;
    height: 520px;
    right: -160px;
    bottom: -140px;
    background: #fde68a;
}

.hero-bg-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
    background-position: center;
    background-size: cover;
}

.hero-bg-slide.active {
    opacity: 0.22;
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 36%, rgba(255, 255, 255, 0.12), transparent 22rem),
        linear-gradient(90deg, rgba(127, 29, 29, 0.92), rgba(127, 29, 29, 0.56), rgba(127, 29, 29, 0.78));
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 54px;
    align-items: center;
    padding: 64px 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding: 9px 16px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero h1 {
    margin: 0;
    font-size: clamp(44px, 7vw, 88px);
    line-height: 0.96;
    letter-spacing: -0.07em;
    font-weight: 950;
}

.hero h1 span {
    display: block;
    margin-top: 12px;
    background: linear-gradient(135deg, #fff7ad, #fed7aa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 720px;
    margin: 26px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 21px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.primary-btn,
.secondary-btn,
.watch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 26px;
}

.primary-btn,
.watch-btn {
    color: #dc2626;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(127, 29, 29, 0.2);
}

.secondary-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 2px solid rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(12px);
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
}

.hero-search {
    display: flex;
    align-items: center;
    max-width: 580px;
    margin-top: 28px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

.hero-search input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;
    border: 0;
    outline: 0;
    color: #ffffff;
    background: transparent;
}

.hero-search input::placeholder {
    color: rgba(255, 255, 255, 0.72);
}

.hero-search button {
    min-height: 46px;
    padding: 0 22px;
    color: #dc2626;
    background: #ffffff;
}

.hero-card {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 40px 80px rgba(127, 29, 29, 0.35);
    backdrop-filter: blur(16px);
}

.hero-slides {
    position: relative;
    min-height: 590px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(24px) scale(0.98);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
}

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

.hero-slide img {
    width: 100%;
    aspect-ratio: 3 / 4.2;
    object-fit: cover;
}

.hero-slide-copy {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 120px 28px 28px;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.92));
}

.hero-slide-copy h2 {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.hero-slide-copy p {
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.65;
}

.hero-tags,
.meta-pills,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-bottom: 14px;
}

.hero-tags span,
.meta-pills span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
}

.hero-controls {
    position: absolute;
    right: 22px;
    top: 22px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.hero-controls button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(12px);
}

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

.section {
    padding: 72px 0;
}

.section.soft {
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.8), rgba(255, 255, 255, 0.8));
}

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

.kicker {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-head h2,
.page-title h1,
.detail-title h1 {
    margin: 0;
    color: #111827;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.section-head h2 {
    font-size: clamp(28px, 4vw, 44px);
}

.section-head p,
.page-title p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.more-link {
    color: var(--primary);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 46px rgba(127, 29, 29, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    border-color: rgba(239, 68, 68, 0.26);
    box-shadow: 0 30px 70px rgba(127, 29, 29, 0.16);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #7f1d1d;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4.1;
    object-fit: cover;
    transition: transform 0.35s ease, filter 0.35s ease;
}

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

.poster-mask {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(15, 23, 42, 0.72));
}

.play-chip,
.rank-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 950;
}

.play-chip {
    right: 14px;
    bottom: 14px;
    min-height: 34px;
    padding: 0 14px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.28);
}

.rank-badge {
    top: 14px;
    left: 14px;
    min-width: 38px;
    height: 38px;
    background: rgba(17, 24, 39, 0.72);
    backdrop-filter: blur(10px);
}

.card-body {
    padding: 18px;
}

.card-meta,
.card-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.card-meta span:not(:last-child)::after {
    content: "·";
    margin-left: 8px;
    color: #d1d5db;
}

.movie-card h3 {
    margin: 10px 0 8px;
    color: #111827;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 950;
    letter-spacing: -0.03em;
}

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

.movie-card p {
    min-height: 48px;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

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

.tag-row span {
    color: #b91c1c;
    background: #fff1f2;
}

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

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 24px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--cat-color), #f97316);
    box-shadow: 0 24px 50px rgba(127, 29, 29, 0.14);
}

.category-card::after {
    content: "";
    position: absolute;
    width: 160px;
    height: 160px;
    right: -50px;
    bottom: -50px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
}

.category-card strong {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 950;
}

.category-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.7;
}

.category-card span {
    position: absolute;
    left: 24px;
    bottom: 22px;
    z-index: 1;
    font-weight: 900;
}

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

.ranking-list,
.side-panel,
.info-panel,
.related-panel {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 46px rgba(127, 29, 29, 0.08);
}

.ranking-list {
    padding: 18px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 42px 72px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.ranking-number {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 950;
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.ranking-item img {
    width: 72px;
    height: 96px;
    border-radius: 14px;
    object-fit: cover;
}

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

.ranking-copy strong {
    display: block;
    overflow: hidden;
    color: #111827;
    font-size: 16px;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-copy small {
    display: block;
    margin-top: 6px;
    color: var(--muted);
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 82px 0 54px;
    color: #ffffff;
    background: linear-gradient(135deg, #b91c1c, #ef4444 52%, #f97316);
}

.page-hero::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -120px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    filter: blur(8px);
}

.page-title {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.page-title h1 {
    color: #ffffff;
    font-size: clamp(38px, 5vw, 64px);
}

.page-title p {
    max-width: 780px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 14px;
    margin: 34px 0;
    padding: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 34px rgba(127, 29, 29, 0.08);
}

.filter-search input,
.filter-controls select {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 999px;
    outline: none;
    color: #111827;
    background: #ffffff;
}

.filter-search input {
    padding: 0 20px;
}

.filter-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-controls select {
    min-width: 142px;
    padding: 0 16px;
}

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

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

.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 0;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.96), rgba(239, 68, 68, 0.88), rgba(249, 115, 22, 0.92));
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.24;
    background-position: center;
    background-size: cover;
    filter: blur(2px) saturate(1.1);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(127, 29, 29, 0.96), rgba(127, 29, 29, 0.7), rgba(127, 29, 29, 0.92));
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.detail-poster {
    overflow: hidden;
    border-radius: 30px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4.1;
    object-fit: cover;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 800;
}

.breadcrumbs a:hover {
    color: #fde68a;
}

.detail-title h1 {
    color: #ffffff;
    font-size: clamp(36px, 5vw, 64px);
}

.detail-lead {
    max-width: 860px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 19px;
    line-height: 1.8;
}

.meta-pills {
    margin-top: 24px;
}

.meta-pills span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.detail-main {
    width: min(1280px, calc(100% - 32px));
    margin: 42px auto 72px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: start;
}

.player-card {
    overflow: hidden;
    border-radius: 30px;
    background: #111827;
    box-shadow: 0 28px 70px rgba(127, 29, 29, 0.18);
}

.player-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #030712;
    cursor: pointer;
}

.player-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #030712;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(3, 7, 18, 0.18), rgba(3, 7, 18, 0.72));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-icon-large {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ef4444;
    font-size: 28px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.player-overlay strong {
    font-size: 20px;
    font-weight: 950;
}

.content-panel {
    margin-top: 28px;
    padding: 30px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 46px rgba(127, 29, 29, 0.08);
}

.content-panel h2,
.info-panel h2,
.related-panel h2,
.side-panel h2 {
    margin: 0 0 18px;
    color: #111827;
    font-size: 25px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.content-panel p {
    margin: 0 0 18px;
    color: #374151;
    line-height: 1.9;
    font-size: 16px;
}

.info-panel,
.related-panel,
.side-panel {
    padding: 24px;
}

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

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.info-list dt {
    color: var(--muted);
    font-weight: 800;
}

.info-list dd {
    margin: 0;
    color: #111827;
    text-align: right;
    font-weight: 900;
}

.related-panel {
    margin-top: 24px;
}

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

.related-link {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.related-link:hover {
    background: #fff7ed;
    transform: translateX(4px);
}

.related-link img {
    width: 64px;
    height: 86px;
    border-radius: 13px;
    object-fit: cover;
}

.related-link strong {
    display: block;
    overflow: hidden;
    color: #111827;
    font-weight: 950;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.related-link span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    padding: 46px 0;
    color: #d1d5db;
    background: #111827;
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 34px;
    align-items: center;
}

.footer-brand p {
    margin: 8px 0 0;
    color: #9ca3af;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px 20px;
}

.footer-links a {
    color: #d1d5db;
    font-weight: 800;
}

.footer-links a:hover {
    color: #fb923c;
}

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

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

    .menu-toggle {
        display: block;
    }

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

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

    .hero-card {
        max-width: 520px;
    }

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

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

    .brand-copy small {
        display: none;
    }

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

    .header-search {
        display: none;
    }

    .hero,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 48px 0 64px;
        gap: 34px;
    }

    .hero-lead {
        font-size: 17px;
    }

    .hero-search {
        border-radius: 26px;
        flex-direction: column;
        align-items: stretch;
    }

    .hero-search button {
        width: 100%;
    }

    .hero-slides {
        min-height: 520px;
    }

    .section {
        padding: 52px 0;
    }

    .section-head {
        display: block;
    }

    .more-link {
        display: inline-block;
        margin-top: 14px;
    }

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

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

    .filter-controls select {
        flex: 1 1 140px;
    }

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

    .detail-poster {
        max-width: 260px;
    }

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

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .page-main,
    .section-inner,
    .page-title,
    .detail-hero-inner,
    .detail-main,
    .footer-inner,
    .hero-inner,
    .mobile-panel {
        width: min(100% - 24px, 1280px);
    }

    .brand-icon {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }

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

    .hero-actions {
        display: grid;
    }

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

    .hero-card {
        border-radius: 26px;
    }

    .hero-slide-copy {
        padding: 96px 20px 22px;
    }

    .hero-slide-copy h2 {
        font-size: 24px;
    }

    .ranking-item {
        grid-template-columns: 34px 60px minmax(0, 1fr);
        gap: 10px;
    }

    .ranking-item img {
        width: 60px;
        height: 82px;
    }

    .content-panel,
    .info-panel,
    .related-panel,
    .side-panel {
        padding: 20px;
        border-radius: 24px;
    }
}
