:root {
  --bg: #fbf7f1; 
  --surface: #ffffff; 
  --ink: #241a13; 
  --muted: #6c5d50; 
  --line: #eadfce; 
  --accent: #e58a4a; 
  --dark: #17100b; 
  --mid: #2a1d15;
  --radius: 20px; 
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root { 
      --bg: #120d09; 
      --surface: #1d1510; 
      --ink: #f6ece0; 
      --muted: #bba996; 
      --line: #33261c; 
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 4px; }

/* header */
header.site {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand {
  font-weight: 800;
  font-size: 24px;
  color: var(--ink);
}

.brand span {
  color: var(--accent);
}

.hero {
  text-align: center;
  padding: 60px 20px 40px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
}

.tag {
  color: var(--muted);
  font-size: 19px;
  max-width: 500px;
  margin: 0 auto;
}

/* sections */
section.channel-section {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.c-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.handle {
  color: var(--muted);
  font-size: 15px;
  margin: 0;
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 800;
  text-align: center;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn.primary {
  background: var(--accent);
  color: #1b1008;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 45%, transparent);
}

.btn.primary:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.btn.small {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: 8px;
}

.btn.ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: transparent;
  box-shadow: none;
}

.btn.ghost:hover {
  background: var(--line);
  transform: translateY(-1px);
}

/* channels directory */
.channels-directory {
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
}

.dir-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.dir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.dir-card {
  display: flex;
  align-items: center;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  gap: 12px;
}

.dir-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.dir-info {
  flex: 1;
}

.dir-info h3 {
  font-size: 16px;
  margin: 0 0 4px;
}

.dir-info p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* channel section specific */
.c-info-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
}

.channel-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}

.coming-soon {
  text-align: center;
  padding: 40px 20px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  margin-top: 16px;
}

.cs-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.coming-soon h3 {
  font-size: 20px;
  color: var(--ink);
  margin-bottom: 8px;
}

/* video grid (shots) */
.shots {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  padding: 4px max(20px, calc((100vw - var(--maxw))/2 + 20px)) 26px;
  margin: 0 calc(-1 * max(20px, calc((100vw - var(--maxw))/2 + 20px)));
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
}

.shots::-webkit-scrollbar { height: 6px; }
.shots::-webkit-scrollbar-track { background: transparent; }
.shots::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 10px; }

.video-card {
  flex: none;
  width: 280px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  scroll-snap-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--ink);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}

.video-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
  background: var(--dark);
}

.v-info {
  padding: 16px;
}

.v-info h3 {
  font-size: 15px;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.v-info span {
  font-size: 13px;
  color: var(--muted);
}

.no-videos {
  color: var(--muted);
  font-style: italic;
  padding: 20px 0;
}

footer.site {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 600px) {
  .c-head { flex-direction: column; align-items: flex-start; }
}
