:root {
    --bg: #fff7ed;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.22);
    --orange: #f97316;
    --orange-dark: #ea580c;
    --pink: #ec4899;
    --rose: #fb7185;
    --shadow: 0 24px 60px rgba(194, 65, 12, 0.16);
    --radius: 1.4rem;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.24), transparent 32rem),
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.18), transparent 30rem),
        linear-gradient(180deg, #fff7ed 0%, #fff 42%, #fff7ed 100%);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 247, 237, 0.86);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.nav-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.9rem 1.2rem;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.2rem;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: var(--orange-dark);
}

.brand-mark {
    width: 2.55rem;
    height: 2.55rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.34);
}

.brand-text {
    font-size: 1.35rem;
    background: linear-gradient(90deg, var(--orange-dark), var(--pink));
    -webkit-background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.58rem 0.86rem;
    border-radius: 999px;
    color: #4b5563;
    font-weight: 700;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.2);
}

.top-search,
.hero-search,
.inline-filter,
.search-panel {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--surface-strong);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.35rem;
    box-shadow: 0 12px 28px rgba(251, 146, 60, 0.08);
}

.top-search input,
.hero-search input,
.inline-filter input,
.search-panel input,
.search-panel select {
    min-width: 0;
    outline: none;
    border: 0;
    background: transparent;
    padding: 0.55rem 0.75rem;
    color: var(--text);
}

.top-search button,
.hero-search button,
.inline-filter button,
.search-panel button,
.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.72rem 1.1rem;
    font-weight: 900;
    white-space: nowrap;
    transition: 0.25s ease;
}

.top-search button,
.hero-search button,
.inline-filter button,
.search-panel button,
.primary-btn {
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 16px 32px rgba(236, 72, 153, 0.22);
}

.top-search button:hover,
.hero-search button:hover,
.inline-filter button:hover,
.search-panel button:hover,
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 40px rgba(236, 72, 153, 0.3);
}

.ghost-btn {
    color: var(--orange-dark);
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(249, 115, 22, 0.24);
}

.ghost-btn:hover {
    transform: translateY(-2px);
    background: #fff;
}

.nav-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    background: #fff;
    border: 1px solid var(--line);
    padding: 0.55rem;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--orange-dark);
    margin: 0.25rem 0;
    border-radius: 999px;
}

.quick-cats {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.2rem 0.85rem;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.quick-cats a,
.hero-category-strip a,
.tag-row span {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 0.42rem 0.75rem;
    font-size: 0.86rem;
    font-weight: 800;
    color: #9a3412;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(251, 146, 60, 0.2);
}

.hero-carousel {
    position: relative;
    max-width: 1280px;
    min-height: 640px;
    margin: 1.4rem auto 0;
    padding: 2rem;
    overflow: hidden;
    border-radius: 2.2rem;
    background:
        linear-gradient(135deg, rgba(255, 237, 213, 0.94), rgba(252, 231, 243, 0.8)),
        linear-gradient(135deg, #fff7ed, #fdf2f8);
    border: 1px solid rgba(251, 146, 60, 0.28);
    box-shadow: var(--shadow);
}

.hero-light {
    position: absolute;
    width: 23rem;
    height: 23rem;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.35;
    pointer-events: none;
}

.hero-light.one {
    left: -7rem;
    top: -8rem;
    background: #fb923c;
}

.hero-light.two {
    right: -8rem;
    bottom: -8rem;
    background: #ec4899;
}

.hero-slides {
    position: relative;
    z-index: 2;
    min-height: 470px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
    align-items: center;
    gap: 2rem;
    opacity: 0;
    pointer-events: none;
    transform: translateX(2rem) scale(0.98);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.eyebrow {
    color: var(--pink);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 900;
    font-size: 0.78rem;
    margin-bottom: 0.75rem;
}

.hero-copy h1,
.hero-title-spacer {
    max-width: 760px;
    font-size: clamp(2.45rem, 6vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.07em;
    font-weight: 950;
    color: #7c2d12;
}

.hero-title-spacer {
    visibility: hidden;
    height: 0;
    overflow: hidden;
}

.hero-copy h2,
.page-hero h1,
.section-heading h2,
.detail-intro h1 {
    font-weight: 950;
    letter-spacing: -0.05em;
    color: #111827;
}

.hero-copy h2 {
    margin-top: 1rem;
    font-size: clamp(1.6rem, 3vw, 3rem);
}

.hero-copy p {
    max-width: 720px;
    margin-top: 1rem;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.85;
}

.hero-tags,
.detail-meta,
.meta-line,
.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.hero-tags {
    margin: 1.25rem 0 1.5rem;
}

.hero-tags span,
.detail-meta span,
.meta-line span {
    color: #9a3412;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: 999px;
    padding: 0.34rem 0.68rem;
    font-weight: 800;
    font-size: 0.84rem;
}

.hero-poster {
    position: relative;
    min-height: 460px;
    overflow: hidden;
    border-radius: 2rem;
    box-shadow: 0 34px 70px rgba(124, 45, 18, 0.22);
    transform: rotate(1.5deg);
}

.hero-poster:after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(17, 24, 39, 0.76));
}

.hero-poster span {
    position: absolute;
    z-index: 1;
    left: 1.2rem;
    right: 1.2rem;
    bottom: 1.2rem;
    color: #fff;
    font-weight: 950;
    font-size: 1.35rem;
}

.hero-controls {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.75rem;
}

.hero-controls button {
    width: 2.65rem;
    height: 2.65rem;
    border-radius: 999px;
    background: #fff;
    color: var(--orange-dark);
    border: 1px solid rgba(251, 146, 60, 0.25);
    font-size: 1.6rem;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(251, 146, 60, 0.16);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-dots button {
    width: 0.72rem;
    height: 0.72rem;
    min-width: 0;
    padding: 0;
    background: rgba(251, 146, 60, 0.32);
    box-shadow: none;
}

.hero-dots button.is-active {
    width: 2rem;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

.hero-search {
    position: relative;
    z-index: 3;
    max-width: 720px;
    margin: 1.3rem auto 0;
}

.hero-search input {
    flex: 1;
}

.hero-category-strip {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    margin-top: 1rem;
    padding-bottom: 0.25rem;
}

.section-shell,
.page-main,
.detail-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.2rem 0;
}

.two-column,
.split-layout,
.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 1.4rem;
    align-items: start;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.section-heading p {
    color: var(--pink);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.74rem;
}

.section-heading h2 {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
}

.section-heading a,
.text-link,
.panel-title a {
    color: var(--orange-dark);
    font-weight: 900;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid rgba(251, 146, 60, 0.18);
    box-shadow: 0 16px 36px rgba(251, 146, 60, 0.1);
    transition: 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 26px 54px rgba(236, 72, 153, 0.18);
}

.poster-link,
.rank-cover,
.detail-poster {
    position: relative;
    display: block;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.poster-link {
    aspect-ratio: 2 / 3;
    overflow: hidden;
}

.poster-link img,
.hero-poster img,
.rank-cover img,
.detail-poster img,
.media-row img {
    transition: transform 0.45s ease;
}

.movie-card:hover .poster-link img,
.hero-poster:hover img,
.rank-cover:hover img,
.detail-poster:hover img {
    transform: scale(1.05);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 35%, rgba(17, 24, 39, 0.72));
}

.card-badge,
.card-play {
    position: absolute;
    z-index: 1;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
}

.card-badge {
    top: 0.7rem;
    left: 0.7rem;
    padding: 0.32rem 0.58rem;
    background: rgba(249, 115, 22, 0.88);
    font-size: 0.78rem;
}

.card-play {
    right: 0.72rem;
    bottom: 0.72rem;
    width: 2.5rem;
    height: 2.5rem;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

.card-body {
    padding: 0.9rem;
}

.meta-line {
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}

.meta-line span {
    font-size: 0.72rem;
    padding: 0.22rem 0.5rem;
}

.card-body h2 {
    font-size: 1.05rem;
    line-height: 1.35;
    font-weight: 950;
    color: #111827;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.card-body p {
    min-height: 3rem;
    margin-top: 0.48rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.75rem;
}

.tag-row span {
    font-size: 0.72rem;
    padding: 0.25rem 0.5rem;
}

.compact-card .card-body p {
    display: none;
}

.rank-panel,
.article-panel,
.detail-side,
.category-overview-card,
.category-tile,
.rank-card,
.page-hero {
    background: var(--surface);
    border: 1px solid rgba(251, 146, 60, 0.2);
    border-radius: var(--radius);
    box-shadow: 0 18px 40px rgba(251, 146, 60, 0.1);
}

.rank-panel {
    padding: 1rem;
}

.sticky-panel {
    position: sticky;
    top: 7.5rem;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.8rem;
    font-weight: 950;
    color: #111827;
}

.media-row {
    display: grid;
    grid-template-columns: auto 4.2rem minmax(0, 1fr);
    gap: 0.72rem;
    align-items: center;
    padding: 0.62rem;
    border-radius: 1rem;
    transition: 0.22s ease;
}

.media-row:not(:last-child) {
    margin-bottom: 0.28rem;
}

.media-row:hover {
    background: rgba(255, 237, 213, 0.65);
}

.media-row img {
    width: 4.2rem;
    height: 5.6rem;
    border-radius: 0.8rem;
    object-fit: cover;
}

.media-row strong,
.media-row em {
    display: block;
}

.media-row strong {
    color: #111827;
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1.4;
}

.media-row em {
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
    line-height: 1.4;
}

.rank-index {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 950;
    background: linear-gradient(135deg, var(--orange), var(--pink));
}

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

.category-tile,
.category-overview-card {
    display: block;
    padding: 1.2rem;
    transition: 0.25s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(236, 72, 153, 0.16);
}

.category-tile span,
.category-overview-card strong {
    display: block;
    color: #111827;
    font-size: 1.1rem;
    font-weight: 950;
}

.category-tile p,
.category-overview-card p {
    margin-top: 0.7rem;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.category-overview-card div {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.85rem;
}

.category-overview-card div span {
    border-radius: 999px;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 237, 213, 0.78);
    color: #9a3412;
    font-size: 0.74rem;
    font-weight: 800;
}

.page-main {
    padding-top: 1.5rem;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4.4rem);
    background:
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.18), transparent 24rem),
        linear-gradient(135deg, rgba(255, 237, 213, 0.95), rgba(255, 255, 255, 0.9));
}

.page-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    line-height: 1.03;
}

.page-hero p:not(.eyebrow) {
    max-width: 820px;
    margin-top: 1rem;
    color: #4b5563;
    font-size: 1.05rem;
    line-height: 1.85;
}

.slim-hero .hero-actions,
.category-hero .inline-filter {
    margin-top: 1.25rem;
}

.inline-filter,
.search-panel {
    max-width: 780px;
}

.inline-filter input,
.search-panel input {
    flex: 1;
}

.search-panel select {
    border-left: 1px solid rgba(251, 146, 60, 0.18);
}

.rank-list {
    display: grid;
    gap: 1rem;
}

.rank-card {
    display: grid;
    grid-template-columns: 11rem minmax(0, 1fr);
    gap: 1.2rem;
    padding: 1rem;
}

.rank-cover {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 1rem;
}

.rank-number {
    display: inline-grid;
    place-items: center;
    min-width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    font-weight: 950;
}

.rank-info h2 {
    margin-top: 0.7rem;
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 950;
}

.rank-info p {
    max-width: 820px;
    margin: 0.7rem 0;
    color: #4b5563;
    line-height: 1.75;
}

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    color: #9a3412;
    font-weight: 800;
    padding: 0.5rem 0 1.1rem;
}

.detail-hero {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 1.5rem;
    align-items: stretch;
    padding: 1.2rem;
    border-radius: 2rem;
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.92), rgba(252, 231, 243, 0.76));
    border: 1px solid rgba(251, 146, 60, 0.26);
    box-shadow: var(--shadow);
}

.detail-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 1.5rem;
}

.detail-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem;
}

.detail-intro h1 {
    font-size: clamp(2rem, 5vw, 4.5rem);
    line-height: 1.05;
}

.detail-one-line {
    max-width: 820px;
    margin: 1rem 0;
    color: #4b5563;
    font-size: 1.08rem;
    line-height: 1.85;
}

.large-tags span {
    font-size: 0.82rem;
    padding: 0.35rem 0.65rem;
}

.detail-intro .primary-btn {
    width: fit-content;
    margin-top: 1.4rem;
}

.watch-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 1.2rem 0;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 1.6rem;
    background: #09090b;
    aspect-ratio: 16 / 9;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

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

.player-start {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    color: #fff;
    background: radial-gradient(circle, rgba(17, 24, 39, 0.24), rgba(0, 0, 0, 0.62));
    transition: 0.25s ease;
}

.player-start span {
    width: 5.4rem;
    height: 5.4rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--orange), var(--pink));
    box-shadow: 0 20px 44px rgba(236, 72, 153, 0.3);
    font-size: 2rem;
}

.player-start strong {
    font-size: 1.05rem;
    font-weight: 950;
}

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

.player-state {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    display: none;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    font-weight: 800;
}

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

.article-panel,
.detail-side {
    padding: 1.35rem;
}

.article-panel h2,
.detail-side h2 {
    margin-bottom: 0.75rem;
    color: #111827;
    font-size: 1.3rem;
    font-weight: 950;
}

.article-panel h2:not(:first-child) {
    margin-top: 1.4rem;
}

.article-panel p {
    color: #4b5563;
    line-height: 1.9;
    font-size: 1rem;
}

.detail-side .media-row {
    grid-template-columns: 4.2rem minmax(0, 1fr);
}

.detail-side .media-row .rank-index {
    display: none;
}

.site-footer {
    max-width: 1280px;
    margin: 3rem auto 0;
    padding: 2rem 1.2rem 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 1.2rem;
    padding: 1.4rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(251, 146, 60, 0.18);
}

.footer-grid p {
    max-width: 520px;
    margin-top: 0.7rem;
    color: var(--muted);
    line-height: 1.75;
}

.footer-grid h2 {
    margin-bottom: 0.8rem;
    color: #111827;
    font-weight: 950;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.footer-links a {
    border-radius: 999px;
    padding: 0.36rem 0.68rem;
    background: rgba(255, 237, 213, 0.7);
    color: #9a3412;
    font-weight: 800;
    font-size: 0.86rem;
}

.copyright {
    margin-top: 1rem;
    color: var(--muted);
    text-align: center;
    font-size: 0.9rem;
}

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

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

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

    .sticky-panel {
        position: static;
    }
}

@media (max-width: 860px) {
    .nav-shell {
        grid-template-columns: auto auto;
    }

    .nav-toggle {
        display: block;
        justify-self: end;
    }

    .nav-links {
        display: none;
        grid-column: 1 / -1;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .nav-links.is-open {
        display: flex;
    }

    .top-search {
        grid-column: 1 / -1;
        width: 100%;
    }

    .top-search input {
        flex: 1;
    }

    .hero-carousel {
        min-height: auto;
        margin: 0.8rem 0.8rem 0;
        padding: 1.1rem;
        border-radius: 1.5rem;
    }

    .hero-slides {
        min-height: 0;
    }

    .hero-slide {
        position: relative;
        display: none;
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .hero-slide.is-active {
        display: grid;
    }

    .hero-poster {
        min-height: 380px;
        transform: none;
    }

    .hero-search,
    .search-panel,
    .inline-filter {
        align-items: stretch;
        flex-direction: column;
        border-radius: 1.2rem;
    }

    .hero-search input,
    .inline-filter input,
    .search-panel input,
    .search-panel select,
    .hero-search button,
    .inline-filter button,
    .search-panel button {
        width: 100%;
    }

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

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

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

@media (max-width: 620px) {
    .section-shell,
    .page-main,
    .detail-main,
    .watch-section {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .movie-grid,
    .latest-grid,
    .category-grid,
    .category-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .card-body {
        padding: 0.75rem;
    }

    .card-body h2 {
        font-size: 0.96rem;
    }

    .card-body p,
    .tag-row {
        display: none;
    }

    .rank-card {
        grid-template-columns: 6.5rem minmax(0, 1fr);
        gap: 0.8rem;
    }

    .media-row {
        grid-template-columns: auto 3.6rem minmax(0, 1fr);
    }

    .media-row img {
        width: 3.6rem;
        height: 4.8rem;
    }

    .player-start span {
        width: 4.2rem;
        height: 4.2rem;
    }
}
