:root {
    color-scheme: light;
    --bg: #fff7ed;
    --bg-soft: #fff1f2;
    --text: #111827;
    --muted: #6b7280;
    --line: #fed7aa;
    --amber: #f59e0b;
    --orange: #ea580c;
    --rose: #f43f5e;
    --card: rgba(255, 255, 255, 0.88);
    --shadow: 0 24px 60px rgba(124, 45, 18, 0.16);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(251, 191, 36, 0.24), transparent 28rem),
        radial-gradient(circle at 90% 8%, rgba(244, 63, 94, 0.16), transparent 26rem),
        linear-gradient(135deg, #fff7ed 0%, #fff1f2 58%, #fff7ed 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(251, 146, 60, 0.32);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 10px 30px rgba(124, 45, 18, 0.08);
    backdrop-filter: blur(18px);
}

.site-header__inner {
    width: min(1180px, calc(100% - 32px));
    min-height: 72px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 14px 26px rgba(234, 88, 12, 0.25);
}

.brand__text {
    display: grid;
    gap: 1px;
}

.brand strong {
    font-size: 24px;
    line-height: 1.05;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #b45309, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
    white-space: nowrap;
    font-size: 15px;
    color: #374151;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
    display: none;
}

.site-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
    color: var(--orange);
    transform: translateY(-1px);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 14px;
    color: #374151;
    background: #fff7ed;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    border-top: 1px solid rgba(251, 146, 60, 0.26);
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    color: #374151;
}

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

.hero-carousel {
    width: min(1180px, calc(100% - 32px));
    margin: 34px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
}

.hero-carousel__main {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: 34px;
    background: linear-gradient(135deg, #fbbf24, #fb923c 48%, #f43f5e);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    align-items: center;
    gap: 32px;
    padding: 58px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-size: cover;
    background-position: center;
    filter: blur(32px) saturate(1.3);
    opacity: 0.34;
    transform: scale(1.12);
}

.hero-slide__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(124, 45, 18, 0.74), rgba(124, 45, 18, 0.22)),
        linear-gradient(135deg, rgba(245, 158, 11, 0.62), rgba(244, 63, 94, 0.46));
}

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

.hero-slide__content,
.hero-slide__poster {
    position: relative;
    z-index: 2;
}

.eyebrow,
.section-heading p,
.page-hero p,
.side-title span {
    margin: 0;
    color: #c2410c;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.hero-slide .eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.hero-slide h1 {
    max-width: 680px;
    margin: 18px 0 18px;
    color: #fff;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero-slide p {
    max-width: 640px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.75;
}

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

.hero-tags {
    margin-top: 24px;
}

.hero-tags span,
.detail-tags span,
.movie-card__tags span,
.inline-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 700;
}

.movie-card__tags span,
.inline-tags span {
    border-color: #fed7aa;
    color: #c2410c;
    background: #fff7ed;
}

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

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

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

.button--light {
    color: #c2410c;
    background: #fff;
    box-shadow: 0 18px 36px rgba(124, 45, 18, 0.18);
}

.button--glass {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

.button--soft {
    color: #c2410c;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.hero-slide__poster {
    display: block;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.34);
    transform: rotate(2deg);
}

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

.hero-slide__poster span,
.detail-poster span,
.movie-card__play {
    position: absolute;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
    box-shadow: 0 14px 28px rgba(244, 63, 94, 0.28);
}

.hero-slide__poster span {
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 999px;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 58px;
    bottom: 42px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-arrow,
.hero-dot {
    border: 0;
    cursor: pointer;
}

.hero-arrow {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    font-size: 28px;
    line-height: 1;
}

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

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

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

.hero-carousel__side {
    display: grid;
    gap: 14px;
}

.side-title,
.hero-mini-card,
.ranking-panel,
.content-card,
.player-card,
.filter-panel,
.category-panel {
    border: 1px solid rgba(251, 146, 60, 0.28);
    background: var(--card);
    box-shadow: 0 18px 42px rgba(124, 45, 18, 0.09);
    backdrop-filter: blur(14px);
}

.side-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px;
    border-radius: 22px;
}

.side-title a {
    color: var(--orange);
    font-size: 13px;
    font-weight: 800;
}

.hero-mini-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-mini-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(124, 45, 18, 0.16);
}

.hero-mini-card img {
    width: 86px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
}

.hero-mini-card span {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.hero-mini-card strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #111827;
}

.hero-mini-card em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.section-pad {
    padding: 76px 0;
}

.section-pad--topless {
    padding-top: 0;
}

.section-pad--detail {
    padding-bottom: 34px;
}

.section-heading {
    margin-bottom: 26px;
}

.section-heading--center {
    text-align: center;
}

.section-heading h2,
.page-hero h1 {
    margin: 8px 0 0;
    color: #111827;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading--light p,
.section-heading--light h2 {
    color: #fff;
}

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

.category-tile {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    border-radius: 24px;
    color: #7c2d12;
    border: 1px solid #fed7aa;
    background:
        radial-gradient(circle at top right, rgba(251, 146, 60, 0.28), transparent 52%),
        rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 36px rgba(124, 45, 18, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(124, 45, 18, 0.14);
}

.category-tile span {
    font-size: 22px;
    font-weight: 900;
}

.category-tile em {
    margin-top: 8px;
    color: #9a3412;
    font-style: normal;
    line-height: 1.55;
}

.feature-band {
    padding: 70px 0;
    background: linear-gradient(135deg, #fbbf24, #fb923c 48%, #f43f5e);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.2);
}

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

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(251, 146, 60, 0.24);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 16px 34px rgba(124, 45, 18, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 26px 56px rgba(124, 45, 18, 0.16);
}

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

.movie-card__poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #fbbf24, #f43f5e);
}

.movie-card__poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .movie-card__poster img {
    transform: scale(1.06);
}

.movie-card__play {
    left: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .movie-card__play {
    opacity: 1;
    transform: translateY(0);
}

.movie-card__score {
    position: absolute;
    right: 12px;
    top: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.56);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 800;
}

.movie-card__body {
    padding: 16px;
}

.movie-card__meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

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

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

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

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

.ranking-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
    border-radius: 26px;
}

.rank-list,
.ranking-full {
    display: grid;
    gap: 12px;
}

.rank-item {
    display: grid;
    grid-template-columns: 42px 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 247, 237, 0.75);
    transition: background 0.2s ease, transform 0.2s ease;
}

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

.rank-item__num {
    color: #c2410c;
    font-size: 20px;
    font-weight: 900;
}

.rank-item img {
    width: 54px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
}

.rank-item__body {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.rank-item strong,
.rank-item em {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-item em {
    color: var(--muted);
    font-size: 13px;
    font-style: normal;
}

.rank-item__score {
    color: #ea580c;
    font-weight: 900;
}

.page-hero {
    padding: 78px 0;
    text-align: center;
    background:
        radial-gradient(circle at 18% 18%, rgba(251, 191, 36, 0.36), transparent 28rem),
        linear-gradient(135deg, rgba(255, 247, 237, 0.92), rgba(255, 241, 242, 0.94));
    border-bottom: 1px solid rgba(251, 146, 60, 0.24);
}

.page-hero--compact,
.page-hero--search {
    padding: 58px 0;
}

.page-hero span {
    display: block;
    max-width: 720px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

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

.category-panel {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
    padding: 24px;
    border-radius: 28px;
}

.category-panel__text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
}

.category-panel__text p {
    margin: 0;
    color: #c2410c;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
}

.category-panel__text h2 {
    margin: 0;
    font-size: 32px;
}

.category-panel__text span {
    color: var(--muted);
    line-height: 1.7;
}

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

.category-panel__posters a {
    display: grid;
    gap: 8px;
}

.category-panel__posters img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 16px;
}

.category-panel__posters span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) 2fr;
    gap: 16px;
    align-items: end;
    margin-bottom: 28px;
    padding: 20px;
    border-radius: 24px;
}

.filter-panel__search {
    display: grid;
    gap: 8px;
}

.filter-panel label {
    color: #9a3412;
    font-weight: 900;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #fed7aa;
    border-radius: 14px;
    padding: 0 14px;
    outline: none;
    color: #374151;
    background: #fff;
}

.filter-panel input:focus,
.filter-panel select:focus {
    border-color: #fb923c;
    box-shadow: 0 0 0 4px rgba(251, 146, 60, 0.16);
}

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

.empty-state {
    display: none;
    margin-top: 24px;
    padding: 26px;
    border-radius: 22px;
    color: #9a3412;
    text-align: center;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

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

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

.top-card {
    position: relative;
    min-height: 390px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    padding: 22px;
    border-radius: 28px;
    color: #fff;
    box-shadow: var(--shadow);
}

.top-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.4s ease;
}

.top-card:hover img {
    transform: scale(1.06);
}

.top-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.82));
}

.top-card__badge,
.top-card strong,
.top-card em {
    position: relative;
    z-index: 2;
}

.top-card__badge {
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
    font-weight: 900;
}

.top-card strong {
    font-size: 25px;
}

.top-card em {
    margin-top: 10px;
    color: rgba(255, 255, 255, 0.84);
    font-style: normal;
    line-height: 1.6;
}

.ranking-full {
    padding: 22px;
    border: 1px solid rgba(251, 146, 60, 0.24);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.78);
}

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

.detail-backdrop {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(30px) saturate(1.2);
    opacity: 0.36;
    transform: scale(1.12);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(42, 18, 7, 0.92), rgba(42, 18, 7, 0.42)),
        linear-gradient(135deg, rgba(245, 158, 11, 0.38), rgba(244, 63, 94, 0.34));
}

.detail-hero__inner {
    position: relative;
    z-index: 2;
    padding: 38px 0 58px;
}

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

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

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

.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

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

.detail-poster span {
    right: 18px;
    bottom: 18px;
    width: 58px;
    height: 58px;
    border-radius: 999px;
}

.detail-info h1 {
    margin: 14px 0 18px;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 0.98;
    letter-spacing: -0.08em;
}

.detail-one-line {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 18px;
    line-height: 1.8;
}

.detail-meta {
    margin: 22px 0;
    color: rgba(255, 255, 255, 0.78);
}

.detail-meta span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.player-card {
    overflow: hidden;
    border-radius: 30px;
}

.player-box {
    position: relative;
    overflow: hidden;
    background: #020617;
    aspect-ratio: 16 / 9;
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: #020617;
    cursor: pointer;
}

.player-cover.is-hidden {
    display: none;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.64;
}

.player-cover__shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.16), rgba(0, 0, 0, 0.72));
}

.player-cover__button {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #f43f5e);
    box-shadow: 0 18px 44px rgba(244, 63, 94, 0.34);
    font-size: 34px;
}

.player-card__body {
    padding: 22px 26px 26px;
}

.player-card__body h2 {
    margin: 0 0 8px;
    font-size: 26px;
}

.player-card__body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
}

.content-card {
    padding: 28px;
    border-radius: 28px;
}

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

.content-card p {
    margin: 0 0 24px;
    color: #374151;
    line-height: 1.95;
}

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

.detail-side dl {
    display: grid;
    gap: 14px;
    margin: 0;
}

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

.detail-side dd {
    margin: -8px 0 0;
    color: #374151;
}

.site-footer {
    margin-top: 60px;
    border-top: 1px solid rgba(251, 146, 60, 0.28);
    background: linear-gradient(180deg, rgba(255, 237, 213, 0.82), rgba(255, 247, 237, 0.94));
}

.site-footer__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2fr;
    gap: 30px;
    padding: 42px 0;
}

.site-footer h2 {
    margin: 0 0 10px;
    color: #9a3412;
}

.site-footer p {
    max-width: 440px;
    margin: 0;
    color: #6b7280;
    line-height: 1.8;
}

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    font-size: 14px;
    font-weight: 700;
}

.back-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 45;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.26);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .hero-carousel {
        grid-template-columns: 1fr;
    }

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

    .side-title {
        grid-column: 1 / -1;
    }

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

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

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

    .split-layout,
    .detail-content,
    .site-footer__inner {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }

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

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

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

    .menu-button {
        display: block;
    }

    .brand strong {
        font-size: 20px;
    }

    .hero-carousel {
        width: min(100% - 22px, 1180px);
        margin-top: 18px;
    }

    .hero-carousel__main {
        min-height: 680px;
        border-radius: 26px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        align-content: center;
        padding: 30px 24px 90px;
    }

    .hero-slide__poster {
        width: min(230px, 70vw);
        margin: 0 auto;
    }

    .hero-controls {
        left: 24px;
        bottom: 28px;
    }

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

    .section-pad {
        padding: 48px 0;
    }

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

    .movie-card__body {
        padding: 13px;
    }

    .movie-card p {
        font-size: 13px;
    }

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

    .detail-poster {
        width: min(260px, 72vw);
    }

    .player-cover__button {
        width: 66px;
        height: 66px;
        font-size: 26px;
    }

    .rank-item {
        grid-template-columns: 34px 48px minmax(0, 1fr);
    }

    .rank-item__score {
        display: none;
    }

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

@media (max-width: 520px) {
    .container,
    .site-header__inner,
    .mobile-nav,
    .site-footer__inner {
        width: min(100% - 22px, 1180px);
    }

    .hero-slide h1,
    .detail-info h1 {
        letter-spacing: -0.05em;
    }

    .movie-grid,
    .movie-grid--featured,
    .movie-grid--related,
    .category-grid,
    .category-panel__posters,
    .filter-panel__selects {
        grid-template-columns: 1fr;
    }

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

    .category-tile {
        min-height: 120px;
    }
}
