/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { background: #0d0d0d; color: #f0f0f0; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
.site-header { background: #111; border-bottom: 2px solid #e5000a; position: sticky; top: 0; z-index: 100; }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 16px; }
.logo { font-size: 22px; font-weight: 900; color: #fff; white-space: nowrap; }
.logo span { color: #e5000a; }

/* ===== TABS ===== */
.tab-nav { display: flex; gap: 6px; flex: 1; justify-content: center; }
.tab-btn { background: #1e1e1e; border: 1px solid #333; color: #ccc; padding: 7px 14px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all 0.2s; white-space: nowrap; display: inline-block; }
.tab-btn:hover { background: #2a2a2a; color: #fff; }
.tab-btn.active { background: #e5000a; border-color: #e5000a; color: #fff; }

/* ===== TICKER ===== */
.ticker-wrap { background: #e5000a; overflow: hidden; padding: 6px 0; }
.ticker { white-space: nowrap; animation: ticker-scroll 30s linear infinite; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; color: #fff; }
@keyframes ticker-scroll { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* ===== GRID ===== */
.grid-container { max-width: 1200px; margin: 0 auto; padding: 20px 12px 40px; }
.thumb-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 640px) { .thumb-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 360px) { .thumb-grid { grid-template-columns: 1fr; } }

/* ===== CARD ===== */
.thumb-card { display: block; background: #1a1a1a; border-radius: 8px; overflow: hidden; border: 1px solid #2a2a2a; transition: transform 0.2s, box-shadow 0.2s; }
.thumb-card:hover { transform: translateY(-3px); border-color: #e5000a; box-shadow: 0 6px 20px rgba(229,0,10,0.25); }

.thumb-img-wrap { position: relative; width: 100%; padding-bottom: 62%; overflow: hidden; background: #222; }
.thumb-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.thumb-card:hover .thumb-img { transform: scale(1.05); }

.thumb-badge { position: absolute; top: 7px; left: 7px; font-size: 10px; font-weight: 800; padding: 3px 7px; border-radius: 4px; color: #fff; letter-spacing: 0.5px; text-transform: uppercase; z-index: 2; }

.thumb-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.thumb-card:hover .thumb-overlay { background: rgba(0,0,0,0.3); }
.thumb-play { font-size: 32px; color: rgba(255,255,255,0.9); opacity: 0; transition: opacity 0.2s; }
.thumb-card:hover .thumb-play { opacity: 1; }

.thumb-info { padding: 9px 10px 11px; }
.thumb-title { font-size: 12px; font-weight: 700; line-height: 1.4; color: #f0f0f0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 7px; }
.thumb-meta { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.thumb-views { font-size: 10px; color: #e5000a; font-weight: 700; }
.thumb-time { font-size: 10px; color: #666; }

/* ===== NO RESULTS ===== */
.no-results { color: #666; text-align: center; padding: 60px 0; font-size: 16px; }

/* ===== FOOTER ===== */
.site-footer { background: #0a0a0a; border-top: 1px solid #222; padding: 20px 16px; text-align: center; }
.site-footer p { color: #555; font-size: 11px; margin-bottom: 6px; }
.footer-links a { color: #555; font-size: 11px; }
.footer-links a:hover { color: #e5000a; }
