/* ============================================================
   ROOFING AUTHORITY NETWORK — shows.css
   Netflix-style show rows. Matches locked design system:
     bg #050607, accent #e01322, secondary #7a8a96
     Clash Display headings, Satoshi body
     360px cards desktop, 240px mobile
   ============================================================ */

.ran-rows-wrap {
  padding: 4rem 0 2rem;
  background: #050607;
}

/* ── Row ─────────────────────────────────────────────────── */
.ran-row {
  margin-bottom: 3rem;
  color: #fff;
}

.ran-row-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  padding: 0 4vw 1.5rem;
  max-width: 100%;
}

.ran-row-headline {
  min-width: 0;
  flex: 1 1 auto;
  max-width: 640px;
}

.ran-row-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  text-align: right;
  padding-top: 0.4rem;
}

.ran-row-title {
  font-family: 'Clash Display', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  letter-spacing: 0.01em;
  color: #fff;
  margin: 0 0 0.5rem;
  line-height: 1.05;
}

.ran-row-desc {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #b8c0c6;
  letter-spacing: 0.005em;
  margin: 0;
  max-width: 60ch;
}

.ran-row-presented {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  color: #7a8a96;
  text-transform: uppercase;
  margin: 0;
}
.ran-row-presented span {
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-left: 0.35rem;
}

.ran-row-more {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #7a8a96;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease;
  padding-bottom: 0.15rem;
}
.ran-row-more:hover { color: #e01322; }

/* ── Track ───────────────────────────────────────────────── */
.ran-row-track {
  display: flex;
  gap: 1.25rem;
  padding: 0.5rem 4vw 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  scroll-snap-type: x proximity;
}
.ran-row-track::-webkit-scrollbar { display: none; }
.ran-row-track.dragging { cursor: grabbing; }
.ran-row-track.dragging .ran-card { pointer-events: none; }

/* ── Card ────────────────────────────────────────────────── */
.ran-card {
  flex: 0 0 360px;
  width: 360px;
  display: block;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: transform 0.25s ease;
  cursor: pointer;
}
.ran-card:hover {
  transform: translateY(-4px);
}

.ran-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0e0f11;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
}

.ran-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}
.ran-card:hover .ran-card-thumb img {
  transform: scale(1.03);
  filter: brightness(1.05);
}

.ran-card-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(224, 19, 34, 0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}
.ran-card-play svg {
  width: 22px; height: 22px;
  margin-left: 3px; /* optical center */
}
.ran-card:hover .ran-card-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.ran-card-meta {
  padding: 0.85rem 0.15rem 0;
}

.ran-card-title {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 0.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ran-card-sub {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #7a8a96;
  margin: 0;
  line-height: 1.3;
}

/* ── Placeholder (Coming Soon) ───────────────────────────── */
.ran-card--placeholder { cursor: default; }
.ran-card--placeholder:hover { transform: none; }

.ran-card-thumb--ph {
  background:
    radial-gradient(ellipse at 60% 40%, rgba(224,19,34,0.10) 0%, transparent 65%),
    linear-gradient(160deg, #0d0e10 0%, #050607 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.ran-card-ph-badge {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.35);
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
}

.ran-card-ph-logo {
  position: absolute;
  bottom: 0.85rem;
  right: 0.9rem;
  height: 20px;
  width: auto;
  opacity: 0.6;
  pointer-events: none;
}

/* ============================================================
   SHORTS ROW — vertical 9:16 clips (open on YouTube Shorts)
   ============================================================ */
.ran-shorts-wrap {
  padding-bottom: 1rem;
}

.ran-shorts-track {
  display: flex;
  gap: 1rem;
  padding: 0.5rem 4vw 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  scroll-snap-type: x proximity;
}
.ran-shorts-track::-webkit-scrollbar { display: none; }
.ran-shorts-track.dragging { cursor: grabbing; }
.ran-shorts-track.dragging .ran-short { pointer-events: none; }

.ran-short {
  flex: 0 0 200px;
  width: 200px;
  display: block;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: transform 0.25s ease;
  cursor: pointer;
}
.ran-short:hover { transform: translateY(-4px); }

.ran-short-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #0e0f11;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,0.5);
}

.ran-short-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, filter 0.3s ease;
}
.ran-short:hover .ran-short-thumb img {
  transform: scale(1.04);
  filter: brightness(1.05);
}

.ran-short-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(224, 19, 34, 0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}
.ran-short-play svg { width: 18px; height: 18px; margin-left: 2px; }
.ran-short:hover .ran-short-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}

.ran-short-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  font-family: 'Satoshi', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: #fff;
  background: rgba(224, 19, 34, 0.9);
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  text-transform: uppercase;
}

.ran-short-title {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  line-height: 1.35;
  color: #fff;
  margin: 0.75rem 0 0;
  padding: 0 0.15rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Placeholder state — empty playlist */
.ran-short--placeholder { cursor: default; }
.ran-short--placeholder:hover { transform: none; }

.ran-short-thumb--ph {
  background:
    radial-gradient(ellipse at 60% 40%, rgba(224,19,34,0.10) 0%, transparent 65%),
    linear-gradient(160deg, #0d0e10 0%, #050607 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}
.ran-short-ph-label {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  color: rgba(255,255,255,0.35);
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 2px;
}
.ran-short-ph-sub {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.28);
  margin-top: 0.4rem;
}

.ran-rows-section-header {
  padding: 0 4vw 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}
.ran-rows-section-title {
  font-family: 'Clash Display', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  color: #fff;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1;
}
.ran-rows-section-sub {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: #7a8a96;
  text-transform: uppercase;
}

/* ── Watch page ──────────────────────────────────────────── */
.watch-page {
  background: #050607;
  min-height: 100vh;
  padding-top: 80px;
  color: #fff;
}

.watch-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 4vw 0;
}

.watch-player-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.7);
}
.watch-player-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}

.watch-meta {
  padding: 1.75rem 0 0;
  max-width: 1200px;
  margin: 0 auto;
}

.watch-eyebrow {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: #e01322;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
  font-weight: 700;
}

.watch-title {
  font-family: 'Clash Display', system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: #fff;
  margin: 0 0 0.75rem;
}

.watch-submeta {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-size: 0.85rem;
  color: #7a8a96;
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
}

.watch-desc {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #b8c0c6;
  white-space: pre-wrap;
  max-width: 900px;
  margin: 0 0 2.5rem;
}

.watch-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Satoshi', system-ui, sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: #7a8a96;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 1.25rem;
  transition: color 0.2s ease;
}
.watch-back:hover { color: #fff; }
.watch-back svg { width: 14px; height: 14px; }

.watch-related {
  padding: 2.5rem 0 4rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 2rem;
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .ran-rows-wrap { padding: 2.5rem 0 1rem; }
  .ran-row { margin-bottom: 2rem; }
  .ran-row-header {
    padding: 0 5vw 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
  .ran-row-side {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    padding-top: 0;
  }
  .ran-row-desc { font-size: 0.88rem; }
  .ran-shorts-track { padding: 0.5rem 5vw 1.25rem; gap: 0.75rem; }
  .ran-short { flex-basis: 140px; width: 140px; }
  .ran-short-title { font-size: 0.76rem; }
  .ran-short-play { width: 40px; height: 40px; }
  .ran-short-play svg { width: 15px; height: 15px; }
  .ran-row-track { padding: 0.5rem 5vw 1.25rem; gap: 0.85rem; }
  .ran-card { flex-basis: 240px; width: 240px; }
  .ran-card-title { font-size: 0.88rem; }
  .ran-card-sub { font-size: 0.72rem; }
  .ran-card-play { width: 44px; height: 44px; }
  .ran-card-play svg { width: 16px; height: 16px; }
  .watch-hero { padding: 1rem 5vw 0; }
  .watch-meta { padding: 1.25rem 5vw 0; }
  .watch-desc { padding: 0 5vw; }
  .watch-related { margin-top: 1rem; }
}
