:root {
    color-scheme: light;
    --amber-50: #fff7ed;
    --amber-100: #ffedd5;
    --amber-200: #fed7aa;
    --amber-300: #fdba74;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-800: #92400e;
    --amber-900: #78350f;
    --stone-50: #fafaf9;
    --stone-100: #f5f5f4;
    --stone-200: #e7e5e4;
    --stone-500: #78716c;
    --stone-700: #44403c;
    --stone-900: #1c1917;
    --text: #1f2937;
    --muted: #6b7280;
    --white: #ffffff;
    --shadow-sm: 0 4px 14px rgba(120, 53, 15, 0.08);
    --shadow-md: 0 12px 32px rgba(120, 53, 15, 0.14);
    --shadow-lg: 0 24px 70px rgba(120, 53, 15, 0.22);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 34rem),
        linear-gradient(135deg, #fff7ed 0%, #fffaf4 44%, #fef2f2 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

main {
    padding-top: 72px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    color: #fff7ed;
    background: linear-gradient(90deg, rgba(146, 64, 14, 0.86), rgba(194, 65, 12, 0.86));
    border-bottom: 1px solid rgba(254, 215, 170, 0.22);
    backdrop-filter: blur(14px);
    transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.97), rgba(154, 52, 18, 0.97));
    box-shadow: 0 12px 40px rgba(80, 30, 8, 0.25);
}

.nav-shell {
    width: min(var(--max), calc(100% - 32px));
    height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    flex: 0 0 auto;
    color: #78350f;
    background: linear-gradient(135deg, #fde68a, #f59e0b);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(245, 158, 11, 0.35);
}

.brand-text {
    max-width: 13em;
    overflow: hidden;
    color: #fff7ed;
    font-size: 18px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.nav-link {
    padding: 10px 14px;
    color: rgba(255, 247, 237, 0.86);
    font-size: 15px;
    font-weight: 700;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.nav-search {
    position: relative;
    display: flex;
    width: 260px;
    overflow: hidden;
    border: 1px solid rgba(254, 215, 170, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.nav-search input,
.mobile-search input {
    width: 100%;
    min-width: 0;
    color: #fff;
    border: 0;
    outline: none;
    background: transparent;
}

.nav-search input {
    padding: 10px 78px 10px 16px;
}

.nav-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(255, 237, 213, 0.72);
}

.nav-search button,
.mobile-search button {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, var(--amber-600), #ea580c);
}

.nav-search button {
    position: absolute;
    top: 4px;
    right: 4px;
    bottom: 4px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 9px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
}

.mobile-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 999px;
    background: #fff7ed;
}

.mobile-panel {
    display: none;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 14px;
    border: 1px solid rgba(254, 215, 170, 0.24);
    border-radius: 18px;
    background: rgba(120, 53, 15, 0.96);
}

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

.mobile-search {
    display: grid;
    grid-template-columns: 1fr auto;
    overflow: hidden;
    margin-bottom: 12px;
    border: 1px solid rgba(254, 215, 170, 0.34);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

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

.mobile-search button {
    padding: 0 18px;
    font-weight: 700;
}

.mobile-link {
    display: block;
    padding: 12px 14px;
    color: rgba(255, 247, 237, 0.9);
    border-radius: 12px;
    font-weight: 700;
}

.mobile-link:hover,
.mobile-link.active {
    background: rgba(255, 255, 255, 0.12);
}

.hero {
    position: relative;
    height: min(80vh, 760px);
    min-height: 560px;
    overflow: hidden;
    color: #fff;
    background: #1c1917;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.04);
    transition: opacity 0.7s ease, transform 5s ease;
    pointer-events: none;
}

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

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 24%, rgba(245, 158, 11, 0.2), transparent 23rem),
        linear-gradient(0deg, rgba(28, 25, 23, 0.88), rgba(28, 25, 23, 0.36) 52%, rgba(28, 25, 23, 0.22));
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(var(--max), calc(100% - 32px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 0 0 88px;
}

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

.hero-tags span,
.meta-pills span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 700;
}

.hero-tags span:first-child {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.98), rgba(234, 88, 12, 0.98));
    border-color: rgba(255, 255, 255, 0.18);
}

.hero h1,
.hero h2 {
    max-width: 780px;
    margin: 16px 0 12px;
    color: #fff;
    font-size: clamp(34px, 6vw, 70px);
    line-height: 1.05;
    letter-spacing: -0.045em;
    text-shadow: 0 18px 42px rgba(0, 0, 0, 0.46);
}

.hero h3 {
    max-width: 760px;
    margin: 0 0 10px;
    color: #fed7aa;
    font-size: clamp(20px, 3vw, 32px);
}

.hero p {
    max-width: 760px;
    margin: 0 0 16px;
    color: rgba(255, 247, 237, 0.88);
    font-size: 17px;
    line-height: 1.75;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

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

.btn-primary,
.btn-secondary,
.btn-soft,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--amber-600), #ea580c);
    box-shadow: 0 14px 34px rgba(217, 119, 6, 0.34);
}

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

.btn-soft,
.section-more {
    color: #92400e;
    background: #fff7ed;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-soft:hover,
.section-more:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: var(--shadow-md);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
    transition: background 0.2s ease, opacity 0.2s ease;
}

.hero-arrow:hover {
    background: rgba(0, 0, 0, 0.5);
}

.hero-prev {
    left: 28px;
}

.hero-next {
    right: 28px;
}

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

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

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

.section,
.page-section {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 68px 0;
}

.section.compact {
    padding-top: 36px;
}

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

.section-kicker {
    margin: 0 0 8px;
    color: var(--amber-600);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.detail-info h1,
.simple-page h1 {
    margin: 0;
    color: #1f2937;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-heading p,
.page-hero p,
.simple-page p {
    max-width: 760px;
    margin: 9px 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.quick-search {
    margin-top: -44px;
    position: relative;
    z-index: 4;
}

.quick-search-card {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 22px;
    border: 1px solid rgba(254, 215, 170, 0.7);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.search-wide {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
}

.search-wide input,
.filter-input,
.filter-select {
    width: 100%;
    border: 1px solid var(--stone-200);
    outline: none;
    background: #fff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.search-wide input {
    min-height: 54px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 17px;
}

.search-wide input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.search-wide button {
    min-width: 128px;
    color: #fff;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-600), #ea580c);
    font-weight: 900;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

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

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(231, 229, 228, 0.85);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(245, 158, 11, 0.55);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.movie-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #78350f, #1c1917);
}

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

.movie-card:hover img {
    filter: saturate(1.1) contrast(1.04);
    transform: scale(1.08);
}

.movie-thumb-poster {
    aspect-ratio: 3 / 4;
}

.movie-thumb-video {
    aspect-ratio: 16 / 9;
}

.movie-thumb-wide {
    width: 180px;
    min-height: 132px;
    flex: 0 0 180px;
}

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

.movie-card-body strong {
    display: -webkit-box;
    min-height: 2.7em;
    overflow: hidden;
    color: #1f2937;
    font-size: 16px;
    line-height: 1.35;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color 0.2s ease;
}

.movie-card:hover strong {
    color: var(--amber-700);
}

.movie-line {
    display: -webkit-box;
    min-height: 3.2em;
    overflow: hidden;
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.movie-meta em,
.genre-row span,
.detail-tags span {
    display: inline-flex;
    padding: 4px 8px;
    color: var(--stone-700);
    border-radius: 999px;
    background: var(--stone-100);
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
}

.movie-type,
.movie-region,
.movie-year {
    position: absolute;
    z-index: 2;
    color: #fff;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.92);
    backdrop-filter: blur(8px);
    font-size: 12px;
    font-weight: 800;
}

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

.movie-region {
    top: 10px;
    left: 80px;
    padding: 5px 9px;
    background: rgba(37, 99, 235, 0.88);
}

.movie-year {
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    background: rgba(0, 0, 0, 0.72);
}

.hover-play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    color: #fff;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.65);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card-large .movie-card-body strong {
    min-height: auto;
    font-size: 20px;
}

.movie-card-horizontal {
    display: flex;
    min-height: 132px;
}

.movie-card-horizontal .movie-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

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

.category-card {
    position: relative;
    overflow: hidden;
    min-height: 210px;
    padding: 24px;
    color: #fff7ed;
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(120, 53, 15, 0.96), rgba(217, 119, 6, 0.88)),
        var(--category-image, none) center / cover;
    box-shadow: var(--shadow-md);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.category-card::after {
    position: absolute;
    right: -36px;
    bottom: -36px;
    width: 120px;
    height: 120px;
    content: "";
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
}

.category-card h2,
.category-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 10px;
    font-size: 24px;
}

.category-card p,
.category-card span {
    position: relative;
    z-index: 1;
    color: rgba(255, 247, 237, 0.84);
    line-height: 1.7;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 64px 132px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 14px;
    border: 1px solid rgba(231, 229, 228, 0.85);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.rank-number {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #fff;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--amber-600), #ea580c);
    font-weight: 900;
}

.rank-poster {
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: #1c1917;
}

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

.rank-info h2,
.rank-info h3 {
    margin: 0 0 6px;
    font-size: 19px;
}

.rank-info p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.page-hero,
.simple-page {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 74px 0 34px;
}

.page-hero-card,
.simple-card,
.filter-panel,
.player-card,
.info-card {
    border: 1px solid rgba(231, 229, 228, 0.86);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
}

.page-hero-card,
.simple-card {
    padding: clamp(26px, 5vw, 48px);
}

.filter-panel {
    padding: 18px;
    margin-bottom: 26px;
}

.filter-controls {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 12px;
}

.filter-input,
.filter-select {
    min-height: 48px;
    padding: 0 14px;
    border-radius: 14px;
}

.filter-empty {
    display: none;
    padding: 40px 20px;
    color: var(--muted);
    text-align: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.filter-empty.is-visible {
    display: block;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #1c1917;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(10px) saturate(1.08);
    opacity: 0.42;
    transform: scale(1.06);
}

.detail-hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(28, 25, 23, 0.94), rgba(28, 25, 23, 0.54));
}

.detail-shell {
    position: relative;
    z-index: 1;
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 34px;
    align-items: end;
    padding: 54px 0 46px;
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 3 / 4;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 24px;
    background: #1c1917;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: rgba(255, 237, 213, 0.82);
    font-size: 14px;
}

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

.detail-info h1 {
    color: #fff;
    text-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
}

.detail-info .lead {
    max-width: 780px;
    color: #fed7aa;
    font-size: 19px;
    line-height: 1.75;
}

.watch-layout {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
    padding: 42px 0 70px;
}

.player-card,
.info-card {
    padding: 22px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    background: #000;
}

.video-shell video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    border: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.1));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-overlay span {
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    padding-left: 5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--amber-600), #ea580c);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.38);
    font-size: 32px;
}

.player-card h2,
.info-card h2,
.related-section h2 {
    margin: 28px 0 12px;
    color: #1f2937;
    font-size: 24px;
}

.player-card p,
.info-card p {
    margin: 0 0 12px;
    color: #4b5563;
    line-height: 1.9;
}

.info-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.info-list div {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--stone-200);
}

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

.info-list dd {
    margin: 0;
    color: #1f2937;
    font-weight: 700;
}

.related-section {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 78px;
}

.simple-page {
    padding-bottom: 76px;
}

.simple-card h2 {
    margin: 28px 0 10px;
    color: #1f2937;
}

.simple-card ul {
    margin: 16px 0 0;
    padding-left: 20px;
    color: #4b5563;
    line-height: 1.9;
}

.sitemap-columns {
    columns: 4 220px;
    column-gap: 28px;
    margin-top: 22px;
}

.sitemap-columns a {
    display: block;
    break-inside: avoid;
    margin: 0 0 9px;
    color: #92400e;
    line-height: 1.5;
}

.site-footer {
    color: rgba(255, 237, 213, 0.84);
    background: linear-gradient(180deg, #78350f, #1c1917);
}

.footer-shell {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 28px;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 32px;
}

.brand-footer .brand-text {
    white-space: normal;
}

.footer-brand p {
    max-width: 360px;
    line-height: 1.8;
}

.footer-column h2 {
    margin: 0 0 14px;
    color: #fff7ed;
    font-size: 18px;
}

.footer-column a {
    display: block;
    margin: 9px 0;
    color: rgba(255, 237, 213, 0.78);
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(254, 215, 170, 0.18);
    font-size: 14px;
}

.footer-bottom p {
    margin: 0;
}

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

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

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

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

@media (max-width: 900px) {
    main {
        padding-top: 66px;
    }

    .nav-shell {
        height: 66px;
    }

    .desktop-nav,
    .nav-search {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .brand-text {
        max-width: 12em;
        font-size: 16px;
    }

    .hero {
        min-height: 620px;
    }

    .hero-arrow {
        display: none;
    }

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

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

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

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

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

    .detail-shell {
        grid-template-columns: 180px 1fr;
    }

    .rank-item {
        grid-template-columns: 52px 100px 1fr;
    }

    .rank-item .btn-soft {
        grid-column: 2 / -1;
        width: max-content;
    }

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

@media (max-width: 640px) {
    .brand-text {
        max-width: 10em;
    }

    .hero {
        height: auto;
        min-height: 620px;
    }

    .hero-content {
        padding-bottom: 78px;
    }

    .quick-search-card {
        padding: 16px;
    }

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

    .search-wide button {
        min-height: 48px;
    }

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

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

    .movie-card-horizontal {
        display: block;
    }

    .movie-thumb-wide {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

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

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

    .detail-poster {
        width: 190px;
    }

    .rank-item {
        grid-template-columns: 44px 1fr;
        align-items: start;
    }

    .rank-poster {
        grid-column: 1 / -1;
    }

    .rank-item .btn-soft {
        grid-column: 1 / -1;
    }

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

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}
