*, *::before, *::after { box-sizing: border-box; }
.is-hidden { display: none !important; }

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --border: rgba(255,255,255,0.08);
  --text: #f5f5f5;
  --muted: #999;
  --orange: #ff6b00;
  --orange-dark: #e65c00;
  --orange-light: #ff8533;
  --radius: 12px;
}

html, body {
  margin: 0 !important;
  min-height: 100vh !important;
  font-family: "Inter", system-ui, sans-serif !important;
  background-color: #0a0a0a !important;
  background-image: radial-gradient(ellipse 100% 60% at 50% -10%, rgba(255,107,0,0.15), transparent 70%) !important;
  color: #f5f5f5 !important;
  line-height: 1.6 !important;
}

body.theme-login .wrap { pointer-events: none; user-select: none; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 24px; }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 16px 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 32px;
}
.brand { display: flex; align-items: center; gap: 12px; font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #fff;
}
.brand-icon svg { width: 20px; height: 20px; }
.age-badge {
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid rgba(255,107,0,0.45);
  color: var(--orange-light); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
}

.hero { text-align: center; margin-bottom: 40px; }
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff, var(--orange-light));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.hero p { margin: 0; color: var(--muted); font-size: 1.05rem; }

.video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; margin-bottom: 40px;
}
.video-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.video-card:hover { transform: translateY(-4px); border-color: var(--orange); box-shadow: 0 12px 32px rgba(255,107,0,0.3); }
.video-thumb {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%); overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,10,10,0.8) 0%, transparent 50%); z-index: 1; pointer-events: none; }
.video-duration { position: absolute; bottom: 8px; right: 8px; padding: 4px 8px; background: rgba(0,0,0,0.85); border-radius: 4px; font-size: 0.75rem; font-weight: 600; color: #fff; z-index: 2; }
.play-icon {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 48px; height: 48px; background: var(--orange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0.9; transition: opacity 0.2s ease, transform 0.2s ease; z-index: 2;
}
.video-card:hover .play-icon { opacity: 1; transform: translate(-50%,-50%) scale(1.1); }
.play-icon svg { width: 20px; height: 20px; fill: #fff; margin-left: 3px; }
.video-info { padding: 14px 16px; }
.video-title { margin: 0 0 8px; font-size: 0.95rem; font-weight: 600; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.video-meta { display: flex; align-items: center; gap: 12px; font-size: 0.8rem; color: var(--muted); }
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-download {
  margin-top: 12px; padding: 10px 16px; width: 100%;
  background: var(--orange); color: #fff; border: none; border-radius: 8px;
  font-family: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 0.2s ease, transform 0.1s ease;
}
.video-download:hover { background: var(--orange-light); }
.video-download:active { transform: scale(0.98); }
.video-download svg { width: 16px; height: 16px; }

.site-footer { margin-top: 48px; padding: 24px; text-align: center; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
#site-root:empty { display: none; }
#site-root { margin-bottom: 24px; }

@media (max-width: 768px) { .video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; } .hero h1 { font-size: 2rem; } }
@media (max-width: 560px) { .wrap { padding: 16px; } .video-grid { grid-template-columns: 1fr; } .site-header { flex-direction: column; gap: 12px; } }
