:root {
    --bg-color: #080809;
    --app-bg: #0c0c0e;
    --card-bg: rgba(28, 28, 32, 0.8);
    --primary-color: #6366f1;
    --secondary-color: #8b5cf6;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #f43f5e;
    --glass-border: rgba(255, 255, 255, 0.08);
    --mobile-width: 480px;
    /* Force mobile width */
    --font-main: 'Outfit', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    /* Outer background */
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* Fixed Mobile Container */
.app-container {
    width: 100%;
    max-width: var(--mobile-width);
    background-color: var(--app-bg);
    /* Inner app background */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.5);
    position: relative;
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
    padding-bottom: 2rem;
}

header {
    padding: 1rem;
    position: relative;
    /* Changed from sticky */
    z-index: 100;
    background: rgba(12, 12, 14, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fff, #f43f5e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
    text-decoration: none;
}

.logo svg {
    width: 20px;
    height: 20px;
    fill: #f43f5e;
    filter: drop-shadow(0 0 8px rgba(244, 63, 94, 0.6));
}

/* Compact Dropdown Navigation */
.nav-menu {
    display: flex;
    align-items: center;
}

.dropdown {
    position: relative;
}

.dropbtn {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.2s ease;
}

.dropbtn:hover,
.dropbtn.active {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
}

.dropbtn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s ease;
}

.dropbtn.active svg {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(18, 18, 20, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    min-width: 180px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    z-index: 101;
    overflow: hidden;
    padding: 0.4rem;
}

.dropdown-content.show {
    display: block;
    animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-content a {
    color: var(--text-secondary);
    padding: 0.7rem 0.9rem;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: rgba(99, 102, 241, 0.15);
    color: var(--text-primary);
}

.dropdown-content a.active {
    color: var(--primary-color);
    background: rgba(99, 102, 241, 0.1);
}

/* Typography */
h1 {
    font-size: 1.6rem;
    line-height: 1.25;
    margin: 1.5rem 1rem;
    font-weight: 800;
}

h2 {
    font-size: 1.3rem;
    margin: 1.5rem 1rem 0.5rem;
    font-weight: 700;
}

p {
    margin: 0 1rem 1.25rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* Ad Placeholders */
.ad-slot {
    background: #161618;
    border: 1px dashed #2d2d30;
    padding: 1rem;
    margin: 1.5rem 1rem;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
    border-radius: 12px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Article List */
.article-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0 1rem;
}

.article-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
}

.card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.card-content {
    padding: 1.25rem;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.card-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Video Player */
.video-container {
    margin: 1rem;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
    position: relative;
    border: 1px solid var(--glass-border);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

.play-button {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-button svg {
    fill: white;
    width: 24px;
    height: 24px;
    margin-left: 4px;
}

.video-hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

/* Content Page Meta */
.article-meta {
    font-size: 0.75rem;
    color: var(--primary-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 2rem 1rem 0;
}

/* Reward Overlay */
#ad-timer {
    font-weight: 800;
    color: var(--primary-color);
}

footer {
    padding: 3rem 1rem;
    text-align: center;
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    font-size: 0.8rem;
    color: var(--text-secondary);
}