:root {
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-200: #fbcfe8;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --rose-500: #f43f5e;
    --rose-700: #be123c;
    --orange-500: #f97316;
    --yellow-400: #facc15;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --shadow-sm: 0 8px 24px rgba(190, 18, 60, 0.08);
    --shadow-md: 0 16px 40px rgba(190, 18, 60, 0.12);
    --shadow-lg: 0 28px 80px rgba(17, 24, 39, 0.2);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--gray-900);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, var(--pink-50) 0%, #ffffff 42%, #fff7ed 100%);
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid var(--pink-100);
    box-shadow: 0 6px 22px rgba(236, 72, 153, 0.08);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 76px;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.brand-icon,
.footer-brand span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: white;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500), var(--orange-500));
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--gray-700);
    font-weight: 700;
}

.desktop-nav a,
.mobile-panel a {
    transition: color 0.2s ease, background 0.2s ease;
}

.desktop-nav a:hover,
.mobile-panel a:hover {
    color: var(--pink-500);
}

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

.header-search input,
.mobile-panel input,
.large-search input {
    border: 1px solid var(--pink-200);
    outline: none;
    background: white;
    border-radius: 999px;
    padding: 11px 18px;
    color: var(--gray-800);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input {
    width: 245px;
}

.header-search input:focus,
.mobile-panel input:focus,
.large-search input:focus {
    border-color: var(--pink-500);
    box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.16);
}

.header-search button,
.mobile-panel button,
.large-search button,
.primary-button {
    border: 0;
    cursor: pointer;
    color: white;
    background: linear-gradient(90deg, var(--pink-500), var(--rose-500));
    border-radius: 999px;
    padding: 11px 20px;
    font-weight: 800;
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.28);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.mobile-panel button:hover,
.large-search button:hover,
.primary-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 38px rgba(236, 72, 153, 0.34);
}

.secondary-button {
    display: inline-flex;
    align-items: center;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    padding: 11px 20px;
    font-weight: 800;
    backdrop-filter: blur(10px);
    transition: background 0.2s ease, transform 0.2s ease;
}

.secondary-button:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--gray-700);
    font-size: 1.8rem;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 16px 0 20px;
    border-top: 1px solid var(--pink-100);
}

.mobile-panel.is-open {
    display: grid;
    gap: 12px;
}

.mobile-panel form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}

.mobile-panel a {
    padding: 12px 14px;
    color: var(--gray-700);
    border-radius: 14px;
}

.mobile-panel a:hover {
    background: var(--pink-50);
}

.hero-carousel {
    position: relative;
    height: min(72vh, 640px);
    min-height: 520px;
    overflow: hidden;
    background: var(--gray-900);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease;
}

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

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.62) 48%, rgba(0, 0, 0, 0.08) 100%);
}

.hero-content {
    color: white;
}

.hero-content > * {
    max-width: 680px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--yellow-400);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 18px 0 18px;
    font-size: clamp(2.4rem, 6vw, 5.8rem);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: clamp(1rem, 2vw, 1.28rem);
    line-height: 1.8;
}

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

.hero-meta {
    margin: 22px 0;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

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

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

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

.hero-dot.is-active {
    width: 34px;
    background: white;
}

.section {
    padding: 76px 0 0;
}

.section-soft {
    padding: 76px 0;
    background: linear-gradient(135deg, #fff1f2 0%, #fdf2f8 50%, #fff7ed 100%);
}

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

.section-heading h2,
.page-hero h1,
.detail-card h1,
.detail-card h2,
.side-card h2 {
    margin: 0;
    color: var(--gray-900);
    line-height: 1.14;
}

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

.section-heading a {
    color: var(--pink-500);
    font-weight: 900;
}

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

.movie-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: white;
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.movie-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.movie-card-poster {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pink-200), #fed7aa);
}

.movie-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.movie-card:hover .movie-card-poster img,
.category-tile:hover img,
.category-cover:hover img,
.ranking-row:hover img,
.rank-table-row:hover img {
    transform: scale(1.07);
}

.movie-card-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.58));
    opacity: 0.82;
    transition: opacity 0.25s ease;
}

.movie-card:hover .movie-card-poster::after {
    opacity: 0.58;
}

.movie-card-category,
.movie-card-duration {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    color: white;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
}

.movie-card-category {
    top: 12px;
    left: 12px;
    background: var(--pink-500);
    padding: 6px 10px;
}

.movie-card-duration {
    right: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.72);
    padding: 5px 9px;
}

.movie-card-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    padding-left: 4px;
    color: white;
    background: rgba(236, 72, 153, 0.88);
    border-radius: 999px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

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

.movie-card-body h3,
.movie-card-body strong {
    margin: 0 0 10px;
    color: var(--gray-900);
    font-size: 1.05rem;
    line-height: 1.36;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    transition: color 0.2s ease;
}

.movie-card:hover h3,
.movie-card:hover strong {
    color: var(--pink-500);
}

.movie-card-body p {
    margin: 0 0 14px;
    color: var(--gray-600);
    font-size: 0.92rem;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.movie-card-meta {
    margin-top: auto;
    color: var(--gray-500);
    font-size: 0.84rem;
    font-weight: 700;
}

.feature-panel {
    padding: clamp(24px, 4vw, 48px);
    background: linear-gradient(135deg, #ffe4e6 0%, var(--pink-100) 48%, #ffedd5 100%);
    border-radius: 36px;
    box-shadow: var(--shadow-sm);
}

.feature-heading {
    margin-bottom: 24px;
}

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

.category-tile {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    color: white;
    border-radius: 24px;
    box-shadow: 0 16px 42px rgba(190, 18, 60, 0.18);
}

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

.category-tile::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.74));
}

.category-tile div {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    display: grid;
    gap: 8px;
}

.category-tile strong {
    font-size: 1.18rem;
}

.category-tile span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.9rem;
    line-height: 1.55;
}

.movie-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(260px, 300px);
    gap: 20px;
    overflow-x: auto;
    padding: 4px 4px 20px;
    scroll-snap-type: x proximity;
}

.rail-card {
    scroll-snap-align: start;
}

.two-column-section {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.8fr);
    gap: 32px;
    align-items: start;
}

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

.movie-card-large .movie-card-poster {
    aspect-ratio: 16 / 12;
}

.ranking-panel,
.side-card,
.detail-card,
.sort-bar,
.category-overview-card,
.rank-table,
.page-hero {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(251, 207, 232, 0.72);
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
}

.ranking-panel {
    position: sticky;
    top: 100px;
    padding: 24px;
}

.compact-heading {
    margin-bottom: 16px;
}

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

.ranking-row {
    display: grid;
    grid-template-columns: 42px 68px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ranking-row:hover,
.rank-table-row:hover {
    background: var(--pink-50);
    transform: translateX(3px);
}

.ranking-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: white;
    background: linear-gradient(135deg, var(--pink-500), var(--orange-500));
    border-radius: 12px;
    font-weight: 900;
}

.ranking-row img,
.rank-table-row img {
    width: 68px;
    height: 46px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.ranking-title {
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ranking-score {
    color: var(--gray-500);
    font-size: 0.86rem;
    font-weight: 700;
}

.site-footer {
    margin-top: 88px;
    color: white;
    background: linear-gradient(135deg, #881337 0%, #9f1239 48%, #9a3412 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    padding: 48px 0;
}

.footer-grid h2 {
    margin: 0 0 16px;
    font-size: 1.08rem;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.8;
}

.footer-grid ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-grid a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.92rem;
}

.page-main {
    padding-top: 34px;
}

.page-hero {
    padding: clamp(28px, 5vw, 54px);
}

.small-page-hero,
.category-page-hero,
.ranking-hero {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), #fff1f2 54%, #ffedd5 100%);
}

.page-hero h1 {
    margin-top: 12px;
    font-size: clamp(2.1rem, 5vw, 4.2rem);
    letter-spacing: -0.045em;
}

.page-hero p {
    max-width: 760px;
    margin: 16px 0 0;
    color: var(--gray-600);
    font-size: 1.05rem;
    line-height: 1.85;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--gray-500);
    font-weight: 700;
}

.breadcrumb a {
    color: var(--pink-500);
}

.sort-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 26px;
    padding: 18px 20px;
}

.sort-bar strong {
    display: block;
    margin-bottom: 3px;
}

.sort-bar span {
    color: var(--gray-500);
}

.sort-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sort-buttons button {
    border: 0;
    color: var(--gray-700);
    background: var(--gray-100);
    border-radius: 12px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 800;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sort-buttons button.is-active,
.sort-buttons button:hover {
    color: white;
    background: var(--pink-500);
    transform: translateY(-1px);
}

.category-movie-grid,
.category-overview-grid,
.rank-table,
.ranking-top-grid {
    margin-top: 28px;
}

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

.category-overview-card {
    overflow: hidden;
}

.category-cover {
    position: relative;
    display: block;
    height: 210px;
    overflow: hidden;
}

.category-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.74));
}

.category-cover span {
    position: absolute;
    left: 22px;
    bottom: 18px;
    z-index: 2;
    color: white;
    font-size: 1.45rem;
    font-weight: 900;
}

.category-overview-body {
    padding: 22px;
}

.category-overview-body h2 {
    margin: 0 0 10px;
}

.category-overview-body p {
    margin: 0 0 16px;
    color: var(--gray-600);
    line-height: 1.75;
}

.mini-links {
    display: grid;
    gap: 8px;
}

.mini-links a {
    color: var(--pink-600);
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-table {
    overflow: hidden;
    padding: 12px;
}

.rank-table-row {
    display: grid;
    grid-template-columns: 54px 82px minmax(0, 1fr) 120px 120px;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border-radius: 18px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.rank-position {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: white;
    background: var(--gray-900);
    border-radius: 14px;
    font-weight: 900;
}

.rank-table-row:nth-child(-n + 3) .rank-position {
    background: linear-gradient(135deg, var(--yellow-400), var(--orange-500));
}

.rank-main {
    min-width: 0;
}

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

.rank-main em {
    margin-top: 5px;
    color: var(--gray-500);
    font-size: 0.88rem;
    font-style: normal;
}

.large-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    max-width: 720px;
    margin-top: 26px;
}

.large-search input {
    width: 100%;
    padding: 14px 20px;
}

.search-status {
    margin-top: 26px;
    color: var(--gray-700);
    font-weight: 800;
}

.search-card-tags {
    margin-top: 10px;
    color: var(--pink-500);
    font-size: 0.82rem;
    font-weight: 800;
}

.empty-state {
    width: 100%;
    padding: 34px;
    color: var(--gray-500);
    text-align: center;
    background: white;
    border: 1px solid var(--pink-100);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.wide-empty {
    grid-column: 1 / -1;
}

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

.detail-main {
    min-width: 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
}

.main-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: black;
}

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

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

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.24), rgba(0, 0, 0, 0.76));
}

.player-button {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    padding-left: 7px;
    color: white;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    border: 0;
    border-radius: 999px;
    box-shadow: 0 24px 64px rgba(236, 72, 153, 0.45);
    cursor: pointer;
    font-size: 2.1rem;
    transition: transform 0.2s ease;
}

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

.detail-card,
.side-card {
    margin-top: 24px;
    padding: 26px;
}

.detail-card h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
}

.detail-one-line {
    margin: 14px 0 18px;
    color: var(--gray-700);
    font-size: 1.08rem;
    line-height: 1.78;
}

.detail-meta {
    color: var(--gray-600);
    font-weight: 800;
}

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

.detail-tags span {
    color: var(--gray-700);
    background: var(--gray-100);
    border-radius: 999px;
    padding: 9px 13px;
    font-size: 0.92rem;
    font-weight: 800;
}

.prose-card h2,
.side-card h2 {
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.prose-card p {
    margin: 0;
    color: var(--gray-700);
    font-size: 1.02rem;
    line-height: 1.95;
    text-align: justify;
}

.accent-card {
    background: linear-gradient(135deg, #fff1f2, #fdf2f8);
}

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

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

.movie-card-list {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    border-radius: 18px;
}

.movie-card-list .movie-card-poster {
    aspect-ratio: auto;
    min-height: 90px;
}

.movie-card-list .movie-card-category {
    display: none;
}

.movie-card-list .movie-card-play {
    width: 42px;
    height: 42px;
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.9);
}

.movie-card-list .movie-card-body {
    padding: 12px 14px;
}

.movie-card-list .movie-card-body p {
    -webkit-line-clamp: 2;
    font-size: 0.84rem;
}

@media (max-width: 1100px) {
    .desktop-nav,
    .header-search {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

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

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

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

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

@media (max-width: 760px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        min-height: 66px;
    }

    .brand-text {
        font-size: 1.12rem;
    }

    .hero-carousel {
        min-height: 560px;
        height: 76vh;
    }

    .hero-overlay {
        align-items: end;
        padding-bottom: 62px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.88));
    }

    .hero-content h1 {
        font-size: clamp(2.1rem, 11vw, 3.5rem);
    }

    .section {
        padding-top: 52px;
    }

    .section-heading,
    .sort-bar,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .movie-grid,
    .category-grid,
    .editor-grid,
    .footer-grid,
    .category-overview-grid,
    .ranking-top-grid {
        grid-template-columns: 1fr;
    }

    .movie-rail {
        grid-auto-columns: minmax(238px, 82vw);
    }

    .feature-panel,
    .page-hero,
    .detail-card,
    .side-card {
        border-radius: 22px;
        padding: 22px;
    }

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

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

    .rank-table-row > span:nth-last-child(-n + 2) {
        display: none;
    }

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

    .player-button {
        width: 70px;
        height: 70px;
        font-size: 1.6rem;
    }
}

@media (max-width: 430px) {
    .hero-actions,
    .hero-meta {
        gap: 10px;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
        justify-content: center;
    }

    .mobile-panel form {
        grid-template-columns: 1fr;
    }
}
