:root {
    --bg-main: #0a0a1a;
    --bg-card: #151525;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent: #00b4ff;       
    --accent-glow: 0 0 15px rgba(0, 180, 255, 0.4);
    --border: #2a2a3a;
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding-bottom: 80px;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }

/* --- HEADER --- */
header {
    background: rgba(10, 10, 26, 0.98);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    padding: 10px 15px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
    text-shadow: var(--accent-glow);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-pro {
    background: linear-gradient(135deg, var(--accent), #0066ff);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--accent-glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
    border: 1px solid rgba(255,255,255,0.2);
    text-align: center;
    min-width: 100px;
}

.btn-pro span {
    font-size: 0.6rem;
    opacity: 0.9;
    font-weight: 400;
}

/* Search */
.search-container {
    margin-bottom: 12px;
}

.search-input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 12px 15px;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    outline: none;
    transition: 0.3s;
}

.search-input:focus {
    border-color: var(--accent);
    box-shadow: var(--accent-glow);
}

/* Category Slider */
.category-scroll {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: center;
}
.category-scroll::-webkit-scrollbar { display: none; }

.cat-btn {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s;
}

.cat-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: var(--accent-glow);
}

/* --- VIDEO GRID --- */
main { padding: 15px; }

.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Cols on Mobile */
    gap: 12px;
}

@media (min-width: 768px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 Cols on Desktop */
        gap: 20px;
    }
}

/* Video Card */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.card-thumb-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.card-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.duration-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    z-index: 2;
}

.card-info {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

/* --- PAGINATION --- */
.pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
    align-items: center;
}

.pagination button {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
}

.pagination button:disabled { opacity: 0.5; }

/* --- FOOTER --- */
footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    margin-top: 20px;
}
.social-links a { color: var(--accent); margin: 0 10px; text-decoration: none; }
