/*
Theme Name: The BT View Video
Theme URI: https://thebtview.com/
Author: The BT View
Description: A focused video archive theme inspired by modern Jewish podcast watch pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: btview-video
*/

:root {
  --bt-ink: #17211d;
  --bt-muted: #66726d;
  --bt-paper: #f4faf7;
  --bt-panel: #ffffff;
  --bt-border: #d9e8e0;
  --bt-gold: #bd8c2d;
  --bt-teal: #0f6f62;
  --bt-red: #a9342f;
  --bt-shadow: 0 14px 34px rgba(18, 52, 44, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bt-paper);
  color: var(--bt-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: #ffffff;
  color: var(--bt-ink);
  border-bottom: 1px solid var(--bt-border);
}

.header-inner,
.content-wrap,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0;
  min-height: 116px;
}

.brand-logo {
  width: 312px;
  height: 116px;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--bt-ink);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  text-decoration: none;
}

.watch-hero {
  background:
    linear-gradient(135deg, rgba(15, 111, 98, 0.12), rgba(189, 140, 45, 0.12)),
    #ffffff;
  color: var(--bt-ink);
  padding: 28px 0 30px;
  text-align: center;
  border-bottom: 1px solid var(--bt-border);
}

.watch-hero h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  margin: 0 auto;
  max-width: 840px;
}

.watch-hero p {
  color: var(--bt-muted);
  font-size: 18px;
  margin: 10px auto 0;
  max-width: 640px;
}

.watch-page {
  flex: 1;
  padding: 34px 0 64px;
}

.library-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.library-heading h2 {
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1;
  margin: 0;
}

.library-heading p {
  color: var(--bt-muted);
  margin: 0;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--bt-panel);
  border: 1px solid var(--bt-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--bt-shadow);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.video-card:hover {
  box-shadow: 0 18px 44px rgba(18, 52, 44, 0.16);
  transform: translateY(-3px);
}

.video-card a {
  display: block;
  text-decoration: none;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #222;
}

.thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.duration,
.play-dot {
  position: absolute;
  z-index: 1;
}

.duration {
  right: 10px;
  bottom: 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 7px;
}

.play-dot {
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--bt-red);
  transform: translate(-50%, -50%);
  font-size: 24px;
  padding-left: 4px;
}

.card-body {
  border-top: 4px solid var(--bt-teal);
  padding: 18px 18px 20px;
}

.video-card h2 {
  font-size: 19px;
  line-height: 1.2;
  margin: 0 0 10px;
}

.video-summary {
  color: #3b4944;
  font-size: 15px;
  line-height: 1.45;
  margin: 0 0 14px;
}

.meta-row {
  color: var(--bt-muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
}

.single-video {
  background: #191919;
  color: #fff8ec;
  padding: 34px 0 68px;
}

.episode-header {
  margin: 0 auto 28px;
  max-width: 940px;
  text-align: center;
}

.back-home {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  color: #e4d7bf;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 22px;
  padding: 0 13px;
  text-decoration: none;
  text-transform: uppercase;
}

.back-home::before {
  content: "<";
  margin-right: 8px;
}

.episode-header h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  margin: 0 auto 16px;
  max-width: 760px;
}

.episode-meta {
  color: #d6c9b5;
  justify-content: center;
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--bt-shadow);
  margin: 0 auto;
  max-width: 980px;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.single-video h1 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  margin: 0 auto 16px;
  max-width: 760px;
}

.single-copy {
  max-width: 760px;
  color: #e7ded0;
  font-size: 18px;
  margin: 28px auto 0;
  text-align: center;
}

.content-page {
  flex: 1;
  padding: 48px 0 72px;
}

.page-title {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  margin: 0 0 24px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: 42px;
  align-items: start;
}

.contact-copy {
  color: #37332c;
  font-size: 18px;
  max-width: 620px;
}

.page-content {
  color: #37332c;
  font-size: 19px;
  max-width: 860px;
}

.page-content p {
  margin: 0 0 20px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.about-portrait {
  margin: 0;
}

.about-portrait img {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: var(--bt-shadow);
}

.about-copy {
  color: #37332c;
  font-size: 20px;
  line-height: 1.62;
}

.about-copy p {
  margin: 0 0 22px;
}

.contact-form {
  background: var(--bt-panel);
  border: 1px solid var(--bt-border);
  border-radius: 8px;
  box-shadow: var(--bt-shadow);
  padding: 22px;
}

.contact-field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.contact-field label {
  color: var(--bt-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  border: 1px solid var(--bt-border);
  border-radius: 6px;
  background: #fff;
  color: var(--bt-ink);
  font: inherit;
  padding: 11px 12px;
}

.contact-field textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-submit {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--bt-ink);
  color: #fff8ec;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.form-message {
  border-radius: 6px;
  margin: 0 0 16px;
  padding: 11px 12px;
  font-weight: 700;
}

.form-message.success {
  background: #e4f1e9;
  color: #1f5b35;
}

.form-message.error {
  background: #f8e2df;
  color: #8a2219;
}

.site-footer {
  background: #131313;
  color: #d9d2c5;
  padding: 34px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 14px;
}

@media (max-width: 920px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .library-heading {
    align-items: start;
    flex-direction: column;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    max-width: 420px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    min-height: 92px;
  }

  .brand {
    min-height: 84px;
  }

  .brand-logo {
    width: 226px;
    height: 84px;
  }
