* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2937;
    background: linear-gradient(135deg, #fdf2f8 0%, #fff7ed 52%, #fefce8 100%);
    min-height: 100vh;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, #ec4899, #f97316, #eab308);
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.34);
}

.brand-mark.small {
    width: 30px;
    height: 30px;
    border-radius: 10px;
}

.brand-text {
    font-size: 24px;
    line-height: 1;
    font-weight: 800;
    background: linear-gradient(90deg, #ec4899, #f97316, #eab308);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    white-space: nowrap;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 650;
    color: #374151;
}

.desktop-nav a,
.nav-dropdown > a {
    padding: 10px 0;
    transition: color 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.nav-dropdown:hover > a {
    color: #ec4899;
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 0;
    width: 210px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: 0.2s ease;
}

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

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #4b5563;
}

.dropdown-panel a:hover {
    background: #fdf2f8;
    color: #ec4899;
}

.site-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    position: relative;
}

.site-search input {
    width: 280px;
    padding: 11px 44px 11px 16px;
    border: 0;
    outline: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-search input:focus {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(249, 168, 212, 0.6);
}

.site-search button {
    position: absolute;
    right: 5px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #9ca3af;
    font-size: 20px;
    cursor: pointer;
}

.site-search button:hover {
    color: #ec4899;
}

.menu-button {
    display: none;
    margin-left: auto;
    border: 0;
    background: transparent;
    font-size: 28px;
    color: #374151;
    cursor: pointer;
}

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

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

.mobile-panel nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.mobile-panel nav a {
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff;
    color: #4b5563;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

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

.main-space {
    padding: 32px 0 64px;
}

.hero {
    position: relative;
    min-height: 500px;
    margin-bottom: 64px;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 28px 70px rgba(124, 45, 18, 0.24);
    background: linear-gradient(90deg, #ec4899, #f97316, #eab308);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 45%, rgba(255, 255, 255, 0.24) 0%, transparent 36%),
        radial-gradient(circle at 82% 78%, rgba(255, 255, 255, 0.17) 0%, transparent 42%);
}

.hero-content {
    position: relative;
    z-index: 1;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px 28px;
    text-align: center;
    color: #fff;
}

.hero h1 {
    margin: 0;
    font-size: clamp(34px, 7vw, 68px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    animation: softPulse 2.8s ease-in-out infinite;
}

.hero-subtitle {
    max-width: 760px;
    margin: 18px auto 30px;
    font-size: clamp(17px, 2.2vw, 23px);
    color: #fff7ed;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

.hero-btn,
.cta-button,
.text-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hero-btn.primary,
.cta-button {
    color: #ec4899;
    background: #fff;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.hero-btn.secondary,
.text-button {
    color: #fff;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.28);
}

.hero-btn:hover,
.cta-button:hover,
.text-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.18);
}

.hero-featured {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    width: min(760px, 100%);
}

.hero-card {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 18px 30px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.16);
    transform: translateZ(0);
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

.hero-card span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    color: #fff;
    font-weight: 850;
    text-align: center;
    background: rgba(0, 0, 0, 0.38);
    transition: background 0.2s ease;
}

.hero-card:hover img {
    transform: scale(1.12);
}

.hero-card:hover span {
    background: rgba(0, 0, 0, 0.55);
}

@keyframes softPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.72; }
}

.section {
    margin-bottom: 64px;
}

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

.section-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 900;
    color: #1f2937;
}

.section-title .icon {
    color: #ec4899;
}

.section-desc {
    max-width: 820px;
    margin: -8px 0 24px;
    color: #6b7280;
    line-height: 1.8;
}

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

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

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

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

.card-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 52px rgba(15, 23, 42, 0.17);
}

.poster-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, #fdf2f8, #ffedd5);
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease;
}

.card-link:hover .poster-frame img {
    transform: scale(1.08);
    filter: saturate(1.08);
}

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.55), transparent 52%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card-link:hover .poster-frame::after {
    opacity: 1;
}

.duration,
.category-badge {
    position: absolute;
    z-index: 1;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.duration {
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.78);
}

.category-badge {
    left: 10px;
    top: 10px;
    background: linear-gradient(90deg, #ec4899, #f97316);
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    margin: 0 0 8px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 850;
    color: #1f2937;
}

.card-body p {
    min-height: 44px;
    margin: 0 0 14px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.58;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: #6b7280;
    font-size: 12px;
}

.card-meta span {
    padding: 4px 8px;
    border-radius: 999px;
    background: #f9fafb;
}

.feature-panel {
    border-radius: 28px;
    padding: 32px;
    background: linear-gradient(90deg, #fce7f3, #ffedd5, #fef9c3);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

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

.category-card {
    display: block;
    padding: 24px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px rgba(15, 23, 42, 0.15);
}

.category-card h2 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 900;
    color: #1f2937;
}

.category-card p {
    margin: 0 0 16px;
    color: #6b7280;
    line-height: 1.7;
}

.category-card .preview-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.category-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    object-fit: cover;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 12px;
    margin: 24px 0;
}

.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 16px;
    padding: 13px 16px;
    background: #fff;
    color: #374151;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 44px 84px 1fr auto;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
}

.rank-num {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, #ec4899, #f97316);
}

.rank-item img {
    width: 84px;
    height: 58px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 800;
    color: #1f2937;
}

.rank-extra {
    color: #9ca3af;
    font-size: 13px;
    white-space: nowrap;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #ec4899;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: 28px;
    align-items: start;
    margin-bottom: 42px;
}

.player-card,
.detail-side,
.content-card {
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.1);
    overflow: hidden;
}

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

.movie-player video {
    width: 100%;
    height: 100%;
    background: #000;
}

.play-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.28);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

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

.play-toggle {
    position: relative;
    z-index: 1;
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 999px;
    color: #ec4899;
    background: rgba(255, 255, 255, 0.95);
    font-size: 30px;
    cursor: pointer;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
    transition: transform 0.2s ease;
}

.play-toggle:hover {
    transform: scale(1.08);
}

.player-caption {
    padding: 20px 22px 24px;
}

.player-caption h1 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 900;
    color: #111827;
}

.player-caption p {
    margin: 0;
    color: #4b5563;
    line-height: 1.8;
}

.detail-side {
    padding: 24px;
}

.detail-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 22px;
    object-fit: cover;
    margin-bottom: 20px;
}

.meta-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 14px 0;
}

.meta-pills span,
.tag-list a,
.tag-list span {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    background: #fdf2f8;
    color: #db2777;
    font-size: 13px;
    font-weight: 750;
}

.detail-side dl {
    margin: 18px 0 0;
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 10px 14px;
    color: #4b5563;
}

.detail-side dt {
    color: #9ca3af;
}

.content-card {
    padding: 28px;
    margin-bottom: 32px;
}

.content-card h2 {
    margin: 0 0 16px;
    font-size: 26px;
    font-weight: 900;
    color: #1f2937;
}

.content-card p {
    margin: 0 0 16px;
    color: #374151;
    line-height: 1.9;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.search-hero {
    padding: 42px;
    margin-bottom: 36px;
    border-radius: 28px;
    color: #fff;
    background: linear-gradient(90deg, #831843, #9a3412, #713f12);
    box-shadow: 0 22px 52px rgba(124, 45, 18, 0.25);
}

.search-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 900;
}

.search-hero p {
    max-width: 760px;
    margin: 0;
    color: #fce7f3;
    line-height: 1.8;
}

.empty-state {
    padding: 38px;
    text-align: center;
    color: #6b7280;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.site-footer {
    color: #fff;
    background: linear-gradient(90deg, #831843, #7c2d12, #713f12);
}

.footer-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 36px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-size: 21px;
    font-weight: 900;
}

.site-footer p,
.site-footer a {
    color: #fbcfe8;
    line-height: 1.8;
    font-size: 14px;
}

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

.site-footer h3 {
    margin: 0 0 14px;
    font-size: 18px;
}

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

.footer-copy {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(251, 207, 232, 0.25);
    color: #fbcfe8;
    text-align: center;
    font-size: 14px;
}

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

    .menu-button {
        display: block;
    }

    .mobile-search {
        display: flex;
        width: 100%;
    }

    .mobile-search input {
        width: 100%;
    }

    .hero-featured,
    .card-grid,
    .category-list,
    .rank-list,
    .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 640px) {
    .header-inner {
        height: 64px;
    }

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

    .hero {
        min-height: 560px;
        border-radius: 24px;
    }

    .hero-content {
        min-height: 560px;
        padding: 32px 18px;
    }

    .hero-featured,
    .card-grid,
    .card-grid.three,
    .card-grid.two,
    .category-list,
    .rank-list,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-bar {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 36px 72px 1fr;
    }

    .rank-extra {
        grid-column: 3;
    }

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