:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --pink-500: #ec4899;
    --pink-600: #db2777;
    --red-900: #7f1d1d;
    --text-900: #111827;
    --text-700: #374151;
    --text-500: #6b7280;
    --border: #f3d4dc;
    --shadow: 0 16px 42px rgba(190, 18, 60, 0.12);
    --shadow-lg: 0 24px 70px rgba(190, 18, 60, 0.20);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-900);
    background: linear-gradient(180deg, #fff7f8 0%, #ffffff 30%, #fff8fa 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--rose-100);
    box-shadow: 0 10px 30px rgba(190, 18, 60, 0.08);
}

.header-inner {
    width: min(100%, var(--container));
    height: 78px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}

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

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
    box-shadow: 0 14px 28px rgba(244, 63, 94, 0.32);
    transition: transform 0.25s ease;
}

.brand:hover .brand-icon {
    transform: scale(1.06) rotate(-3deg);
}

.brand-icon svg,
.header-search svg,
.play-badge svg,
.big-play svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.brand-text {
    display: grid;
    gap: 2px;
}

.brand-text strong {
    font-size: 22px;
    line-height: 1;
    letter-spacing: 0.03em;
    background: linear-gradient(90deg, var(--rose-600), var(--pink-600));
    -webkit-background-clip: text;
    color: transparent;
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.desktop-nav a {
    color: var(--text-700);
    font-weight: 650;
    transition: color 0.2s ease;
}

.desktop-nav a:hover {
    color: var(--rose-600);
}

.header-search {
    width: 252px;
    position: relative;
    flex: 0 0 auto;
}

.header-search input,
.mobile-search input,
.local-filter input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 11px 44px 11px 16px;
    outline: none;
    color: var(--text-700);
    background: #ffffff;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.header-search input:focus,
.mobile-search input:focus,
.local-filter input:focus {
    border-color: var(--rose-500);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.12);
}

.header-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    color: var(--rose-600);
    background: var(--rose-50);
    cursor: pointer;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--rose-50);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--rose-600);
    border-radius: 999px;
}

.mobile-panel {
    display: none;
    border-top: 1px solid var(--rose-100);
    padding: 16px 20px 22px;
    background: #ffffff;
}

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

.mobile-search {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-search input {
    padding-right: 16px;
}

.mobile-search button {
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-600));
}

.mobile-panel nav {
    display: grid;
    gap: 8px;
}

.mobile-panel nav a {
    padding: 11px 14px;
    border-radius: 12px;
    color: var(--text-700);
    background: var(--rose-50);
}

.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 520px;
    overflow: hidden;
    background: #12050a;
}

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

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

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

.hero-slide.is-active img {
    transform: scale(1.0);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 5, 8, 0.86), rgba(36, 8, 22, 0.58) 45%, rgba(255, 255, 255, 0.06));
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100%, var(--container));
    height: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #ffffff;
    max-width: calc(var(--container) + 40px);
}

.hero-content h1 {
    max-width: 760px;
    margin: 18px 0 18px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 680px;
    margin: 0 0 24px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-pill,
.pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 14px;
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    font-size: 13px;
    font-weight: 750;
    box-shadow: 0 12px 24px rgba(244, 63, 94, 0.24);
}

.hero-meta,
.detail-meta-row,
.metric-row,
.tag-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.hero-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(12px);
}

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

.primary-btn,
.glass-btn,
.section-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-height: 46px;
    padding: 0 24px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-btn {
    color: #ffffff;
    background: linear-gradient(90deg, var(--rose-500), var(--pink-600));
    box-shadow: 0 18px 34px rgba(244, 63, 94, 0.32);
}

.primary-btn:hover,
.glass-btn:hover,
.section-more:hover {
    transform: translateY(-2px);
}

.primary-btn.light {
    color: var(--rose-600);
    background: #ffffff;
}

.glass-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(14px);
}

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

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

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

.main-container {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 56px 20px 0;
}

.content-section {
    margin-bottom: 72px;
}

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

.section-heading.centered {
    justify-content: center;
    text-align: center;
}

.section-heading h2,
.page-hero h1,
.detail-card h1,
.article-block h2,
.side-card h2 {
    margin: 0;
    color: var(--text-900);
    letter-spacing: -0.03em;
}

.section-heading h2 {
    font-size: clamp(28px, 4vw, 38px);
}

.section-heading p {
    margin: 8px 0 0;
    color: var(--text-500);
    line-height: 1.7;
}

.section-more {
    min-height: 40px;
    color: var(--rose-600);
    background: var(--rose-50);
    border: 1px solid var(--rose-100);
}

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

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

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

.movie-card {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #ffffff;
    box-shadow: var(--shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

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

.movie-poster {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #f8cdda, #f4f6fb);
}

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

.movie-card:hover .movie-poster img,
.side-item:hover img {
    transform: scale(1.08);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.48));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-shade {
    opacity: 1;
}

.play-badge,
.big-play {
    display: grid;
    place-items: center;
    color: var(--rose-600);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.duration-badge,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 750;
}

.duration-badge {
    right: 10px;
    bottom: 10px;
    padding: 5px 8px;
    background: rgba(0, 0, 0, 0.68);
}

.rank-badge {
    left: 10px;
    top: 10px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-600));
}

.movie-info {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.movie-info strong {
    min-height: 44px;
    color: var(--text-900);
    font-size: 17px;
    line-height: 1.32;
    transition: color 0.2s ease;
}

.movie-card:hover .movie-info strong {
    color: var(--rose-600);
}

.movie-desc {
    color: var(--text-500);
    font-size: 14px;
    line-height: 1.65;
}

.metric-row,
.tag-row {
    color: var(--text-500);
    font-size: 13px;
}

.tag-row .pill {
    padding: 5px 9px;
    font-size: 12px;
}

.movie-card-horizontal {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
}

.movie-card-horizontal .movie-poster {
    height: 100%;
    aspect-ratio: auto;
}

.movie-card-horizontal .movie-info {
    align-content: center;
    padding: 22px;
}

.movie-card-horizontal .movie-info strong {
    min-height: auto;
    font-size: 20px;
}

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

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

.category-tile {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: 26px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #ffffff;
    isolation: isolate;
    box-shadow: var(--shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-tile strong {
    font-size: 24px;
    margin-bottom: 10px;
}

.category-tile span:last-child {
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.62;
}

.category-glow {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.32), transparent 30%), linear-gradient(135deg, var(--rose-500), var(--pink-600));
}

.accent-pink .category-glow { background: linear-gradient(135deg, #ec4899, #be185d); }
.accent-orange .category-glow { background: linear-gradient(135deg, #f97316, #dc2626); }
.accent-red .category-glow { background: linear-gradient(135deg, #ef4444, #991b1b); }
.accent-violet .category-glow { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.accent-amber .category-glow { background: linear-gradient(135deg, #f59e0b, #b45309); }
.accent-cyan .category-glow { background: linear-gradient(135deg, #06b6d4, #0e7490); }
.accent-indigo .category-glow { background: linear-gradient(135deg, #6366f1, #4338ca); }
.accent-emerald .category-glow { background: linear-gradient(135deg, #10b981, #047857); }
.accent-slate .category-glow { background: linear-gradient(135deg, #64748b, #1e293b); }
.accent-blue .category-glow { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.accent-lime .category-glow { background: linear-gradient(135deg, #84cc16, #3f6212); }

.banner-cta {
    margin-bottom: 72px;
    border-radius: 32px;
    padding: clamp(30px, 5vw, 54px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--rose-600), var(--pink-600));
    box-shadow: var(--shadow-lg);
}

.banner-cta h2 {
    margin: 0 0 12px;
    font-size: clamp(26px, 4vw, 42px);
}

.banner-cta p {
    margin: 0;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.86);
    line-height: 1.75;
}

.masonry-grid {
    columns: 3 280px;
    column-gap: 22px;
}

.masonry-grid .movie-card {
    margin: 0 0 22px;
    break-inside: avoid;
}

.page-hero {
    color: #ffffff;
    background: radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.22), transparent 24%), linear-gradient(120deg, var(--rose-600), var(--pink-600), var(--red-900));
}

.page-hero > div {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 78px 20px 82px;
}

.page-hero.compact > div {
    padding-top: 56px;
    padding-bottom: 60px;
}

.page-hero h1 {
    margin-top: 18px;
    color: #ffffff;
    font-size: clamp(34px, 5vw, 56px);
}

.page-hero p {
    max-width: 760px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
    line-height: 1.78;
}

.toolbar-card {
    margin-bottom: 34px;
    padding: 22px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.local-filter {
    width: min(100%, 520px);
    display: grid;
    gap: 10px;
}

.local-filter label {
    color: var(--text-700);
    font-weight: 800;
}

.local-filter input {
    border-radius: 18px;
    padding-right: 16px;
}

.quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.quick-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--rose-600);
    background: var(--rose-50);
    border: 1px solid var(--rose-100);
    font-weight: 750;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--text-500);
    margin-bottom: 22px;
}

.breadcrumb a {
    color: var(--rose-600);
    font-weight: 750;
}

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

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

.player-card,
.detail-card,
.side-card {
    border-radius: var(--radius-xl);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.player-card {
    overflow: hidden;
    margin-bottom: 24px;
}

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #080307;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.62));
    cursor: pointer;
    font-weight: 900;
    font-size: 18px;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.big-play {
    width: 76px;
    height: 76px;
    color: var(--rose-600);
}

.big-play svg {
    width: 34px;
    height: 34px;
}

.detail-card {
    padding: clamp(22px, 4vw, 34px);
    margin-bottom: 34px;
}

.detail-meta-row {
    color: var(--text-500);
    margin-bottom: 18px;
}

.detail-card h1 {
    font-size: clamp(30px, 4.4vw, 48px);
    margin-bottom: 16px;
}

.lead-text {
    color: var(--text-700);
    font-size: 18px;
    line-height: 1.82;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 28px;
}

.tag-cloud span {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--rose-600);
    background: var(--rose-50);
    font-weight: 700;
}

.article-block {
    border-top: 1px solid var(--rose-100);
    padding-top: 24px;
    margin-top: 24px;
}

.article-block h2 {
    font-size: 24px;
    margin-bottom: 14px;
}

.article-block p {
    color: var(--text-700);
    line-height: 1.9;
    font-size: 16px;
}

.review-block {
    border-radius: 18px;
    border: 0;
    padding: 24px;
    background: linear-gradient(135deg, var(--rose-50), #fff7fb);
}

.related-section {
    margin-bottom: 0;
}

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

.side-card {
    position: sticky;
    top: 104px;
    padding: 20px;
}

.side-card h2 {
    font-size: 22px;
    margin-bottom: 18px;
}

.side-item {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    transition: background 0.2s ease;
}

.side-item:hover {
    background: var(--rose-50);
}

.side-item img {
    width: 112px;
    height: 74px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.side-item strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-900);
    line-height: 1.42;
}

.side-item small {
    display: block;
    margin-top: 8px;
    color: var(--text-500);
}

.site-footer {
    margin-top: 72px;
    color: #ffffff;
    background: linear-gradient(135deg, #881337, #831843, #7f1d1d);
}

.footer-grid {
    width: min(100%, var(--container));
    margin: 0 auto;
    padding: 48px 20px 34px;
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 34px;
}

.footer-brand {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 14px;
}

.site-footer h2 {
    margin: 0 0 14px;
    color: #ffe4e6;
    font-size: 18px;
}

.site-footer p,
.site-footer a,
.site-footer li {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.78;
}

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

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px 20px 22px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

[data-hidden="true"] {
    display: none !important;
}

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

    .header-search {
        margin-left: auto;
    }

    .menu-toggle {
        display: block;
    }

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

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

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

    .side-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .header-inner {
        height: 68px;
        padding: 0 14px;
    }

    .brand-text small,
    .header-search {
        display: none;
    }

    .brand-icon {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

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

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

    .hero-content {
        padding: 0 18px 60px;
        justify-content: flex-end;
    }

    .hero-actions,
    .banner-cta,
    .toolbar-card,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions a,
    .primary-btn,
    .glass-btn {
        width: 100%;
    }

    .main-container {
        padding: 42px 14px 0;
    }

    .card-grid,
    .horizontal-grid,
    .small-grid,
    .category-grid,
    .category-grid-large,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal {
        grid-template-columns: 1fr;
    }

    .movie-card-horizontal .movie-poster {
        aspect-ratio: 16 / 10;
    }

    .page-hero > div {
        padding: 50px 14px 54px;
    }

    .detail-container {
        padding-top: 24px;
    }

    .detail-card {
        padding: 20px;
    }

    .side-item {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .side-item img {
        width: 104px;
        height: 70px;
    }
}
