:root {
    --bg-base: #06060a;
    --bg-card: #111116;
    --text-main: #ffffff;
    --text-sub: #9AA0B2;
    --brand-yellow: #FFD54A;
    --brand-orange: #FFA000;
    --accent-cyan: #00E6A8;
    --accent-purple: #7C5CFF;
    --accent-pink: #FF5C8A;
    --border-light: rgba(255, 255, 255, 0.08);
    --grad-brand: linear-gradient(135deg, var(--brand-yellow), var(--brand-orange));
    --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}
.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}
.glow-y { position: absolute; top: -10%; left: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(255,213,74,0.1) 0%, transparent 60%); border-radius: 50%; }
.glow-p { position: absolute; top: 20%; right: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, rgba(124,92,255,0.08) 0%, transparent 60%); border-radius: 50%; }
.glow-c { position: absolute; bottom: -20%; left: 20%; width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(0,230,168,0.05) 0%, transparent 60%); border-radius: 50%; }

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

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: all 0.3s ease;
    padding: 20px 0;
    background: transparent;
}
header.scrolled {
    background: rgba(6, 6, 10, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 20px;
    letter-spacing: 1px;
}
.brand img {
    height: 32px;
    width: auto;
}
.nav-links {
    display: flex;
    gap: 30px;
}
.nav-links a {
    color: var(--text-sub);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover {
    color: var(--brand-yellow);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}
.search-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 8px 16px;
    color: var(--text-sub);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-download {
    background: var(--grad-brand);
    color: #000;
    font-weight: 700;
    padding: 10px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 15px;
    transition: transform 0.2s;
    border: none;
    cursor: pointer;
    display: inline-block;
}
.btn-download:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-text h1 {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 2px;
}
.hero-tag {
    display: inline-block;
    background: rgba(255, 213, 74, 0.1);
    color: var(--brand-yellow);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 213, 74, 0.2);
}
.hero-sub {
    font-size: 18px;
    color: var(--text-sub);
    margin-bottom: 40px;
    max-width: 90%;
}
.hero-cta {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
}
.btn-primary {
    background: var(--grad-brand);
    color: #000;
    padding: 16px 40px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    transition: filter 0.3s;
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text-main);
    padding: 16px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border: 1px solid var(--border-light);
    transition: background 0.3s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.1); }
.hero-stats {
    display: flex;
    gap: 40px;
}
.stat-item h4 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 4px;
}
.stat-item p {
    font-size: 14px;
    color: var(--text-sub);
}

/* Hero Visual (Phone) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}
.phone-mockup {
    width: 300px;
    height: 620px;
    background: #000;
    border-radius: 40px;
    border: 8px solid #222;
    position: relative;
    overflow: hidden;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.1);
}
.hero-visual:hover .phone-mockup {
    transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
}
.phone-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 32px;
}
.floating-card {
    position: absolute;
    background: rgba(17, 17, 22, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    animation: float 4s ease-in-out infinite;
}
.card-hot { top: 10%; right: -20px; color: var(--accent-pink); border-color: rgba(255,92,138,0.3); }
.card-ai { bottom: 20%; left: -30px; color: var(--accent-cyan); border-color: rgba(0,230,168,0.3); animation-delay: 2s;}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Marquee */
.marquee-bar {
    background: rgba(255,255,255,0.02);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 16px 0;
    overflow: hidden;
    white-space: nowrap;
}
.marquee-content {
    display: inline-block;
    animation: scrollText 20s linear infinite;
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 500;
}
.marquee-content span {
    margin: 0 30px;
    color: var(--brand-yellow);
}
@keyframes scrollText {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Sections Common */
section {
    padding: 100px 0;
}
.section-header {
    margin-bottom: 50px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.section-title {
    font-size: 36px;
    font-weight: 800;
}
.section-title span {
    color: var(--brand-yellow);
}
.section-desc {
    color: var(--text-sub);
    font-size: 16px;
    margin-top: 10px;
}

/* Emotion Tabs */
.emotion-tabs {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.emo-tab {
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid transparent;
}
.emo-tab.active { background: var(--grad-brand); color: #000; }
.emo-tab.t1 { background: rgba(255,92,138,0.1); color: var(--accent-pink); border-color: rgba(255,92,138,0.2); }
.emo-tab.t2 { background: rgba(124,92,255,0.1); color: var(--accent-purple); border-color: rgba(124,92,255,0.2); }
.emo-tab.t3 { background: rgba(0,230,168,0.1); color: var(--accent-cyan); border-color: rgba(0,230,168,0.2); }

/* Grid Layouts */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.drama-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
}
.drama-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,213,74,0.3);
}
.drama-img-wrap {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
}
.drama-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.drama-card:hover .drama-img-wrap img {
    transform: scale(1.05);
}
.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--grad-brand);
    color: #000;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 8px;
}
.card-info {
    padding: 16px;
}
.card-info h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.card-tags {
    font-size: 13px;
    color: var(--text-sub);
}

/* Ranking List */
.rank-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.rank-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.rank-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: rgba(255,255,255,0.02);
    border-radius: 16px;
    border: 1px solid transparent;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}
.rank-item:hover {
    background: rgba(255,255,255,0.05);
    border-color: var(--border-light);
    transform: translateX(10px);
}
.rank-num {
    font-size: 24px;
    font-weight: 900;
    width: 40px;
    text-align: center;
    font-style: italic;
}
.rank-num.n1 { color: #FFD54A; text-shadow: 0 0 10px rgba(255,213,74,0.5); }
.rank-num.n2 { color: #E0E0E0; }
.rank-num.n3 { color: #D88E5B; }
.rank-num.nx { color: var(--text-sub); font-size: 20px; }
.rank-info { flex: 1; }
.rank-info h4 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.rank-info p { font-size: 13px; color: var(--text-sub); }
.rank-heat {
    width: 100px;
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}
.rank-heat div {
    height: 100%;
    background: var(--grad-brand);
    border-radius: 3px;
}

/* Tech Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.tech-card {
    background: linear-gradient(145deg, rgba(17,17,22,1) 0%, rgba(10,10,15,1) 100%);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}
.tech-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(124,92,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}
.tech-card:nth-child(2)::before { background: radial-gradient(circle, rgba(0,230,168,0.1) 0%, transparent 70%); }
.tech-card:nth-child(3)::before { background: radial-gradient(circle, rgba(255,213,74,0.1) 0%, transparent 70%); }
.tech-card:nth-child(4)::before { background: radial-gradient(circle, rgba(255,92,138,0.1) 0%, transparent 70%); }
.tech-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}
.tech-card p {
    color: var(--text-sub);
    font-size: 15px;
    position: relative;
}

/* VIP Banner */
.vip-banner {
    background: linear-gradient(90deg, #1A1A20 0%, #111 100%);
    border-radius: 32px;
    padding: 60px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255,213,74,0.3);
    position: relative;
    overflow: hidden;
}
.vip-banner::after {
    content: '';
    position: absolute;
    right: 0; top: 0;
    width: 50%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 100 L100 0" stroke="rgba(255,213,74,0.1)" stroke-width="2"/></svg>') repeat;
    opacity: 0.5;
    pointer-events: none;
}
.vip-text { max-width: 50%; position: relative; z-index: 1; }
.vip-text h2 { font-size: 40px; font-weight: 900; color: var(--brand-yellow); margin-bottom: 16px; }
.vip-text p { color: var(--text-sub); font-size: 16px; margin-bottom: 30px; }

/* Download Section */
.download-section {
    text-align: center;
    padding: 120px 0;
    background: linear-gradient(180deg, transparent, rgba(255,213,74,0.05));
}
.download-section h2 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
}
.download-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-light);
    padding: 60px 0 30px;
    background: #030305;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand p {
    color: var(--text-sub);
    font-size: 14px;
    margin-top: 16px;
    max-width: 300px;
}
.footer-col h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
}
.footer-col a {
    display: block;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 12px;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--brand-yellow); }
.footer-bottom {
    text-align: center;
    color: var(--text-sub);
    font-size: 12px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-text h1 { font-size: 48px; }
    .hero-inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-sub { margin: 0 auto 30px; }
    .hero-cta { justify-content: center; }
    .hero-stats { justify-content: center; }
    .nav-links { display: none; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .vip-banner { flex-direction: column; text-align: center; gap: 30px; }
    .vip-text { max-width: 100%; }
}
@media (max-width: 768px) {
    .header-actions .search-box { display: none; }
    .hero-text h1 { font-size: 36px; }
    .hero-cta { flex-direction: column; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .grid-4 { grid-template-columns: 1fr; }
    .rank-container { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: 1fr; }
    .download-btns { flex-direction: column; align-items: center; }
    .download-btns a { width: 100%; max-width: 300px; }
}