:root {
    --bg-dark: #0a0a0c;
    --bg-panel: rgba(255, 255, 255, 0.03);
    --bg-panel-hover: rgba(255, 255, 255, 0.08);
    --neon-pink: #ff007f;
    --neon-purple: #7000ff;
    --neon-blue: #00f0ff;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border-color: rgba(255, 255, 255, 0.1);
    
    --gradient-1: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    --gradient-2: linear-gradient(135deg, var(--neon-purple), var(--neon-blue));
    --gradient-3: linear-gradient(135deg, var(--neon-blue), var(--neon-pink));
}

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

body {
    font-family: 'Noto Sans KR', 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography & Utilities */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.neon-text {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 0, 127, 0.5);
}

.text-gradient {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 12, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.nav-brand {
    font-size: 24px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 1px;
}

.nav-brand span {
    color: var(--neon-pink);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--neon-pink);
}

.login-btn {
    background: transparent;
    border: 1px solid var(--neon-purple);
    color: var(--text-main);
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    background: var(--neon-purple);
    box-shadow: 0 0 15px rgba(112, 0, 255, 0.5);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 20px;
    background: radial-gradient(circle at center, rgba(112, 0, 255, 0.2) 0%, var(--bg-dark) 70%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1574623452334-1e0ac2b3ccb4?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    z-index: 1;
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 0, 127, 0.1);
    border: 1px solid rgba(255, 0, 127, 0.3);
    color: var(--neon-pink);
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.primary-btn {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 0, 127, 0.4);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 0, 127, 0.6);
}

.secondary-btn {
    background: var(--bg-panel);
    color: white;
    border: 1px solid var(--border-color);
}

.secondary-btn:hover {
    background: var(--bg-panel-hover);
    border-color: var(--neon-blue);
    transform: translateY(-3px);
}

/* Sections Common */
.section {
    padding: 100px 5%;
}

.dark-bg {
    background: rgba(0, 0, 0, 0.3);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.left-align {
    text-align: left;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.section-header h2 i {
    color: var(--neon-blue);
    margin-right: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s;
}

.news-card:hover {
    transform: translateY(-10px);
    border-color: var(--neon-purple);
    box-shadow: 0 20px 40px rgba(112, 0, 255, 0.15);
}

.news-img {
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.news-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--gradient-1);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.news-info {
    padding: 25px;
}

.news-date {
    font-size: 13px;
    color: var(--neon-blue);
    font-weight: 600;
    margin-bottom: 10px;
    display: block;
}

.news-info h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.news-info p {
    color: var(--text-muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Trending Videos */
.video-scroll {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 40px;
    scrollbar-width: thin;
    scrollbar-color: var(--neon-purple) var(--bg-dark);
}

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

.video-scroll::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    border-radius: 10px;
}

.video-card {
    min-width: 350px;
    cursor: pointer;
}

.video-card:hover .video-thumb {
    border-color: var(--neon-pink);
    transform: scale(1.02);
}

.video-card:hover .play-icon {
    transform: scale(1.2);
    color: var(--neon-pink);
}

.video-thumb {
    height: 200px;
    background: linear-gradient(45deg, #1a1a2e, #16213e);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.video-thumb::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1514525253161-7a46d19cd819?auto=format&fit=crop&q=80&w=400');
    background-size: cover;
    opacity: 0.4;
    mix-blend-mode: overlay;
}

.play-icon {
    font-size: 40px;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
    z-index: 10;
}

.video-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.video-views {
    font-size: 13px;
    color: var(--text-muted);
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

@media (max-width: 900px) {
    .split-layout {
        grid-template-columns: 1fr;
    }
}

/* Rankings */
.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rank-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s;
}

.rank-item:hover {
    background: var(--bg-panel-hover);
    transform: translateX(10px);
}

.rank-num {
    font-size: 24px;
    font-weight: 800;
    width: 40px;
}

.rank-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 20px;
}

.bg-pink { background: linear-gradient(135deg, #ff758c 0%, #ff7eb3 100%); }
.bg-purple { background: linear-gradient(135deg, #89f7fe 0%, #66a6ff 100%); }
.bg-blue { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.bg-orange { background: linear-gradient(135deg, #f6d365 0%, #fda085 100%); }
.bg-teal { background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%); }

.rank-details {
    flex: 1;
}

.rank-details h4 {
    font-size: 18px;
    margin-bottom: 2px;
}

.rank-details span {
    font-size: 13px;
    color: var(--text-muted);
}

.rank-trend {
    font-size: 18px;
}

.rank-trend.up { color: #00f0ff; }
.rank-trend.down { color: #ff007f; }
.rank-trend.neutral { color: var(--text-muted); }

/* Fandom Stats */
.glass-panel {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.stat-row {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.stat-row:last-child {
    margin-bottom: 0;
}

.stat-label {
    width: 130px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-bar-container {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    margin: 0 20px;
}

.stat-bar {
    height: 100%;
    border-radius: 10px;
    position: relative;
}

.stat-bar::after {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 10px; height: 100%;
    background: #fff;
    opacity: 0.5;
    filter: blur(5px);
}

.stat-value {
    width: 40px;
    text-align: right;
    font-weight: 700;
    font-size: 14px;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid var(--border-color);
    padding: 60px 5% 20px;
    text-align: center;
}

.footer-brand {
    font-size: 32px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin-bottom: 15px;
}

.footer-brand span {
    color: var(--neon-blue);
}

.footer-content p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.social-links a {
    color: var(--text-main);
    font-size: 20px;
    width: 45px;
    height: 45px;
    background: var(--bg-panel);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--gradient-1);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
}
