@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #f8bbd0;
    --primary-lighter: #fce4ec;
    --white: #ffffff;
    --text-dark: #333333;
    --text-gray: #666666;
    --text-light: #999999;
    --bg-light: #fdf2f8;
    --shadow-sm: 0 2px 8px rgba(233, 30, 99, 0.1);
    --shadow-md: 0 4px 16px rgba(233, 30, 99, 0.15);
    --shadow-lg: 0 8px 32px rgba(233, 30, 99, 0.2);
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ Header ============ */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 28px;
    color: var(--primary);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.nav {
    display: flex;
    gap: 32px;
}

.nav a {
    font-weight: 500;
    font-size: 15px;
    color: var(--text-dark);
    position: relative;
    padding: 4px 0;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

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

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-box {
    display: flex;
    align-items: center;
    background: var(--primary-lighter);
    border-radius: 24px;
    padding: 6px 16px;
    width: 240px;
}

.search-box input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    font-size: 14px;
    color: var(--text-dark);
}

.search-box input::placeholder {
    color: var(--text-light);
}

.search-box button {
    background: var(--primary);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.btn-login {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 8px 24px;
    border-radius: 24px;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============ Hero Banner ============ */
.hero {
    position: relative;
    height: 500px;
    background: linear-gradient(135deg, #fce4ec 0%, #f8bbd0 50%, #e91e63 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1489599849927-2ee91cede3ba?w=1600&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.35;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.hero-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    width: fit-content;
    margin-bottom: 16px;
}

.hero h1 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 56px;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
    font-size: 18px;
    max-width: 560px;
    margin-bottom: 28px;
    line-height: 1.8;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px 36px;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: 12px 32px;
    border-radius: 28px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.hero-stats {
    position: absolute;
    bottom: 40px;
    right: 40px;
    display: flex;
    gap: 40px;
    z-index: 2;
}

.stat-item {
    text-align: center;
    color: white;
}

.stat-number {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 36px;
    display: block;
}

.stat-label {
    font-size: 13px;
    opacity: 0.9;
}

/* ============ Section Title ============ */
.section {
    padding: 60px 0;
}

.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.section-title h2 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 32px;
    color: var(--text-dark);
    position: relative;
    padding-left: 16px;
}

.section-title h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 32px;
    background: var(--primary);
    border-radius: 2px;
}

.section-more {
    color: var(--primary);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.section-more:hover {
    color: var(--primary-dark);
}

/* ============ Category Entry ============ */
.category-section {
    background: var(--bg-light);
}

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

.category-card {
    background: white;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

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

.category-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-lighter), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.category-card h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.category-card p {
    font-size: 13px;
    color: var(--text-light);
}

/* ============ Horizontal Scroll Cards ============ */
.scroll-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-behavior: smooth;
}

.scroll-container::-webkit-scrollbar {
    height: 6px;
}

.scroll-container::-webkit-scrollbar-track {
    background: var(--primary-lighter);
    border-radius: 3px;
}

.scroll-container::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 3px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.media-card {
    flex: 0 0 200px;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

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

.media-card-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.media-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.media-card:hover .media-card-image img {
    transform: scale(1.08);
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.badge.hot {
    background: linear-gradient(135deg, #ff5722, #ff9800);
}

.badge.new {
    background: linear-gradient(135deg, #4caf50, #8bc34a);
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.media-card:hover .play-overlay {
    opacity: 1;
}

.play-icon {
    width: 56px;
    height: 56px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    transform: scale(0.8);
    transition: transform 0.3s;
}

.media-card:hover .play-icon {
    transform: scale(1);
}

.media-card-info {
    padding: 14px;
}

.media-card-info h3 {
    font-size: 15px;
    color: var(--text-dark);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.media-card-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-light);
}

.media-card-meta .rating {
    color: #ff9800;
    font-weight: 500;
}

.media-card-meta .rating::before {
    content: '★';
    margin-right: 2px;
}

/* ============ Grid Cards ============ */
.media-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

/* ============ Filter Tabs ============ */
.filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 20px;
    border: 2px solid var(--primary-light);
    border-radius: 24px;
    background: white;
    color: var(--text-dark);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.filter-tab:hover,
.filter-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ============ Detail Page ============ */
.detail-hero {
    background: linear-gradient(135deg, #fce4ec, #f8bbd0);
    padding: 60px 0;
}

.detail-info {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: start;
}

.detail-poster {
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.detail-poster img {
    width: 100%;
    height: 420px;
    object-fit: cover;
}

.detail-content h1 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 42px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.detail-meta span {
    background: white;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 13px;
    color: var(--text-gray);
}

.detail-meta .rating-big {
    background: var(--primary);
    color: white;
    font-weight: 500;
}

.detail-desc {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 24px;
}

.detail-actions {
    display: flex;
    gap: 16px;
}

/* ============ Rank Page ============ */
.rank-section {
    padding: 60px 0;
}

.rank-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    background: var(--primary-lighter);
    padding: 6px;
    border-radius: 30px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.rank-tab {
    padding: 10px 28px;
    border-radius: 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    background: transparent;
}

.rank-tab.active {
    background: var(--primary);
    color: white;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 60px 120px 1fr auto;
    gap: 20px;
    align-items: center;
    background: white;
    border-radius: var(--radius);
    padding: 16px 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.rank-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.rank-number {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 36px;
    color: var(--primary-light);
    text-align: center;
}

.rank-item:nth-child(1) .rank-number {
    color: #ff4500;
}

.rank-item:nth-child(2) .rank-number {
    color: #ff8c00;
}

.rank-item:nth-child(3) .rank-number {
    color: #ffa500;
}

.rank-cover {
    width: 100%;
    height: 70px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-info h3 {
    font-size: 17px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.rank-info p {
    font-size: 13px;
    color: var(--text-light);
}

.rank-score {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 28px;
    color: var(--primary);
}

/* ============ Page Header ============ */
.page-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 60px 0 40px;
    color: white;
}

.page-header h1 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 40px;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 16px;
    opacity: 0.9;
}

/* ============ About Page ============ */
.about-section {
    padding: 60px 0;
}

.about-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 60px;
}

.about-block.reverse {
    direction: rtl;
}

.about-block.reverse > * {
    direction: ltr;
}

.about-image {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

.about-text h2 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 32px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.about-text p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 12px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.value-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: all 0.3s;
}

.value-card:hover {
    background: var(--primary-lighter);
    transform: translateY(-4px);
}

.value-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.value-card h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.value-card p {
    font-size: 13px;
    color: var(--text-gray);
}

/* ============ Contact Page ============ */
.contact-section {
    padding: 60px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2,
.contact-form h2 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 28px;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.contact-list {
    display: grid;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.contact-item h3 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.contact-item p {
    font-size: 14px;
    color: var(--text-gray);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--primary-light);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============ Footer ============ */
.footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 0 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-family: 'Ma Shan Zheng', cursive;
    font-size: 24px;
    color: var(--primary-light);
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    transition: all 0.3s;
}

.social-link:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    font-size: 16px;
    color: white;
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    font-size: 14px;
    color: #aaa;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #888;
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
    .media-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

    .about-block {
        grid-template-columns: 1fr;
    }

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

    .rank-item {
        grid-template-columns: 50px 80px 1fr auto;
    }
}

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

    .search-box {
        width: 160px;
    }

    .hero {
        height: 420px;
    }

    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 15px;
    }

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

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

    .hero-stats {
        display: none;
    }

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

    .section-title h2 {
        font-size: 24px;
    }

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

    .rank-item {
        grid-template-columns: 40px 60px 1fr;
        gap: 12px;
    }

    .rank-score {
        display: none;
    }

    .media-card {
        flex: 0 0 150px;
    }

    .media-card-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .header .container {
        height: 60px;
    }

    .logo {
        font-size: 22px;
    }

    .search-box {
        display: none;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        justify-content: center;
    }
}