:root {
    --bg: #fff7ed;
    --bg-soft: #fff1f2;
    --text: #1f2937;
    --muted: #6b7280;
    --line: rgba(251, 146, 60, 0.24);
    --card: rgba(255, 255, 255, 0.86);
    --primary: #f97316;
    --secondary: #ec4899;
    --accent: #f59e0b;
    --shadow: 0 22px 60px rgba(190, 72, 44, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(251, 146, 60, 0.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(236, 72, 153, 0.16), transparent 30rem),
        linear-gradient(135deg, #fff7ed 0%, #fff1f2 48%, #fffbeb 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 247, 237, 0.88);
    border-bottom: 1px solid rgba(251, 146, 60, 0.18);
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 36px rgba(190, 72, 44, 0.08);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    color: #ffffff;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 12px 28px rgba(249, 115, 22, 0.28);
}

.brand-text {
    font-size: 24px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.menu-button {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    color: var(--primary);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #4b5563;
    font-weight: 700;
    font-size: 15px;
}

.main-nav a {
    position: relative;
    padding: 8px 0;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.24s ease;
}

.main-nav a:hover {
    color: var(--primary);
}

.main-nav a:hover::after {
    width: 100%;
}

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

.header-search input,
.filter-bar input,
.filter-bar select {
    border: 1px solid rgba(251, 146, 60, 0.28);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 11px 16px;
    outline: none;
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.header-search input:focus,
.filter-bar input:focus,
.filter-bar select:focus {
    border-color: rgba(249, 115, 22, 0.75);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.header-search button,
.primary-button,
.ghost-button,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.24s ease, box-shadow 0.24s ease, opacity 0.24s ease;
}

.header-search button,
.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 14px 30px rgba(249, 115, 22, 0.28);
}

.header-search button {
    padding: 10px 18px;
}

.primary-button,
.ghost-button {
    min-height: 46px;
    padding: 0 22px;
}

.ghost-button {
    color: #9a3412;
    border: 1px solid rgba(251, 146, 60, 0.36);
    background: rgba(255, 255, 255, 0.72);
}

.header-search button:hover,
.primary-button:hover,
.ghost-button:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.hero-carousel {
    position: relative;
    width: min(1280px, calc(100% - 32px));
    min-height: 620px;
    margin: 30px auto 26px;
    overflow: hidden;
    border-radius: 36px;
    background: linear-gradient(135deg, #fb923c, #ec4899);
    box-shadow: var(--shadow);
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(260px, 0.56fr);
    align-items: center;
    gap: 42px;
    padding: 56px;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    filter: blur(18px) saturate(1.25);
    transform: scale(1.08);
    opacity: 0.55;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(63, 23, 7, 0.82), rgba(157, 23, 77, 0.42)),
        radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.24), transparent 20rem);
}

.hero-content {
    color: #ffffff;
    max-width: 760px;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    margin-bottom: 14px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #9a3412;
    background: rgba(255, 237, 213, 0.88);
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.06em;
}

.hero-content h1,
.page-hero h1,
.category-hero h1,
.detail-intro h1 {
    margin: 0;
    line-height: 1.06;
    letter-spacing: -0.06em;
}

.hero-content h1 {
    max-width: 820px;
    font-size: clamp(42px, 7vw, 82px);
}

.hero-content p {
    max-width: 740px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.hero-tags,
.detail-meta,
.card-meta,
.card-tags,
.rank-meta,
.mini-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.hero-tags span,
.detail-meta span,
.detail-tags span,
.card-tags span,
.rank-meta span,
.mini-tags span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-tags span {
    padding: 7px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

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

.hero-poster {
    justify-self: center;
    width: min(340px, 100%);
    aspect-ratio: 2 / 3;
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 237, 213, 0.6), rgba(252, 231, 243, 0.6));
    border: 8px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
}

.hero-poster img,
.poster-frame img,
.detail-poster img,
.category-overview-card img,
.category-tile img,
.compact-card img,
.rank-row img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-dots {
    position: absolute;
    left: 56px;
    bottom: 34px;
    display: flex;
    gap: 10px;
    z-index: 4;
}

.hero-dot {
    width: 34px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
}

.hero-dot.is-active {
    background: #ffffff;
}

.quick-panel {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto 28px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.quick-panel a {
    padding: 22px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--line);
    box-shadow: 0 14px 36px rgba(249, 115, 22, 0.1);
}

.quick-panel strong {
    display: block;
    font-size: 20px;
    color: #9a3412;
}

.quick-panel span {
    color: var(--muted);
}

.content-section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
}

.soft-section {
    width: 100%;
    padding: 56px max(16px, calc((100% - 1280px) / 2));
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 237, 213, 0.38));
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.12;
    letter-spacing: -0.05em;
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.section-link {
    padding: 11px 18px;
    color: #9a3412;
    background: #ffffff;
    border: 1px solid var(--line);
    white-space: nowrap;
}

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

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

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

.movie-card {
    min-width: 0;
}

.movie-card > a {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid rgba(251, 146, 60, 0.2);
    box-shadow: 0 18px 46px rgba(190, 72, 44, 0.12);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.movie-card > a:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 70px rgba(190, 72, 44, 0.18);
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.6), transparent 8rem),
        linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.poster-frame img {
    transition: transform 0.35s ease;
}

.movie-card > a:hover .poster-frame img {
    transform: scale(1.05);
}

.year-badge,
.score-badge {
    position: absolute;
    top: 12px;
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(17, 24, 39, 0.58);
    backdrop-filter: blur(12px);
}

.year-badge {
    left: 12px;
}

.score-badge {
    right: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

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

.movie-card-body h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.28;
}

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

.card-meta {
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
}

.card-meta span + span::before {
    content: "·";
    margin-right: 10px;
    color: #fdba74;
}

.card-tags {
    margin-top: 12px;
}

.card-tags span,
.detail-tags span,
.rank-meta span,
.mini-tags span {
    padding: 5px 9px;
    color: #9a3412;
    background: #ffedd5;
}

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

.category-tile {
    position: relative;
    min-height: 220px;
    overflow: hidden;
    padding: 22px;
    border-radius: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(154, 52, 18, 0.9), rgba(190, 24, 93, 0.82));
    box-shadow: var(--shadow);
}

.category-tile img {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: 0.26;
    filter: saturate(1.2);
}

.category-tile span,
.category-tile strong,
.category-tile p {
    position: relative;
    z-index: 1;
}

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

.category-tile strong {
    display: block;
    margin-top: 6px;
    font-size: 34px;
}

.category-tile p {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
}

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

.rank-panel,
.side-panel,
.article-panel,
.player-shell,
.filter-bar,
.category-overview-card,
.rank-row {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.rank-panel,
.side-panel,
.article-panel,
.player-shell {
    border-radius: var(--radius);
}

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
}

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

.rank-panel-head span {
    color: var(--secondary);
    font-weight: 900;
}

.rank-panel-head h2,
.side-panel h2,
.article-panel h2 {
    margin: 0;
}

.rank-panel-head a {
    color: var(--primary);
    font-weight: 800;
}

.compact-list {
    display: grid;
    gap: 12px;
}

.compact-card a {
    position: relative;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 247, 237, 0.78);
    transition: transform 0.2s ease, background 0.2s ease;
}

.compact-card a:hover {
    transform: translateX(4px);
    background: #ffffff;
}

.compact-card img {
    width: 74px;
    height: 96px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.compact-card h3 {
    margin: 0;
    font-size: 15px;
    line-height: 1.25;
}

.compact-card p,
.compact-card span {
    margin: 4px 0 0;
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.rank-num {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    font-size: 12px;
    font-weight: 900;
}

.page-hero,
.category-hero,
.detail-hero {
    width: min(1280px, calc(100% - 32px));
    margin: 30px auto 0;
    overflow: hidden;
    border-radius: 34px;
    box-shadow: var(--shadow);
}

.simple-hero {
    padding: 76px 34px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.75), transparent 24rem),
        linear-gradient(135deg, rgba(251, 146, 60, 0.92), rgba(236, 72, 153, 0.86));
    color: #ffffff;
}

.warm-hero {
    background:
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.5), transparent 20rem),
        linear-gradient(135deg, #ea580c, #db2777);
}

.page-hero .eyebrow,
.category-hero .eyebrow,
.detail-intro .eyebrow {
    margin-inline: auto;
}

.page-hero h1 {
    font-size: clamp(38px, 6vw, 70px);
}

.page-hero p {
    max-width: 760px;
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.centered-actions {
    justify-content: center;
}

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

.category-overview-card {
    overflow: hidden;
    border-radius: 28px;
}

.category-overview-card a {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 22px;
    padding: 16px;
}

.category-overview-card img {
    width: 180px;
    height: 240px;
    border-radius: 22px;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.category-overview-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.category-overview-card p {
    color: var(--muted);
}

.mini-tags {
    margin-top: 18px;
}

.category-hero {
    min-height: 360px;
    position: relative;
    display: grid;
    place-items: center;
    color: #ffffff;
    background-image:
        linear-gradient(90deg, rgba(67, 20, 7, 0.88), rgba(157, 23, 77, 0.62)),
        var(--poster);
    background-size: cover;
    background-position: center;
}

.category-hero-inner {
    max-width: 820px;
    padding: 56px 28px;
    text-align: center;
}

.category-hero h1 {
    font-size: clamp(42px, 6vw, 72px);
}

.category-hero p {
    margin: 18px auto 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.filter-bar {
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.filter-bar input {
    flex: 1 1 300px;
}

.filter-bar select {
    min-width: 140px;
}

.filter-count {
    margin-left: auto;
    color: #9a3412;
    font-weight: 900;
}

.detail-hero {
    position: relative;
    background-image:
        linear-gradient(90deg, rgba(67, 20, 7, 0.92), rgba(157, 23, 77, 0.48)),
        var(--poster);
    background-size: cover;
    background-position: center;
}

.detail-hero-layer {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(10px);
}

.detail-hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 38px;
    align-items: center;
    padding: 48px;
}

.detail-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 28px;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.detail-intro {
    color: #ffffff;
}

.back-link {
    display: inline-flex;
    margin-bottom: 16px;
    color: #ffedd5;
    font-weight: 900;
}

.detail-intro h1 {
    max-width: 900px;
    font-size: clamp(38px, 6vw, 70px);
}

.detail-intro p {
    max-width: 820px;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

.detail-meta {
    margin-top: 20px;
}

.detail-meta span {
    padding: 6px 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

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

.detail-main {
    display: grid;
    gap: 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #111827;
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111827;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.32), rgba(157, 23, 77, 0.38));
    cursor: pointer;
}

.play-overlay span {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    margin: 0 auto;
    border-radius: 999px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 18px 52px rgba(236, 72, 153, 0.32);
    font-size: 32px;
}

.play-overlay strong {
    font-size: 18px;
}

.player-shell.is-playing .play-overlay {
    display: none;
}

.player-status {
    position: absolute;
    left: 16px;
    bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 39, 0.62);
    font-size: 13px;
}

.article-panel,
.side-panel {
    padding: 24px;
}

.article-panel p {
    margin: 14px 0 0;
    color: #374151;
    font-size: 17px;
}

.info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 16px 0 0;
}

.info-list div {
    padding: 14px;
    border-radius: 16px;
    background: #fff7ed;
}

.info-list dt {
    color: var(--muted);
    font-size: 13px;
}

.info-list dd {
    margin: 4px 0 0;
    font-weight: 900;
}

.detail-side {
    position: sticky;
    top: 96px;
}

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

.rank-row {
    border-radius: 24px;
    overflow: hidden;
}

.rank-row a {
    display: grid;
    grid-template-columns: 62px 98px minmax(0, 1fr) 140px;
    align-items: center;
    gap: 18px;
    padding: 14px 18px;
}

.rank-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    font-weight: 900;
}

.rank-row img {
    width: 98px;
    height: 132px;
    border-radius: 18px;
    background: linear-gradient(135deg, #fed7aa, #fbcfe8);
}

.rank-main h2 {
    margin: 0;
    font-size: 22px;
}

.rank-main p {
    margin: 8px 0 12px;
    color: var(--muted);
}

.rank-score {
    text-align: right;
}

.rank-score strong {
    display: block;
    color: var(--secondary);
    font-size: 30px;
    line-height: 1;
}

.rank-score span {
    color: var(--muted);
    font-size: 13px;
}

.site-footer {
    margin-top: 50px;
    padding: 38px 0;
    background: rgba(255, 255, 255, 0.74);
    border-top: 1px solid var(--line);
}

.footer-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
    gap: 30px;
}

.footer-brand {
    color: #9a3412;
    font-size: 24px;
    font-weight: 900;
}

.site-footer p {
    max-width: 720px;
    margin: 8px 0 0;
    color: var(--muted);
}

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

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    font-weight: 800;
    font-size: 13px;
}

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

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

    .main-nav {
        margin-left: auto;
    }

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

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

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

    .rank-panel,
    .detail-side {
        position: static;
    }
}

@media (max-width: 860px) {
    .header-inner {
        flex-wrap: wrap;
        min-height: auto;
        padding: 12px 0;
    }

    .menu-button {
        display: grid;
        place-items: center;
    }

    .main-nav {
        order: 4;
        width: 100%;
        display: none;
        flex-wrap: wrap;
        padding: 8px 0 4px;
    }

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

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

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 34px 24px 72px;
        gap: 24px;
    }

    .hero-poster {
        width: min(260px, 86%);
        transform: none;
    }

    .hero-dots {
        left: 24px;
        bottom: 24px;
    }

    .quick-panel,
    .category-overview-grid,
    .footer-inner,
    .detail-hero-inner {
        grid-template-columns: 1fr;
    }

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

    .detail-hero-inner {
        padding: 32px 22px;
    }

    .detail-poster {
        width: min(280px, 76vw);
        justify-self: center;
    }

    .category-overview-card a {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .category-overview-card img {
        width: 120px;
        height: 170px;
    }

    .rank-row a {
        grid-template-columns: 42px 78px minmax(0, 1fr);
    }

    .rank-score {
        grid-column: 3;
        text-align: left;
    }

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

@media (max-width: 560px) {
    .brand-text {
        font-size: 20px;
    }

    .hero-content h1,
    .page-hero h1,
    .category-hero h1,
    .detail-intro h1 {
        letter-spacing: -0.04em;
    }

    .hero-carousel,
    .page-hero,
    .category-hero,
    .detail-hero,
    .content-section,
    .quick-panel {
        width: min(100% - 20px, 1280px);
    }

    .movie-grid,
    .compact-grid,
    .small-grid,
    .search-grid,
    .category-movie-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .section-heading {
        display: block;
    }

    .section-link {
        margin-top: 12px;
    }

    .info-list {
        grid-template-columns: 1fr;
    }
}
