:root {
    --pink: #ec4899;
    --pink-dark: #db2777;
    --purple: #a855f7;
    --blue: #60a5fa;
    --text: #1f2937;
    --muted: #6b7280;
    --soft: #fdf2f8;
    --line: rgba(148, 163, 184, 0.28);
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background: linear-gradient(135deg, #fff1f8 0%, #f5f3ff 45%, #eff6ff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

img {
    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: 50;
    background: linear-gradient(90deg, #f472b6 0%, #c084fc 52%, #93c5fd 100%);
    box-shadow: 0 16px 40px rgba(147, 51, 234, 0.18);
}

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

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.08) rotate(-4deg);
}

.brand-text {
    font-size: clamp(20px, 2vw, 26px);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #fff;
    font-weight: 700;
}

.nav-link {
    position: relative;
    padding: 26px 0;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff7fb;
}

.nav-link::after {
    position: absolute;
    right: 0;
    bottom: 18px;
    left: 0;
    height: 3px;
    content: "";
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 64px;
    left: -18px;
    display: grid;
    width: 220px;
    gap: 4px;
    padding: 12px;
    color: #374151;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    padding: 10px 12px;
    border-radius: 12px;
    transition: all 0.18s ease;
}

.dropdown-panel a:hover {
    color: var(--pink-dark);
    background: #fdf2f8;
}

.header-search,
.mobile-search,
.wide-search,
.search-page-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-search {
    width: 260px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(10px);
}

.header-search input,
.mobile-search input,
.wide-search input,
.search-page-form input,
.filter-bar input {
    width: 100%;
    border: 0;
    outline: 0;
    color: #374151;
    background: transparent;
}

.header-search input {
    padding: 8px 6px 8px 12px;
}

.header-search button,
.mobile-search button,
.wide-search button,
.search-page-form button {
    border: 0;
    cursor: pointer;
    color: #fff;
    background: var(--pink);
    border-radius: 999px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.header-search button {
    width: 36px;
    height: 36px;
}

.header-search button:hover,
.mobile-search button:hover,
.wide-search button:hover,
.search-page-form button:hover {
    background: var(--pink-dark);
    transform: translateY(-1px);
}

.mobile-menu-button {
    display: none;
    border: 0;
    color: #fff;
    background: transparent;
    font-size: 28px;
    cursor: pointer;
}

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

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

.mobile-nav a {
    color: #fff;
    font-weight: 700;
}

.mobile-search {
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
}

.mobile-search input {
    padding: 10px;
}

.mobile-search button {
    padding: 10px 16px;
}

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

.hero-carousel {
    position: relative;
    height: clamp(560px, 70vw, 680px);
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-slide > img,
.detail-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay,
.detail-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 70% 25%, rgba(236, 72, 153, 0.24), transparent 34%),
        linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.55) 48%, rgba(0, 0, 0, 0.16));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    align-items: center;
    height: 100%;
    gap: 48px;
    color: #fff;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 14px;
    color: #fff;
    background: rgba(236, 72, 153, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.hero-copy h1,
.detail-info h1,
.sub-hero h1,
.play-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.hero-copy p,
.detail-one-line,
.sub-hero p,
.play-hero p {
    max-width: 720px;
    margin: 0 0 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
}

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

.hero-tags span,
.card-tags span {
    display: inline-flex;
    padding: 6px 10px;
    color: #831843;
    background: #fce7f3;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.hero-content .hero-tags span,
.detail-info .hero-tags span {
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    box-shadow: 0 18px 36px rgba(236, 72, 153, 0.28);
}

.btn-light {
    color: #be185d;
    background: rgba(255, 255, 255, 0.92);
}

.btn-ghost {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

.btn.wide {
    width: 100%;
    margin-top: 18px;
}

.hero-poster,
.detail-poster {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
    transform: rotate(2deg);
}

.hero-poster img,
.detail-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: linear-gradient(135deg, #f9a8d4, #c4b5fd, #bfdbfe);
}

.detail-poster span,
.play-chip {
    position: absolute;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(236, 72, 153, 0.88);
    border-radius: 999px;
    box-shadow: 0 12px 34px rgba(236, 72, 153, 0.35);
}

.detail-poster span {
    inset: 50% auto auto 50%;
    width: 74px;
    height: 74px;
    font-size: 32px;
    transform: translate(-50%, -50%);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    font-size: 42px;
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(10px);
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

.hero-dots {
    position: absolute;
    right: 0;
    bottom: 26px;
    left: 0;
    z-index: 5;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.quick-search-band {
    padding: 28px 0;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.quick-search-inner {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 420px);
    align-items: center;
    gap: 28px;
}

.quick-search-inner h2,
.section-title h2,
.filter-bar h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 950;
    letter-spacing: -0.025em;
}

.quick-search-inner p,
.section-title p,
.filter-bar p {
    margin: 6px 0 0;
    color: var(--muted);
}

.wide-search,
.search-page-form {
    padding: 8px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.wide-search input,
.search-page-form input {
    padding: 12px 14px;
}

.wide-search button,
.search-page-form button {
    padding: 12px 22px;
}

.section-block {
    padding: 58px 0;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
}

.section-title.with-link {
    justify-content: space-between;
}

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

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

.section-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: #fce7f3;
    font-size: 22px;
}

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

.category-tile,
.category-overview-card,
.movie-card,
.prose-panel,
.player-side,
.ranking-card,
.movie-index-row {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(16px);
}

.category-tile {
    display: grid;
    gap: 8px;
    min-height: 176px;
    padding: 24px;
    border-radius: var(--radius);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.movie-card:hover,
.compact-card:hover,
.ranking-card:hover,
.movie-index-row:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 70px rgba(236, 72, 153, 0.16);
}

.category-emoji {
    font-size: 34px;
}

.category-tile strong {
    color: #111827;
    font-size: 20px;
    font-weight: 950;
}

.category-tile small {
    color: var(--muted);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, #f9a8d4, #c4b5fd, #bfdbfe);
}

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

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

.quality-badge,
.duration-badge {
    position: absolute;
    top: 12px;
    padding: 5px 9px;
    color: #fff;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    background: rgba(0, 0, 0, 0.58);
    backdrop-filter: blur(8px);
}

.quality-badge {
    left: 12px;
    background: linear-gradient(135deg, #ec4899, #a855f7);
}

.duration-badge {
    right: 12px;
}

.play-chip {
    right: 14px;
    bottom: 14px;
    width: 46px;
    height: 46px;
    opacity: 0;
    transform: scale(0.86);
    transition: all 0.2s ease;
}

.movie-card:hover .play-chip {
    opacity: 1;
    transform: scale(1);
}

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

.movie-card-meta,
.detail-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.movie-card h2,
.ranking-content h2 {
    margin: 8px 0;
    color: #111827;
    font-size: 19px;
    line-height: 1.35;
    font-weight: 950;
}

.movie-card p,
.ranking-content p {
    display: -webkit-box;
    min-height: 46px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}

.card-actions a {
    color: var(--pink-dark);
    font-weight: 900;
}

.highlight-panel {
    padding: 68px 0;
    background: linear-gradient(135deg, #111827, #312e81 48%, #831843);
}

.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 36px;
    align-items: start;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 52px 54px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.rank-row:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(4px);
}

.rank-no {
    color: #f9a8d4;
    font-size: 22px;
    font-weight: 950;
}

.rank-row img {
    width: 54px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: linear-gradient(135deg, #f9a8d4, #c4b5fd, #bfdbfe);
}

.rank-info {
    display: grid;
}

.rank-info small {
    color: rgba(255, 255, 255, 0.66);
}

.rank-score {
    color: #fff;
    font-weight: 900;
}

.poster-wall,
.compact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

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

.compact-card {
    display: grid;
    gap: 7px;
    color: #111827;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.compact-card img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
    background: linear-gradient(135deg, #f9a8d4, #c4b5fd, #bfdbfe);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.compact-card span {
    overflow: hidden;
    font-weight: 900;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.compact-card small {
    overflow: hidden;
    color: var(--muted);
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sub-hero,
.play-hero {
    position: relative;
    padding: 86px 0 72px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.16), transparent 24%),
        linear-gradient(135deg, #ec4899, #a855f7 52%, #60a5fa);
}

.sub-hero::after,
.play-hero::after {
    position: absolute;
    right: -120px;
    bottom: -160px;
    width: 360px;
    height: 360px;
    content: "";
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.sub-hero .container,
.play-hero .container {
    position: relative;
    z-index: 2;
}

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

.category-overview-card {
    display: grid;
    gap: 20px;
    padding: 24px;
    border-radius: var(--radius);
}

.category-overview-head {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 16px;
    align-items: start;
}

.category-overview-head span {
    font-size: 42px;
}

.category-overview-head h2 {
    margin: 0 0 6px;
    font-size: 26px;
    font-weight: 950;
}

.category-overview-head p {
    margin: 0;
    color: var(--muted);
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 360px);
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.filter-bar input {
    padding: 14px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

.detail-hero {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    color: #fff;
    background: #111827;
}

.detail-bg {
    filter: blur(3px) saturate(1.05);
    transform: scale(1.04);
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 310px 1fr;
    align-items: center;
    min-height: 620px;
    gap: 48px;
    padding: 56px 0;
}

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

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

.detail-stats {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.82);
}

.player-section {
    padding: 48px 0;
    background: #0f172a;
}

.section-title.compact {
    color: #fff;
}

.section-title.compact h2 {
    color: #fff;
}

.section-title.compact p {
    color: rgba(255, 255, 255, 0.72);
}

.player-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 24px;
    align-items: start;
}

.player-card {
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36);
}

.movie-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border: 0;
    color: #fff;
    background: rgba(236, 72, 153, 0.9);
    border-radius: 999px;
    box-shadow: 0 18px 45px rgba(236, 72, 153, 0.35);
    font-size: 34px;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.play-overlay:hover {
    transform: translate(-50%, -50%) scale(1.08);
}

.player-card.is-playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.player-status {
    position: absolute;
    right: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
    padding: 7px 11px;
    color: #fff;
    background: rgba(0, 0, 0, 0.58);
    border-radius: 999px;
    font-size: 13px;
    backdrop-filter: blur(8px);
}

.player-side {
    padding: 20px;
    border-radius: 24px;
}

.player-side h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 22px;
}

.player-side .compact-card span {
    color: #fff;
}

.prose-panel {
    padding: 28px;
    border-radius: var(--radius);
}

.prose-panel h2 {
    margin: 0 0 12px;
    color: #111827;
    font-size: 26px;
    font-weight: 950;
}

.prose-panel h2:not(:first-child) {
    margin-top: 28px;
}

.prose-panel p {
    margin: 0;
    color: #4b5563;
    font-size: 17px;
}

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

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

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

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

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

.ranking-card {
    display: grid;
    grid-template-columns: 64px 96px 1fr 130px;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ranking-number {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    color: #fff;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    border-radius: 18px;
    font-size: 24px;
    font-weight: 950;
}

.ranking-thumb img {
    width: 96px;
    height: 128px;
    object-fit: cover;
    border-radius: 16px;
    background: linear-gradient(135deg, #f9a8d4, #c4b5fd, #bfdbfe);
}

.ranking-stats {
    display: grid;
    justify-items: end;
    gap: 4px;
    color: var(--muted);
}

.ranking-stats strong {
    color: #111827;
    font-size: 22px;
}

.ranking-stats a {
    margin-top: 6px;
    padding: 8px 14px;
    color: #fff;
    background: var(--pink);
    border-radius: 999px;
    font-weight: 900;
}

.movie-index-list {
    display: grid;
    gap: 8px;
}

.movie-index-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 0.6fr) minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 13px 16px;
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.movie-index-row span {
    color: var(--pink-dark);
    font-weight: 950;
}

.movie-index-row strong,
.movie-index-row small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.movie-index-row small {
    color: var(--muted);
}

.search-summary {
    margin: 20px 0;
    color: var(--muted);
    font-weight: 800;
}

.search-page-form {
    max-width: 720px;
}

.play-hero {
    padding-bottom: 44px;
}

.play-info {
    padding-top: 40px;
}

.site-footer {
    color: #d1d5db;
    background: linear-gradient(135deg, #111827, #1f2937);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.8fr 0.8fr 1fr;
    gap: 34px;
    padding: 52px 0;
}

.site-footer h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 17px;
}

.site-footer p {
    margin: 12px 0 0;
    color: #9ca3af;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: #d1d5db;
}

.site-footer a:hover {
    color: #f9a8d4;
}

.footer-bottom {
    padding: 18px;
    color: #9ca3af;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hidden-by-filter {
    display: none !important;
}

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

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

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

    .mobile-menu-button {
        display: block;
    }
}

@media (max-width: 820px) {
    .hero-content,
    .detail-layout,
    .player-layout,
    .split-grid,
    .quick-search-inner,
    .filter-bar,
    .footer-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-content {
        align-content: center;
        padding: 64px 0 88px;
    }

    .hero-poster {
        display: none;
    }

    .hero-prev,
    .hero-next {
        display: none;
    }

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

    .ranking-card {
        grid-template-columns: 52px 78px 1fr;
    }

    .ranking-stats {
        grid-column: 3;
        justify-items: start;
    }

    .detail-layout {
        padding-top: 36px;
    }

    .detail-poster {
        max-width: 260px;
        transform: none;
    }

    .movie-index-row {
        grid-template-columns: 60px minmax(0, 1fr);
    }

    .movie-index-row small {
        grid-column: 2;
    }
}

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

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

    .brand-icon {
        width: 34px;
        height: 34px;
    }

    .brand-text {
        font-size: 19px;
    }

    .hero-copy h1,
    .detail-info h1,
    .sub-hero h1,
    .play-hero h1 {
        font-size: 36px;
    }

    .hero-copy p,
    .detail-one-line,
    .sub-hero p,
    .play-hero p {
        font-size: 16px;
    }

    .movie-grid.large,
    .movie-grid,
    .category-grid,
    .poster-wall,
    .compact-grid,
    .info-list {
        grid-template-columns: 1fr;
    }

    .section-title.with-link {
        align-items: flex-start;
        flex-direction: column;
    }

    .ranking-card {
        grid-template-columns: 48px 1fr;
    }

    .ranking-thumb {
        display: none;
    }

    .ranking-content,
    .ranking-stats {
        grid-column: 2;
    }

    .play-overlay {
        width: 66px;
        height: 66px;
        font-size: 26px;
    }
}
