@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --accent: #f59e0b;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-page);
}

h1,
h2,
h3 {
    font-family: 'Outfit', sans-serif;
    color: #0f172a;
    font-weight: 700;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
}

header {
    text-align: center;
    margin-bottom: 0.5rem;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.article-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Article Styling */
.article-header {
    margin-bottom: 0.5rem;
}

.article-title {
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.article-content p {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

/* Video Box Styling */
.video-widget {
    height: 200px;
    margin: 1rem 0;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    display: flex;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease;
}

.video-widget:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

.video-thumb {
    width: 280px;
    height: 100%;
    position: relative;
    background: #000;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.duration-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.video-info {
    flex: 1;
    padding: 1.5rem;
    display: block;
    flex-direction: column;
    justify-content: center;
}

.video-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    width: fit-content;
    transition: background 0.2s;
}

.play-btn:hover {
    background: var(--primary-dark);
}

.play-btn svg {
    width: 20px;
    height: 20px;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Footer Section */
footer {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--primary);
}

/* AdSense Placeholder */
.ads-box {
    background: #f1f5f9;
    padding: 1rem;
    text-align: center;
    border: 1px dashed #cbd5e1;
    color: #94a3b8;
    margin: 2rem 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

@media (max-width: 640px) {
    .video-widget {
        flex-direction: column;
        height: auto;
    }

    .video-thumb {
        width: 100%;
        height: 180px;
    }
}