/* ── Exclips Theme Stylesheet ─────────────────────────────────────────────── */

:root {
  --bg:       #1a1a1a;
  --bg2:      #242424;
  --bg3:      #2e2e2e;
  --fg:       #e8e8e8;
  --fg-muted: #999;
  --accent:   #ff4d00;
  --accent-lo:#c03c00;
  --border:   #333;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── TOP NAV ─────────────────────────────────────────────────────────────── */
.ec-nav {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
}
.ec-nav-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  height: 52px;
  max-width: 1400px;
  margin: 0 auto;
}
.ec-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  text-decoration: none;
}
.ec-logo-mark {
  width: 30px; height: 30px;
  flex-shrink: 0;
}
.ec-wordmark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--accent);
  line-height: 1;
}
.ec-search-wrap {
  flex: 1;
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.ec-search-wrap input[type="search"] {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 7px 38px 7px 12px;
  font-size: 13px;
  color: var(--fg);
  font-family: 'Roboto', sans-serif;
  outline: none;
  transition: border-color 0.15s;
  -webkit-appearance: none;
}
.ec-search-wrap input::placeholder { color: var(--fg-muted); }
.ec-search-wrap input:focus { border-color: var(--accent); }
.ec-search-btn {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 36px;
  background: var(--accent);
  border: none;
  border-radius: 0 3px 3px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.ec-search-btn:hover { background: var(--accent-lo); }
.ec-nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  list-style: none;
  margin: 0; padding: 0;
}
.ec-nav-links a {
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 3px;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.ec-nav-links a:hover,
.ec-nav-links a.current-menu-item { color: var(--fg); background: var(--bg3); }

/* ── CATEGORY BAR ─────────────────────────────────────────────────────────── */
.ec-cat-bar {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.ec-cat-bar::-webkit-scrollbar { display: none; }
.ec-cat-bar-inner {
  display: flex;
  gap: 0;
  padding: 0 16px;
  max-width: 1400px;
  margin: 0 auto;
  min-width: max-content;
}
.ec-cat-pill {
  display: inline-block;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.ec-cat-pill:hover { color: var(--fg); border-color: var(--border); }
.ec-cat-pill.current-cat,
.ec-cat-pill.active { color: var(--accent); border-color: var(--accent); }

/* ── PAGE LAYOUT ─────────────────────────────────────────────────────────── */
.ec-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 16px;
}

/* ── SECTION HEADER ──────────────────────────────────────────────────────── */
.ec-sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}
.ec-sec-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
  letter-spacing: 0.01em;
}
.ec-sec-more {
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}
.ec-sec-more:hover { text-decoration: underline; }

/* ── VIDEO GRID ──────────────────────────────────────────────────────────── */
.ec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 36px;
}
@media (min-width: 900px)  { .ec-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .ec-grid { grid-template-columns: repeat(4, 1fr); } }

/* ── VIDEO CARD ──────────────────────────────────────────────────────────── */
.ec-card {
  display: block;
  text-decoration: none;
  background: var(--bg2);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.15s;
}
.ec-card:hover { transform: scale(1.02); }

.ec-thumb {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: var(--bg3);
}
.ec-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.ec-card:hover .ec-thumb img { transform: scale(1.05); }
.ec-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a0a2e, #3d1070, #7b2fff);
}
.ec-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity 0.15s;
}
.ec-card:hover .ec-play-overlay { opacity: 1; }
.ec-play-icon {
  width: 44px; height: 44px;
  background: rgba(255,77,0,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ec-play-icon svg { margin-left: 3px; }
.ec-dur {
  position: absolute;
  bottom: 6px; right: 6px;
  background: rgba(0,0,0,0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
}
.ec-badge-qual {
  position: absolute;
  top: 6px; left: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.06em;
  z-index: 2;
}
.ec-info { padding: 10px 12px 13px; }
.ec-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 5px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ec-card:hover .ec-title { color: var(--accent); }
.ec-meta {
  display: flex;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-muted);
}

/* ── SINGLE VIDEO PAGE ───────────────────────────────────────────────────── */
.ec-single {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 16px;
}
.ec-player-wrap {
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
}
.ec-player {
  position: relative;
  aspect-ratio: 16 / 9;
}
.ec-player iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
}
.ec-single-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 10px;
  line-height: 1.3;
}
.ec-single-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13px;
  color: var(--fg-muted);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.ec-single-meta strong { color: var(--fg); }
.ec-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.ec-tag-item {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 12px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}
.ec-tag-item:hover { color: var(--accent); border-color: var(--accent); }

/* ── ARCHIVE / TAXONOMY ──────────────────────────────────────────────────── */
.ec-archive-header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.ec-archive-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 6px;
}
.ec-archive-desc {
  font-size: 13px;
  color: var(--fg-muted);
  margin: 0;
}

/* ── PAGINATION ──────────────────────────────────────────────────────────── */
.ec-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 24px 0;
  align-items: center;
}
.ec-pagination a,
.ec-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 13px;
  color: var(--fg-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.ec-pagination a:hover { background: var(--bg3); color: var(--fg); }
.ec-pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ── LEGAL PAGES ─────────────────────────────────────────────────────────── */
.ec-legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 16px;
  line-height: 1.75;
}
.ec-legal h1 { font-size: 28px; font-weight: 700; margin-bottom: 8px; }
.ec-legal .ec-legal-date { color: var(--fg-muted); font-size: 13px; margin-bottom: 32px; }
.ec-legal h2 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; color: var(--fg); }
.ec-legal p, .ec-legal li { font-size: 14px; color: #ccc; }
.ec-legal ul, .ec-legal ol { padding-left: 24px; }
.ec-legal a { color: var(--accent); text-decoration: underline; }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.ec-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 28px 16px 20px;
}
.ec-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}
.ec-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.ec-footer-wordmark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.ec-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.ec-footer-links a {
  font-size: 12px;
  color: var(--fg-muted);
  text-decoration: none;
}
.ec-footer-links a:hover { color: var(--fg); text-decoration: underline; }
.ec-footer-copy {
  font-size: 11px;
  color: #555;
  margin: 0;
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .ec-nav-links { display: none; }
  .ec-search-wrap { max-width: none; }
  .ec-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ec-title { font-size: 13px; }
}
@media (max-width: 400px) {
  .ec-grid { grid-template-columns: 1fr; }
}
