:root {
    --bg: #fff7ed;
    --surface: #ffffff;
    --surface-soft: #fff1f2;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #fed7aa;
    --orange: #f97316;
    --orange-deep: #ea580c;
    --rose: #f43f5e;
    --amber: #f59e0b;
    --shadow: 0 18px 45px rgba(124, 45, 18, 0.14);
    --shadow-soft: 0 12px 30px rgba(124, 45, 18, 0.10);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.14), transparent 28rem),
        radial-gradient(circle at 100% 0, rgba(244, 63, 94, 0.12), transparent 30rem),
        linear-gradient(180deg, #fff7ed 0%, #ffffff 42%, #fff7ed 100%);
    min-height: 100vh;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(254, 215, 170, 0.85);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 28px rgba(124, 45, 18, 0.06);
}

.nav-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: transparent;
    background: linear-gradient(90deg, var(--orange), var(--rose), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
}

.brand {
    font-size: 22px;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.35);
}

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

.desktop-nav a,
.mobile-nav a {
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

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

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: #fff7ed;
    color: #9a3412;
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--border);
    padding: 10px 16px 16px;
    background: rgba(255, 255, 255, 0.95);
}

.mobile-nav.open {
    display: grid;
    gap: 8px;
}

.mobile-nav a {
    padding: 11px 14px;
    border-radius: 12px;
    font-weight: 700;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: #fff7ed;
}

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

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 56px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
    padding: 90px 0 110px;
}

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

.hero-image {
    position: fixed;
    inset: 0;
    z-index: -3;
    width: 100vw;
    height: 100%;
    object-fit: cover;
    filter: blur(3px) saturate(1.15);
    transform: scale(1.04);
}

.hero-overlay {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92) 0%, rgba(17, 24, 39, 0.76) 42%, rgba(244, 63, 94, 0.28) 100%),
        radial-gradient(circle at 80% 18%, rgba(249, 115, 22, 0.45), transparent 34rem),
        linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.82));
}

.hero-content {
    color: white;
    max-width: 720px;
}

.hero-pill,
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    border-radius: 999px;
    padding: 7px 13px;
    color: #fff7ed;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.04em;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.92), rgba(244, 63, 94, 0.92));
    box-shadow: 0 12px 24px rgba(249, 115, 22, 0.22);
}

.kicker {
    color: #9a3412;
    background: #ffedd5;
    box-shadow: none;
}

.hero-content h1,
.page-hero h1,
.category-hero h1,
.detail-intro h1 {
    margin: 18px 0;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-content p,
.page-hero p,
.category-hero p,
.detail-intro p {
    margin: 0;
    max-width: 680px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.85;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 22px;
}

.tag {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    color: #9a3412;
    font-size: 12px;
    font-weight: 800;
    background: #ffedd5;
    border: 1px solid #fed7aa;
}

.hero-tags .tag {
    color: white;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
}

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

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

.primary-btn {
    color: white;
    background: linear-gradient(90deg, var(--orange), var(--rose));
    box-shadow: 0 16px 30px rgba(249, 115, 22, 0.36);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover,
.text-btn:hover {
    transform: translateY(-2px);
}

.ghost-btn {
    color: white;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.text-btn {
    color: #fed7aa;
    padding-inline: 10px;
}

.hero-poster {
    position: relative;
    display: block;
    border-radius: 30px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transform: rotate(2deg);
}

.hero-poster img,
.detail-poster img,
.movie-cover img,
.horizontal-cover img,
.category-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #fed7aa, #fb7185);
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.92);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.play-mark.big {
    width: 72px;
    height: 72px;
    font-size: 25px;
    opacity: 1;
}

.play-mark.small {
    width: 42px;
    height: 42px;
}

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

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 30px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 18px;
    transform: translateX(-50%);
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-prev,
.hero-next,
.hero-dot {
    border: 0;
    color: white;
    background: rgba(255, 255, 255, 0.14);
}

.hero-prev,
.hero-next {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    font-size: 30px;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
}

.hero-dot.active {
    width: 28px;
    background: linear-gradient(90deg, var(--orange), var(--rose));
}

.content-section {
    padding: 62px 0;
}

.soft-bg {
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.7), rgba(255, 241, 242, 0.78));
}

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

.section-head h2,
.rank-title h2,
.detail-article h2,
.detail-side h2 {
    margin: 10px 0 8px;
    color: #111827;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.section-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.75;
}

.section-link {
    color: #9a3412;
    background: #ffedd5;
    white-space: nowrap;
}

.search-panel {
    margin: 0 0 28px;
    padding: 18px;
    border: 1px solid #fed7aa;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.home-search {
    position: relative;
    z-index: 10;
    margin-top: -42px;
}

.search-label {
    display: block;
    margin-bottom: 10px;
    color: #9a3412;
    font-weight: 900;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #fed7aa;
}

.search-box span {
    color: var(--orange);
    font-size: 22px;
}

.site-search {
    width: 100%;
    border: 0;
    outline: 0;
    color: #1f2937;
    background: transparent;
}

.quick-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.quick-filter button {
    border: 0;
    border-radius: 999px;
    padding: 8px 13px;
    color: #9a3412;
    font-weight: 800;
    background: #ffedd5;
    transition: background 0.2s ease, color 0.2s ease;
}

.quick-filter button:hover,
.quick-filter button.active {
    color: white;
    background: linear-gradient(90deg, var(--orange), var(--rose));
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(254, 215, 170, 0.86);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
    transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: var(--shadow);
}

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

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #fed7aa, #fb7185);
}

.movie-cover img {
    transition: transform 0.45s ease;
}

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

.cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 28%, rgba(0, 0, 0, 0.64));
    opacity: 0;
    transition: opacity 0.25s ease;
}

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

.movie-type,
.movie-quality,
.rank-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.68);
    backdrop-filter: blur(6px);
}

.movie-type {
    left: 10px;
    top: 10px;
}

.movie-quality {
    right: 10px;
    bottom: 10px;
    background: rgba(249, 115, 22, 0.92);
}

.rank-badge {
    right: 10px;
    top: 10px;
    color: #7c2d12;
    background: #fef3c7;
}

.movie-body {
    padding: 16px;
}

.movie-body h3 {
    margin: 0 0 8px;
    color: #111827;
    font-size: 18px;
    line-height: 1.32;
    letter-spacing: -0.02em;
}

.movie-body h3 a:hover,
.horizontal-body h3 a:hover {
    color: var(--orange);
}

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

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
}

.movie-meta span {
    border-radius: 999px;
    padding: 4px 9px;
    background: #fff7ed;
}

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

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

.category-card {
    display: grid;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(254, 215, 170, 0.86);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-thumbs {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: repeat(2, 84px);
    gap: 8px;
    overflow: hidden;
    border-radius: 18px;
}

.category-thumbs img:first-child {
    grid-row: 1 / span 2;
}

.category-info h3 {
    margin: 9px 0 7px;
    font-size: 22px;
    letter-spacing: -0.03em;
}

.category-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 14px;
}

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

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 20px;
    border: 1px solid rgba(254, 215, 170, 0.9);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-soft);
}

.rank-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.rank-title a {
    color: var(--orange);
    font-weight: 900;
}

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

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

.horizontal-card {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 14px;
    overflow: hidden;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(254, 215, 170, 0.72);
    box-shadow: 0 8px 20px rgba(124, 45, 18, 0.08);
}

.horizontal-cover {
    position: relative;
    overflow: hidden;
    min-height: 96px;
    background: linear-gradient(135deg, #fed7aa, #fb7185);
}

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

.horizontal-body {
    padding: 12px 12px 12px 0;
    min-width: 0;
}

.horizontal-body h3 {
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0 0 7px;
    font-size: 16px;
    line-height: 1.35;
}

.horizontal-body h3 a {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.horizontal-body p {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.list-rank {
    flex: 0 0 auto;
    min-width: 30px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    font-size: 12px;
    background: linear-gradient(135deg, var(--orange), var(--rose));
}

.page-hero,
.category-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    color: white;
    background: linear-gradient(135deg, var(--orange), var(--rose) 52%, var(--amber));
}

.page-hero {
    padding: 86px 0 78px;
}

.page-hero::before,
.category-hero::before {
    content: "";
    position: absolute;
    inset: -30% -10% auto auto;
    width: 460px;
    height: 460px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    filter: blur(2px);
}

.page-hero-inner {
    position: relative;
    z-index: 1;
}

.category-hero {
    min-height: 430px;
    display: flex;
    align-items: center;
}

.category-hero > img,
.category-hero-shade,
.detail-bg,
.detail-bg-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-hero > img,
.detail-bg {
    object-fit: cover;
    filter: saturate(1.08);
}

.category-hero-shade,
.detail-bg-shade {
    background:
        linear-gradient(90deg, rgba(17, 24, 39, 0.92), rgba(17, 24, 39, 0.62), rgba(249, 115, 22, 0.32)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.68));
}

.category-hero-content {
    position: relative;
    z-index: 1;
}

.detail-hero {
    min-height: 640px;
    padding: 38px 0 58px;
    background: #111827;
}

.detail-hero-inner {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
    margin-bottom: 28px;
}

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

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

.detail-poster {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #fed7aa, #fb7185);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.detail-intro p {
    color: rgba(255, 255, 255, 0.84);
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.detail-meta-grid span {
    display: grid;
    gap: 5px;
    padding: 14px;
    border-radius: 18px;
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
}

.detail-meta-grid b {
    color: #fed7aa;
    font-size: 12px;
}

.detail-tags .tag {
    color: white;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.16);
}

.player-section {
    margin-top: -80px;
    position: relative;
    z-index: 3;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    background: #000000;
    box-shadow: 0 30px 80px rgba(17, 24, 39, 0.34);
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.site-video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: white;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.58));
    cursor: pointer;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 30px;
    background: linear-gradient(135deg, var(--orange), var(--rose));
    box-shadow: 0 20px 42px rgba(249, 115, 22, 0.35);
}

.player-box.playing .player-overlay {
    display: none;
}

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

.detail-article,
.detail-side {
    padding: 28px;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(254, 215, 170, 0.86);
    box-shadow: var(--shadow-soft);
}

.detail-article p {
    color: #4b5563;
    font-size: 17px;
    line-height: 1.95;
    margin: 0 0 22px;
}

.sub-kicker {
    margin-top: 12px;
}

.detail-side dl {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px 14px;
    margin: 0;
}

.detail-side dt {
    color: #9a3412;
    font-weight: 900;
}

.detail-side dd {
    margin: 0;
    color: #4b5563;
}

.detail-nav-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.detail-nav-links a {
    padding: 16px 18px;
    border-radius: 18px;
    color: #9a3412;
    font-weight: 900;
    background: #ffedd5;
}

.detail-nav-links a:hover {
    color: white;
    background: linear-gradient(90deg, var(--orange), var(--rose));
}

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

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
}

.footer-brand {
    font-size: 22px;
}

.footer-inner p {
    max-width: 430px;
    color: #9ca3af;
    line-height: 1.75;
}

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

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

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 26px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: #9ca3af;
    font-size: 14px;
}

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

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

    .two-col-layout,
    .detail-content {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }
}

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

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .hero-carousel {
        min-height: 760px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 58px 0 112px;
    }

    .hero-poster {
        width: min(300px, 72vw);
        margin: 0 auto;
        order: -1;
    }

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

    .detail-poster {
        width: min(300px, 76vw);
    }

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

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

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

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

@media (max-width: 620px) {
    .brand {
        font-size: 18px;
    }

    .movie-grid,
    .compact-grid,
    .library-grid,
    .ranking-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .horizontal-card {
        grid-template-columns: 110px minmax(0, 1fr);
    }

    .hero-content h1,
    .page-hero h1,
    .category-hero h1,
    .detail-intro h1 {
        font-size: 36px;
    }

    .detail-meta-grid,
    .detail-nav-links {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 44px 0;
    }

    .player-section {
        margin-top: -44px;
    }
}
