@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;700;900&family=Rajdhani:wght@400;500;600;700&display=swap');

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

:root {
    --bg: #0a0015;
    --bg-card: #120025;
    --bg-card-hover: #1c0038;
    --border: #2a0050;
    --text: #f0e6ff;
    --text-muted: #8a7aa0;
    --purple: #a855f7;
    --pink: #ff007f;
    --cyan: #00f0ff;
    --yellow: #facc15;
    --orange: #ff6b00;
    --glow: 0 0 20px rgba(168, 85, 247, 0.08);
    --radius: 12px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(168, 85, 247, 0.08) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 30%, rgba(255, 0, 127, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(0, 240, 255, 0.04) 0%, transparent 45%);
    animation: bgFloat 25s ease-in-out infinite alternate;
}

@keyframes bgFloat {
    0% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1.05) rotate(2deg); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ── HEADER ── */
.site-header {
    background: rgba(10, 0, 21, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 14px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-area {
    display: flex;
    align-items: baseline;
    gap: 16px;
    flex-wrap: wrap;
}

.logo {
    font-family: 'Orbitron', monospace;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 12px rgba(0, 240, 255, 0.12));
}

.logo span {
    background: linear-gradient(135deg, var(--yellow), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-family: 'Orbitron', monospace;
    font-size: 0.55rem;
    color: var(--text-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-weight: 400;
    opacity: 0.6;
}

.main-nav {
    display: flex;
    gap: 4px;
}

.main-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 8px;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--cyan);
    background: rgba(0, 240, 255, 0.06);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.05);
}

/* ── HERO ── */
.hero-section {
    padding: 50px 0 40px;
    position: relative;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 127, 0.3), rgba(0, 240, 255, 0.3), transparent);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-text {
    flex: 1;
    min-width: 280px;
}

.hero-label {
    font-family: 'Orbitron', monospace;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: linear-gradient(90deg, var(--cyan), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.1));
}

.hero-text h1 {
    font-family: 'Orbitron', monospace;
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -1px;
    background: linear-gradient(135deg, var(--cyan), var(--pink), var(--yellow));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(168, 85, 247, 0.1));
}

.hero-text p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 480px;
    line-height: 1.6;
}

.hero-countdown {
    flex-shrink: 0;
}

.countdown {
    display: flex;
    gap: 12px;
}

.count-item {
    background: rgba(18, 0, 37, 0.5);
    border: 1px solid rgba(168, 85, 247, 0.15);
    border-radius: 10px;
    padding: 14px 18px;
    text-align: center;
    min-width: 72px;
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.count-item:hover {
    border-color: rgba(255, 0, 127, 0.2);
}

.count-item span {
    display: block;
    font-family: 'Orbitron', monospace;
    font-size: 1.7rem;
    font-weight: 700;
    background: linear-gradient(180deg, var(--cyan), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    letter-spacing: 2px;
}

.count-item small {
    display: block;
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    opacity: 0.6;
}

/* ── MAIN ── */
.main-content {
    display: flex;
    gap: 32px;
    flex: 1;
    padding-bottom: 40px;
}

.content-area {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 280px;
    flex-shrink: 0;
}

/* ── SECTION ── */
.section {
    margin-bottom: 40px;
}

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

.section-head h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--cyan), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-badge {
    font-size: 0.6rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    font-family: 'Orbitron', monospace;
    opacity: 0.5;
}

/* ── GRID ── */
.grid-news {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.grid-videos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 50px 0;
    font-size: 0.9rem;
}

/* ── CARDS ── */
.news-card, .video-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: 0.35s;
    display: flex;
    flex-direction: column;
    position: relative;
}

.news-card::before, .video-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--pink), transparent);
    opacity: 0;
    transition: 0.4s;
}

.news-card:hover::before, .video-card:hover::before {
    opacity: 1;
}

.news-card:hover, .video-card:hover {
    border-color: rgba(168, 85, 247, 0.25);
    background: var(--bg-card-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.06);
}

.news-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #1a0030, #0a0015);
    display: block;
}

.news-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-source {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(90deg, var(--yellow), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
    opacity: 0.8;
}

.news-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.7;
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.news-date {
    font-size: 0.7rem;
    color: var(--text-muted);
    opacity: 0.4;
}

.news-link {
    color: var(--cyan);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: 0.2s;
}

.news-link:hover {
    color: var(--pink);
}

/* ── VIDEO ── */
.video-card {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.video-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    background: linear-gradient(135deg, #1a0030, #0a0015);
    display: block;
}

.video-body {
    padding: 12px;
}

.video-channel {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--pink);
    margin-bottom: 4px;
}

.video-title {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.video-date {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 6px;
    opacity: 0.4;
}

/* ── SIDEBAR ── */
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.sidebar-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), rgba(255, 0, 127, 0.2), transparent);
}

.sidebar-card h3 {
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(90deg, var(--cyan), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.sidebar-features {
    list-style: none;
    margin-top: 12px;
}

.sidebar-features li {
    font-size: 0.8rem;
    color: var(--text-muted);
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.sidebar-channels {
    list-style: none;
}

.sidebar-channels li {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ch-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--purple);
    display: inline-block;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

/* ── FOOTER ── */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-top: auto;
    opacity: 0.5;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 0, 127, 0.2), rgba(0, 240, 255, 0.2), transparent);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .main-content {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .sidebar-card {
        margin-bottom: 0;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text p {
        max-width: 100%;
    }

    .countdown {
        justify-content: center;
    }

    .hero-text h1 {
        font-size: 1.5rem;
    }

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

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

@media (max-width: 480px) {
    .header-inner {
        flex-direction: column;
        text-align: center;
    }

    .logo-area {
        justify-content: center;
    }

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

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

    .count-item {
        padding: 10px 14px;
        min-width: 60px;
    }

    .count-item span {
        font-size: 1.3rem;
    }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: rgba(168, 85, 247, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(168, 85, 247, 0.4);
}

::selection {
    background: rgba(168, 85, 247, 0.2);
    color: #fff;
}