:root {
    --color-bg: #fff7ed;
    --color-bg-soft: #fffbeb;
    --color-ink: #1f1307;
    --color-muted: #7c5a34;
    --color-amber: #d97706;
    --color-orange: #ea580c;
    --color-red: #b91c1c;
    --color-card: rgba(255, 255, 255, 0.86);
    --shadow-soft: 0 20px 60px rgba(120, 53, 15, 0.16);
    --shadow-card: 0 16px 36px rgba(120, 53, 15, 0.16);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --header-height: 76px;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-ink);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.26), transparent 32rem),
        linear-gradient(135deg, #fffbeb 0%, #fff7ed 46%, #fee2e2 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

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

button,
input {
    font: inherit;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    color: #fff7ed;
    background: linear-gradient(90deg, rgba(120, 53, 15, 0.98), rgba(154, 52, 18, 0.98), rgba(127, 29, 29, 0.98));
    box-shadow: 0 18px 40px rgba(67, 20, 7, 0.28);
    backdrop-filter: blur(18px);
}

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

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #7c2d12;
    background: linear-gradient(135deg, #fde68a, #fb923c);
    box-shadow: 0 12px 26px rgba(251, 146, 60, 0.32);
    font-size: 15px;
}

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

.nav-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(254, 243, 199, 0.86);
    font-weight: 700;
    transition: 0.24s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.header-search {
    position: relative;
    display: flex;
    align-items: center;
}

.header-search input {
    width: 240px;
    border: 1px solid rgba(253, 230, 138, 0.36);
    border-radius: 999px;
    padding: 11px 44px 11px 18px;
    color: #fff;
    outline: none;
    background: rgba(255, 255, 255, 0.14);
    transition: 0.24s ease;
}

.header-search input::placeholder,
.mobile-search input::placeholder {
    color: rgba(254, 243, 199, 0.72);
}

.header-search input:focus {
    width: 285px;
    border-color: rgba(253, 230, 138, 0.78);
    background: rgba(255, 255, 255, 0.22);
}

.header-search button {
    position: absolute;
    right: 7px;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 50%;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.mobile-menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
}

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

.mobile-search {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-search input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(253, 230, 138, 0.36);
    border-radius: 999px;
    padding: 11px 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
}

.mobile-search button,
.search-main-row button {
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    color: #7c2d12;
    font-weight: 800;
    background: linear-gradient(135deg, #fde68a, #fb923c);
    cursor: pointer;
}

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

.mobile-panel nav a {
    padding: 12px 14px;
    border-radius: 14px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.1);
    font-weight: 700;
}

main {
    padding-top: var(--header-height);
}

.hero-carousel {
    position: relative;
    min-height: clamp(620px, 84vh, 860px);
    overflow: hidden;
    background: #1c1208;
}

.hero-stage,
.hero-slide,
.hero-background,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-background {
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) saturate(1.08);
}

.hero-overlay {
    background:
        radial-gradient(circle at 80% 42%, rgba(251, 146, 60, 0.2), transparent 24rem),
        linear-gradient(90deg, rgba(28, 18, 8, 0.94) 0%, rgba(67, 20, 7, 0.72) 48%, rgba(67, 20, 7, 0.34) 100%),
        linear-gradient(0deg, rgba(28, 18, 8, 0.95), rgba(28, 18, 8, 0.08) 54%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: clamp(620px, 84vh, 860px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 390px);
    align-items: center;
    gap: clamp(30px, 6vw, 80px);
    padding: 60px 0 92px;
}

.hero-copy {
    color: #fff7ed;
    max-width: 760px;
}

.hero-kicker,
.movie-meta,
.detail-facts,
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-kicker span,
.hero-kicker a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 800;
}

.hero-kicker span:first-child {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.92), rgba(234, 88, 12, 0.92));
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(38px, 6vw, 78px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.04em;
    text-shadow: 0 18px 48px rgba(0, 0, 0, 0.55);
}

.hero-one-line {
    margin: 0 0 16px;
    color: #fde68a;
    font-size: clamp(18px, 2.4vw, 26px);
    font-weight: 800;
    line-height: 1.35;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.48);
}

.hero-summary {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 251, 235, 0.82);
    font-size: 17px;
    line-height: 1.9;
}

.hero-tags,
.detail-tags,
.movie-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags a,
.tag-chip,
.movie-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 11px;
    color: #92400e;
    background: #fef3c7;
    font-size: 13px;
    font-weight: 800;
}

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

.primary-button,
.ghost-button,
.inline-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.25s ease;
}

.primary-button {
    min-height: 50px;
    padding: 0 28px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
    box-shadow: 0 20px 38px rgba(234, 88, 12, 0.34);
}

.primary-button:hover,
.inline-button:hover,
.section-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 44px rgba(234, 88, 12, 0.28);
}

.ghost-button {
    min-height: 50px;
    padding: 0 24px;
    color: #fff7ed;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.hero-poster {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 36px 80px rgba(0, 0, 0, 0.46);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    border-radius: 18px;
    padding: 12px 14px;
    color: #fff;
    background: rgba(28, 18, 8, 0.72);
    backdrop-filter: blur(14px);
    font-weight: 900;
    text-align: center;
}

.hero-control {
    position: absolute;
    z-index: 3;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: rgba(0, 0, 0, 0.36);
    backdrop-filter: blur(10px);
    font-size: 36px;
    cursor: pointer;
    opacity: 0;
    transition: 0.2s ease;
}

.hero-carousel:hover .hero-control {
    opacity: 1;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dot {
    width: 11px;
    height: 11px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.46);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 34px;
    border-radius: 999px;
    background: #fbbf24;
}

.quick-search-panel,
.content-section {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.quick-search-panel {
    position: relative;
    z-index: 5;
    margin-top: -54px;
}

.quick-search-inner,
.filter-panel,
.detail-content,
.category-card-large,
.category-tile {
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.quick-search-inner {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 28px;
    align-items: center;
    padding: 28px;
}

.quick-search-inner h2,
.section-heading h2,
.page-hero h1,
.detail-content h1,
.detail-content h2 {
    margin: 0;
    color: #1f1307;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.quick-search-inner h2 {
    margin-top: 6px;
    font-size: clamp(26px, 3vw, 38px);
}

.quick-search-inner p,
.page-hero p,
.category-card-content p,
.category-tile p,
.detail-content p,
.movie-card-body p {
    color: var(--color-muted);
    line-height: 1.75;
}

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

.large-search input,
.filter-search-row input {
    flex: 1;
    min-width: 0;
    border: 1px solid rgba(217, 119, 6, 0.22);
    border-radius: 999px;
    padding: 15px 18px;
    color: var(--color-ink);
    outline: none;
    background: #fff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.large-search button,
.inline-button {
    border: 0;
    border-radius: 999px;
    padding: 0 24px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
    cursor: pointer;
}

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

.warm-section {
    width: 100%;
    padding-left: max(16px, calc((100% - 1180px) / 2));
    padding-right: max(16px, calc((100% - 1180px) / 2));
    background: linear-gradient(180deg, rgba(255, 251, 235, 0.16), rgba(254, 243, 199, 0.42), rgba(255, 247, 237, 0));
}

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

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    color: #92400e;
    background: #fef3c7;
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-heading h2 {
    margin-top: 8px;
    font-size: clamp(28px, 3vw, 42px);
}

.section-link,
.inline-button {
    min-height: 42px;
    padding: 0 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
}

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

.movie-card {
    position: relative;
    min-width: 0;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-card);
    box-shadow: var(--shadow-card);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 54px rgba(120, 53, 15, 0.22);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: linear-gradient(135deg, #451a03, #92400e);
}

.poster-link img,
.category-cover img,
.category-card-poster img,
.detail-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img,
.category-tile:hover .category-cover img,
.category-card-large:hover .category-card-poster img {
    transform: scale(1.06);
}

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(0deg, rgba(28, 18, 8, 0.88), transparent);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #fff;
    font-size: 18px;
    font-weight: 950;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    box-shadow: 0 12px 24px rgba(239, 68, 68, 0.26);
}

.movie-card-body {
    padding: 16px;
}

.movie-meta {
    margin-bottom: 8px;
    color: #a16207;
    font-size: 12px;
    font-weight: 900;
}

.movie-meta span,
.movie-meta a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(254, 243, 199, 0.88);
}

.movie-card h3 {
    margin: 0 0 8px;
    color: #1f1307;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 950;
}

.movie-card-body p {
    min-height: 48px;
    margin: 0 0 12px;
    font-size: 14px;
}

.movie-tags span {
    padding: 5px 8px;
    font-size: 12px;
}

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

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

.movie-card-rank .poster-link {
    aspect-ratio: 3 / 4;
}

.movie-card-rank .movie-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-grid,
.category-list-grid {
    display: grid;
    gap: 24px;
}

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

.category-tile {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 18px;
    padding: 16px;
}

.category-cover,
.category-card-poster {
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #451a03, #92400e);
}

.category-cover {
    aspect-ratio: 3 / 4;
}

.category-tile h3,
.category-card-content h2 {
    margin: 0 0 8px;
    color: #1f1307;
    font-weight: 950;
}

.category-tile h3 {
    font-size: 22px;
}

.category-samples,
.category-preview-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.category-samples a,
.category-preview-links a {
    display: inline-flex;
    max-width: 100%;
    border-radius: 999px;
    padding: 6px 10px;
    color: #92400e;
    background: #fef3c7;
    font-size: 12px;
    font-weight: 800;
}

.page-shell {
    padding-top: calc(var(--header-height) + 36px);
}

.page-hero {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    border-radius: 34px;
    padding: clamp(34px, 6vw, 72px);
    color: #fff7ed;
    background:
        radial-gradient(circle at right top, rgba(251, 191, 36, 0.28), transparent 26rem),
        linear-gradient(135deg, #78350f, #9a3412 55%, #7f1d1d);
    box-shadow: 0 28px 70px rgba(120, 53, 15, 0.24);
}

.page-hero h1 {
    margin-top: 12px;
    color: #fff7ed;
    font-size: clamp(36px, 5vw, 64px);
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 251, 235, 0.84);
    font-size: 18px;
}

.breadcrumb {
    margin-top: 20px;
    color: rgba(255, 251, 235, 0.82);
    font-weight: 800;
}

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

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

.category-card-large {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    padding: 18px;
}

.category-card-poster {
    aspect-ratio: 3 / 4;
}

.category-card-content span {
    color: #d97706;
    font-size: 13px;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.category-card-content h2 {
    margin-top: 6px;
    font-size: 30px;
}

.category-card-content .inline-button {
    margin-top: 18px;
}

.filter-panel {
    padding: 24px;
}

.filter-search-row {
    margin-bottom: 18px;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.filter-buttons button {
    border: 0;
    border-radius: 999px;
    padding: 9px 14px;
    color: #92400e;
    background: #fef3c7;
    font-weight: 850;
    cursor: pointer;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--color-amber), var(--color-orange));
}

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

.search-movie-grid .movie-card h3,
.category-movie-grid .movie-card h3 {
    font-size: 17px;
}

.search-movie-grid .movie-card-body,
.category-movie-grid .movie-card-body {
    padding: 14px;
}

.search-movie-grid .movie-tags span,
.category-movie-grid .movie-tags span {
    display: none;
}

.detail-page-shell {
    padding-top: var(--header-height);
}

.detail-hero {
    color: #fff7ed;
    background:
        radial-gradient(circle at 80% 20%, rgba(251, 146, 60, 0.26), transparent 26rem),
        linear-gradient(135deg, #1c1208, #78350f 62%, #7f1d1d);
    padding: 40px max(16px, calc((100% - 1180px) / 2)) 56px;
}

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

.player-card {
    min-width: 0;
    border-radius: 32px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 30px 72px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(14px);
}

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

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    cursor: pointer;
}

.player-layer {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle, rgba(251, 191, 36, 0.22), transparent 13rem),
        linear-gradient(0deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.18));
    cursor: pointer;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-button {
    width: 86px;
    height: 86px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #d97706, #ea580c);
    box-shadow: 0 24px 56px rgba(234, 88, 12, 0.48);
    cursor: pointer;
    transition: transform 0.22s ease;
}

.play-button:hover {
    transform: scale(1.08);
}

.play-button span {
    display: inline-block;
    margin-left: 5px;
    font-size: 34px;
}

.detail-side {
    display: grid;
    gap: 16px;
    align-content: start;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    border-radius: 28px;
    box-shadow: 0 26px 62px rgba(0, 0, 0, 0.38);
}

.detail-facts span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.14);
    font-size: 13px;
    font-weight: 900;
}

.detail-content-section {
    padding-top: 48px;
}

.detail-content {
    padding: clamp(24px, 4vw, 42px);
}

.detail-title-row {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.detail-content h1 {
    margin-top: 10px;
    font-size: clamp(32px, 5vw, 56px);
}

.detail-one-line {
    margin: 0 0 18px;
    color: #92400e;
    font-size: 20px;
    font-weight: 900;
}

.detail-tags {
    margin-bottom: 24px;
}

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

.detail-meta-grid div {
    border-radius: 18px;
    padding: 16px;
    background: #fff7ed;
}

.detail-meta-grid span {
    display: block;
    margin-bottom: 8px;
    color: #a16207;
    font-size: 13px;
    font-weight: 950;
}

.detail-meta-grid strong {
    color: #1f1307;
    font-size: 16px;
}

.detail-content h2 {
    margin-top: 30px;
    margin-bottom: 12px;
    font-size: 26px;
}

.detail-content p {
    font-size: 17px;
}

.related-section {
    padding-top: 26px;
}

.site-footer {
    color: #fde68a;
    background: linear-gradient(180deg, #78350f, #1c1208);
    margin-top: 40px;
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(160px, 0.5fr));
    gap: 36px;
    padding: 52px 0 34px;
}

.footer-logo {
    color: #fff7ed;
}

.footer-brand p {
    max-width: 420px;
    color: rgba(254, 243, 199, 0.76);
    line-height: 1.8;
}

.footer-col {
    display: grid;
    align-content: start;
    gap: 10px;
}

.footer-col h2 {
    margin: 0 0 6px;
    color: #fff7ed;
    font-size: 18px;
    font-weight: 950;
}

.footer-col a {
    color: rgba(254, 243, 199, 0.78);
    font-weight: 700;
}

.footer-col a:hover {
    color: #fff7ed;
}

.footer-bottom {
    border-top: 1px solid rgba(253, 230, 138, 0.16);
    padding: 18px 16px;
    color: rgba(254, 243, 199, 0.62);
    text-align: center;
}

[data-card].is-hidden {
    display: none;
}

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

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

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

    .hero-content {
        grid-template-columns: minmax(0, 1fr) 300px;
    }
}

@media (max-width: 820px) {
    :root {
        --header-height: 66px;
    }

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

    .mobile-menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .site-logo {
        font-size: 19px;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 28px;
        padding-top: 34px;
    }

    .hero-poster {
        width: min(240px, 62vw);
        margin: 0 auto;
    }

    .hero-control {
        opacity: 1;
        width: 44px;
        height: 44px;
        font-size: 28px;
    }

    .quick-search-inner,
    .category-card-large,
    .detail-layout,
    .detail-title-row,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .large-search,
    .filter-search-row {
        flex-direction: column;
    }

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

    .movie-card-rank {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .detail-side {
        grid-template-columns: 150px minmax(0, 1fr);
        align-items: center;
    }

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

@media (max-width: 560px) {
    .header-inner {
        width: calc(100% - 24px);
    }

    .logo-mark {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .hero-carousel,
    .hero-content {
        min-height: 720px;
    }

    .hero-copy h1 {
        font-size: 36px;
    }

    .hero-summary {
        display: none;
    }

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

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

    .movie-grid,
    .search-movie-grid,
    .category-movie-grid,
    .category-grid,
    .category-list-grid,
    .ranking-grid {
        grid-template-columns: 1fr;
    }

    .category-tile,
    .movie-card-rank {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .category-card-large {
        padding: 14px;
    }

    .category-card-poster {
        max-width: 220px;
    }

    .page-hero {
        border-radius: 24px;
        padding: 28px;
    }

    .filter-panel {
        padding: 16px;
    }

    .detail-hero {
        padding-top: 28px;
    }

    .player-card {
        border-radius: 22px;
        padding: 6px;
    }

    .video-frame {
        border-radius: 18px;
    }

    .play-button {
        width: 70px;
        height: 70px;
    }

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

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

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