/* HomemadeTapes — Main Stylesheet */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #ffffff;
  --bg2:       #f5f5f5;
  --bg3:       #eeeeee;
  --border:    #e0e0e0;
  --text:      #111111;
  --text-muted:#666666;
  --accent:    #cc0000;
  --accent2:   #dd2222;
  --hover:     #990000;
  --header-bg: #111111;
  --meta:      #888888;
  --radius:    0px;
}

html { font-size: 14px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

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

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ── Header ── */
.hmt-header { background: var(--header-bg); }
.hmt-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.hmt-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.hmt-logo-icon { width: 44px; height: 30px; flex-shrink: 0; }
.hmt-wordmark { font-family: 'Anton', Impact, sans-serif; font-size: 2rem; line-height: 1; color: #ffffff; letter-spacing: -0.5px; }
.hmt-wordmark span { color: var(--accent); }
.hmt-nav { display: flex; align-items: center; gap: 0; overflow-x: auto; scrollbar-width: none; flex: 1; }
.hmt-nav::-webkit-scrollbar { display: none; }
.hmt-nav a { color: #cccccc; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.6px; padding: 6px 12px; white-space: nowrap; transition: color 0.15s; }
.hmt-nav a:hover, .hmt-nav a.current-menu-item { color: #ffffff; }
.hmt-nav-sep { color: #444; font-size: 10px; padding: 0 2px; }
.hmt-search-wrap { margin-left: auto; flex-shrink: 0; }
.hmt-search-wrap form { display: flex; }
.hmt-search-wrap input { background: #1e1e1e; border: 1px solid #333; color: #fff; padding: 6px 10px; font-size: 12px; outline: none; width: 180px; }
.hmt-search-wrap input::placeholder { color: #666; }
.hmt-search-wrap input:focus { border-color: var(--accent); }
.hmt-search-wrap button { background: var(--accent); border: none; color: #fff; padding: 6px 12px; cursor: pointer; font-size: 12px; font-weight: 700; text-transform: uppercase; }
.hmt-search-wrap button:hover { background: var(--hover); }

/* ── Layout ── */
.hmt-wrap { min-height: calc(100vh - 60px); }
.hmt-main { padding: 28px 0 40px; }
.hmt-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ── Section Label ── */
.hmt-section-label {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--meta);
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin-bottom: 20px;
}

/* ── Video List ── */
.hmt-list { display: flex; flex-direction: column; }
.hmt-item {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  align-items: flex-start;
}
.hmt-item-thumb {
  flex-shrink: 0;
  width: 260px;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
  position: relative;
  display: block;
}
.hmt-item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s; }
.hmt-item:hover .hmt-item-thumb img { transform: scale(1.03); }
.hmt-item-dur {
  position: absolute; bottom: 5px; right: 5px;
  background: rgba(0,0,0,0.85); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 5px;
}
.hmt-item-new {
  position: absolute; top: 5px; left: 5px;
  background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 6px; text-transform: uppercase;
}
.hmt-item-body { flex: 1; min-width: 0; padding-top: 2px; }
.hmt-item-meta { font-size: 11px; color: var(--meta); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 7px; font-weight: 600; }
.hmt-item-meta .cat { color: var(--accent); }
.hmt-item-title { font-size: 1.25rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.hmt-item-title a:hover { color: var(--accent); }
.hmt-item-desc { font-size: 13px; color: var(--text-muted); line-height: 1.65; }
.hmt-item-desc a { color: var(--accent); font-style: italic; }

/* ── Pagination ── */
.hmt-pager { margin-top: 30px; text-align: center; display: flex; justify-content: center; gap: 3px; flex-wrap: wrap; }
.hmt-pager .page-numbers {
  display: inline-block; padding: 7px 12px;
  border: 1px solid var(--border); color: var(--text);
  font-size: 13px; font-weight: 600;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.hmt-pager .page-numbers:hover,
.hmt-pager .page-numbers.current { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ── Single Video Page ── */
.hmt-player-wrap {
  background: #000; aspect-ratio: 16/9; width: 100%;
  position: relative; margin-bottom: 16px; overflow: hidden;
}
.hmt-video, .hmt-player { width: 100%; height: 100%; display: block; object-fit: contain; }
.hmt-player-wrap video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hmt-player-wrap { position: relative; }
.hmt-embed-wrap { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.hmt-embed-wrap iframe, .hmt-embed-wrap embed, .hmt-embed-wrap object { width: 100%; height: 100%; border: 0; }
.hmt-no-video { display: flex; align-items: center; justify-content: center; height: 100%; min-height: 300px; color: var(--text-muted); font-size: 1rem; }

.hmt-vid-nav { display: flex; gap: 6px; margin-bottom: 14px; }
.hmt-vid-nav a { display: inline-block; border: 1px solid var(--border); color: var(--text); font-size: 12px; font-weight: 700; padding: 6px 14px; text-transform: uppercase; letter-spacing: 0.5px; transition: background 0.15s; }
.hmt-vid-nav a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.hmt-vid-nav a.close-btn { color: var(--accent); border-color: var(--accent); }

.hmt-vid-meta { font-size: 11px; color: var(--meta); text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; margin-bottom: 8px; }
.hmt-vid-meta .cat { color: var(--accent); }
.hmt-vid-title { font-size: 1.6rem; font-weight: 700; line-height: 1.25; margin-bottom: 12px; }
.hmt-vid-desc {
  font-size: 14px; color: var(--text-muted); line-height: 1.7;
  max-width: 800px; margin-bottom: 20px;
  border-bottom: 1px solid var(--border); padding-bottom: 20px;
}
.hmt-vid-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.hmt-vid-tag {
  background: var(--bg3); color: var(--text-muted); border: 1px solid var(--border);
  font-size: 11px; padding: 3px 10px; transition: all 0.15s;
}
.hmt-vid-tag:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Related videos */
.hmt-related-label {
  font-family: 'Anton', Impact, sans-serif;
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--meta); border-bottom: 1px solid var(--border);
  padding-bottom: 8px; margin-bottom: 0;
}
.hmt-related-list { display: flex; flex-direction: column; }
.hmt-related-item {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.hmt-related-thumb {
  flex-shrink: 0; width: 200px; aspect-ratio: 16/9;
  overflow: hidden; background: #000; position: relative; display: block;
}
.hmt-related-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.2s; }
.hmt-related-item:hover .hmt-related-thumb img { transform: scale(1.04); }
.hmt-related-dur { position: absolute; bottom: 4px; right: 4px; background: rgba(0,0,0,0.85); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 4px; }
.hmt-related-body { flex: 1; min-width: 0; padding-top: 2px; }
.hmt-related-meta { font-size: 10px; color: var(--meta); text-transform: uppercase; letter-spacing: 0.4px; font-weight: 600; margin-bottom: 5px; }
.hmt-related-meta .cat { color: var(--accent); }
.hmt-related-title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.hmt-related-title a:hover { color: var(--accent); }
.hmt-related-desc { font-size: 12px; color: var(--text-muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── Taxonomy / Tag Archive ── */
.hmt-tax-title { font-size: 1.4rem; font-weight: 700; margin-bottom: 4px; }
.hmt-tax-count { font-size: 0.85rem; color: var(--meta); font-weight: 400; margin-left: 8px; }
.hmt-tax-desc { color: var(--text-muted); margin-bottom: 16px; font-size: 0.9rem; }

/* ── Static Page ── */
.hmt-page-wrap { max-width: 900px; margin: 40px auto; padding: 0 20px 60px; }
.hmt-page-title { font-family: 'Anton', Impact, sans-serif; font-size: 2rem; color: var(--accent); margin-bottom: 24px; }
.hmt-page-body { color: #333; font-size: 0.95rem; line-height: 1.8; }
.hmt-page-body h2 { font-size: 1.3rem; font-weight: 700; color: var(--text); margin: 32px 0 10px; }
.hmt-page-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 24px 0 8px; }
.hmt-page-body p  { margin-bottom: 14px; }
.hmt-page-body ol, .hmt-page-body ul { margin: 0 0 14px 24px; }
.hmt-page-body li { margin-bottom: 6px; }
.hmt-page-body a  { color: var(--accent); }
.hmt-page-body a:hover { text-decoration: underline; }

/* ── Footer ── */
.hmt-footer { background: var(--header-bg); border-top: 3px solid var(--accent); padding: 24px 0 16px; margin-top: 20px; }
.hmt-footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; text-align: center; }
.hmt-footer-logo { font-family: 'Anton', Impact, sans-serif; font-size: 1.5rem; color: #fff; margin-bottom: 12px; }
.hmt-footer-logo span { color: var(--accent); }
.hmt-footer-links { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 0 16px; margin-bottom: 10px; }
.hmt-footer-links a { color: #666; font-size: 12px; transition: color 0.15s; }
.hmt-footer-links a:hover { color: var(--accent2); }
.hmt-footer-copy { color: #444; font-size: 11px; line-height: 1.8; }

/* ── No-results ── */
.hmt-no-videos { color: var(--text-muted); text-align: center; padding: 40px 0; }

/* ── Responsive ── */
@media (max-width: 800px) {
  .hmt-item { flex-direction: column; }
  .hmt-item-thumb { width: 100%; }
  .hmt-related-item { flex-direction: column; }
  .hmt-related-thumb { width: 100%; }
}
@media (max-width: 600px) {
  .hmt-nav { display: none; }
  .hmt-wordmark { font-size: 1.5rem; }
  .hmt-vid-title { font-size: 1.2rem; }
}
