/* =============================================================
   OAKLEY — Bespoke Luxury Equestrian Vehicles
   ============================================================= */

/* ── Custom Properties ───────────────────────────────────────── */
:root {
  --clr-sand:    #f5f0e8;
  --clr-stone:   #e8e0d0;
  --clr-earth:   #c4a882;
  --clr-dark:    #1a1712;
  --clr-mid:     #3a3530;
  --clr-muted:   #7a7268;
  --clr-white:   #ffffff;

  --ff-serif:    'Cormorant Garamond', Georgia, serif;
  --ff-sans:     'Jost', Helvetica, sans-serif;

  --max-w:       1400px;
  --ease-luxury: cubic-bezier(0.25, 0.0, 0.0, 1.0);
  --transition:  0.4s var(--ease-luxury);
}

/* ── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--ff-sans);
  font-weight: 300;
  background-color: var(--clr-sand);
  color: var(--clr-dark);
  overflow-x: hidden;
}

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

/* ── Utilities ───────────────────────────────────────────────── */
.section-eyebrow {
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 1rem;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-light {
  display: inline-block;
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-white);
  border: 1px solid rgba(255,255,255,0.7);
  padding: 0.85em 2.4em;
  transition: background-color var(--transition), border-color var(--transition);
}
.btn-light:hover {
  background-color: rgba(255,255,255,0.15);
  border-color: var(--clr-white);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-earth);
  transition: gap var(--transition);
}
.link-arrow::after {
  content: '→';
  font-size: 0.85em;
  transition: transform var(--transition);
}
.link-arrow:hover { gap: 0.8em; }
.link-arrow:hover::after { transform: translateX(3px); }

/* =============================================================
   HEADER — static, centred logo + centred nav
   ============================================================= */
.site-header {
  width: 100%;
  background-color: var(--clr-sand);
  border-bottom: 1px solid var(--clr-stone);
  padding: 2rem 2.5rem 0;
  text-align: center;
  position: relative;
}

.header-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.logo-img {
  max-width: 260px;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--clr-stone);
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
}

.main-nav a {
  display: block;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clr-mid);
  padding: 1.1rem 1.8rem;
  position: relative;
  transition: color var(--transition);
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 1.8rem; right: 1.8rem;
  height: 1px;
  background: var(--clr-dark);
  transform: scaleX(0);
  transition: transform var(--transition);
}
.main-nav a:hover { color: var(--clr-dark); }
.main-nav a:hover::after { transform: scaleX(1); }

/* Hamburger */
.hamburger {
  display: none;
  position: absolute;
  right: 1.2rem;
  top: 1.4rem;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1px;
  background-color: var(--clr-dark);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 1rem 0 1.5rem;
  border-top: 1px solid var(--clr-stone);
}
.mobile-nav.open { display: flex; }
.mobile-nav ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.mobile-nav a {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-mid);
  padding: 0.75rem 1rem;
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--clr-dark); }

/* =============================================================
   HERO — self-hosted MP4, full-width 16:9 with overlay + content
   ============================================================= */
.hero-video {
  position: relative;
  width: 100%;
  background: var(--clr-dark);
  overflow: hidden;
}

/* The video fills full width, natural aspect ratio */
.hero-vid {
  width: 100%;
  height: auto;
  display: block;
  /* max height so it doesn't dominate on very wide screens */
  max-height: 90vh;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(18,15,10,0.08) 0%,
    rgba(18,15,10,0.40) 55%,
    rgba(18,15,10,0.65) 100%
  );
  pointer-events: none;
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--clr-white);
  padding: 0 1.5rem;
  animation: fadeUp 1.2s 0.3s var(--ease-luxury) both;
}

.hero-eyebrow {
  font-family: var(--ff-sans);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 2rem;
}
.hero-title em { font-style: italic; font-weight: 300; }

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.6);
}
.hero-scroll-hint span {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.4);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: rgba(255,255,255,0.9);
  animation: scrollLine 2s 1s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%;  }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =============================================================
   INTRO
   ============================================================= */
.intro {
  padding: 8rem 1.5rem;
  background-color: var(--clr-sand);
}
.intro-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}
.intro-heading {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 2rem;
  color: var(--clr-dark);
}
.intro-heading em { font-style: italic; }
.intro-body {
  font-size: 20px;
  line-height: 1.85;
  color: var(--clr-muted);
  max-width: 580px;
  margin: 0 auto;
}
.intro-body--spaced { margin-top: 1.2rem; }

/* =============================================================
   GALLERY — large + two portraits + full-width strip
   ============================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  background-color: var(--clr-stone);
  padding: 4px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-luxury);
  background-position: bottom;
}
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item--large                   { grid-column: 1 / 7;   grid-row: 1; aspect-ratio: 3/2; }
.gallery-item--portrait:nth-of-type(2) { grid-column: 7 / 10;  grid-row: 1; }
.gallery-item--portrait:nth-of-type(3) { grid-column: 10 / 13; grid-row: 1; }
.gallery-item--wide                    { grid-column: 1 / 13;  grid-row: 2; height: 760px; }

figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 1.8rem 1.6rem;
  background: linear-gradient(to top, rgba(18,15,10,0.72) 0%, transparent 100%);
  color: var(--clr-white);
  transform: translateY(4px);
  transition: transform var(--transition);
}
.gallery-item:hover figcaption { transform: translateY(0); }

.fig-eyebrow {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 0.3rem;
}
.fig-title {
  font-family: var(--ff-serif);
  font-size: 32px;
  font-weight: 300;
  line-height: 1.2;
}

/* =============================================================
   CRAFTSMANSHIP CARDS
   ============================================================= */
.experiences {
  padding: 8rem 1.5rem;
  background-color: var(--clr-sand);
}
.experiences-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.experiences-heading {
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  margin-bottom: 4rem;
  color: var(--clr-dark);
}
.experience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}
.experience-card { display: flex; flex-direction: column; }

.experience-img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  margin-bottom: 1.6rem;
}
.experience-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-luxury);
}
.experience-card:hover .experience-img-wrap img { transform: scale(1.04); }

.experience-body { padding: 0 0.2rem; }
.experience-tag {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-earth);
  margin-bottom: 0.7rem;
}
.experience-body h3 {
  font-family: var(--ff-serif);
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  color: var(--clr-dark);
}
.experience-body p {
  font-size: 18px;;
  line-height: 1.8;
  color: var(--clr-muted);
  margin-bottom: 1.2rem;
}

/* =============================================================
   BESPOKE DETAIL SPLIT
   ============================================================= */
.detail-section {
  padding: 8rem 1.5rem;
  background-color: var(--clr-stone);
}
.detail-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.detail-heading {
  font-family: var(--ff-serif);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  margin-bottom: 2rem;
  color: var(--clr-dark);
}
.detail-heading em { font-style: italic; }
.detail-body {
  font-size: 0.92rem;
  line-height: 1.85;
  color: var(--clr-muted);
  max-width: 520px;
}
.detail-body--spaced { margin-top: 1.1rem; }
.detail-list {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.detail-list li {
  font-size: 0.82rem;
  color: var(--clr-mid);
  padding-left: 1.2rem;
  position: relative;
  letter-spacing: 0.04em;
}
.detail-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--clr-earth);
  font-size: 0.75rem;
}
.detail-image {
  overflow: hidden;
  aspect-ratio: 3/4;
}
.detail-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-luxury);
}
.detail-section:hover .detail-image img { transform: scale(1.03); }

/* =============================================================
   FULL GALLERY GRID — 6 detail images in a 3-col grid
   ============================================================= */
.gallery-full {
  padding: 8rem 1.5rem;
  background-color: var(--clr-sand);
}

.gallery-full-header {
  max-width: var(--max-w);
  margin: 0 auto 4rem;
}

.gallery-full-heading {
  font-family: var(--ff-serif);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 300;
  color: var(--clr-dark);
}

.gallery-full-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background-color: var(--clr-stone);
  padding: 4px;
}

.gf-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}
.gf-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-luxury);
}
.gf-item:hover img { transform: scale(1.05); }

/* reuse figcaption styles — gf-item inherits the global figcaption rules */
.gf-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 1.5rem 1.4rem 1.2rem;
  background: linear-gradient(to top, rgba(18,15,10,0.72) 0%, transparent 100%);
  color: var(--clr-white);
  transform: translateY(4px);
  transition: transform var(--transition);
}
.gf-item:hover figcaption { transform: translateY(0); }

/* =============================================================
   CTA BANNER
   ============================================================= */
.cta-banner {
  position: relative;
  height: 70vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.cta-banner-bg {
  position: absolute;
  inset: 0;
}
.cta-banner-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.cta-banner-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18,15,10,0.50);
}
.cta-banner-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--clr-white);
  padding: 0 1.5rem;
  max-width: 700px;
}
.cta-eyebrow { color: rgba(255,255,255,0.65); }
.cta-banner-content h2 {
  font-family: var(--ff-serif);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.cta-banner-content h2 em { font-style: italic; }
.cta-sub {
  font-size: 18px;;
  line-height: 1.8;
  color: rgba(255,255,255,0.7);
  max-width: 520px;
  margin: 0 auto 2.5rem;
}

/* =============================================================
   FOOTER
   ============================================================= */
.site-footer {
  background-color: var(--clr-dark);
  color: rgba(255,255,255,0.75);
}
.footer-top {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 6rem 2.5rem 4rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-logo { display: inline-block; }
.footer-logo-img {
  width: 260px;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-tagline {
  font-size: 0.82rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.45);
  margin-top: 1.4rem;
  margin-bottom: 2.2rem;
}
.footer-nl-label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-earth);
  margin-bottom: 0.8rem;
}
.footer-nl-form {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}
.footer-nl-form input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  padding: 0.6em 0;
  font-family: var(--ff-sans);
  font-size: 0.8rem;
  font-weight: 300;
  color: var(--clr-white);
}
.footer-nl-form input::placeholder { color: rgba(255,255,255,0.3); }
.footer-nl-form button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ff-sans);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clr-earth);
  padding: 0.6em 0 0.6em 1em;
  transition: color var(--transition);
}
.footer-nl-form button:hover { color: var(--clr-white); }

.footer-col h4 {
  font-family: var(--ff-sans);
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: 1.4rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--clr-white); }

.footer-social-bar {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 2rem;
}
.footer-social-label {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.footer-social-links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}
.footer-social-links a {
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.footer-social-links a:hover { color: var(--clr-white); }

.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 2.5rem 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-legal {
  display: flex;
  gap: 1.8rem;
  flex-wrap: wrap;
}
.footer-legal a {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.06em;
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,0.7); }
.footer-copy {
  font-size: 0.68rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
}

/* =============================================================
   RESPONSIVE
   ============================================================= */

/* ── Tablet ─ max 1024px ──────────────────────────────────── */
@media (max-width: 1024px) {

  /* Gallery row 1 */
  .gallery-item--portrait:nth-of-type(2) { grid-column: 7 / 10; }
  .gallery-item--portrait:nth-of-type(3) { grid-column: 10 / 13; }
  .gallery-item--wide { height: 560px; }

  /* Craftsmanship */
  .experience-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .experience-grid .experience-card:last-child { grid-column: 1 / -1; max-width: 50%; }

  /* Detail split */
  .detail-inner { grid-template-columns: 1fr; gap: 3rem; }
  .detail-image { aspect-ratio: 16/9; max-height: 500px; }

  /* Full gallery */
  .gallery-full-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer */
  .footer-top { grid-template-columns: 1fr 1fr; gap: 3rem 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ── Mobile ─ max 680px ───────────────────────────────────── */
@media (max-width: 680px) {
	
	.site-footer {
text-align: center;
}

  /* Header */
  .site-header { padding: 30px; }
  .logo-img { width: 160px; }
  .header-logo-wrap { margin-bottom: 0; }
  .main-nav { display: none; }
  .hamburger { display: flex; }

  /* Gallery row 1 → stack */
  .gallery { grid-template-columns: 1fr; }
  .gallery-item--large,
  .gallery-item--portrait:nth-of-type(2),
  .gallery-item--portrait:nth-of-type(3),
  .gallery-item--wide {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16/9;
    height: auto;
  }

  /* Sections */
  .intro       { padding: 5rem 1.2rem; }
  .experiences { padding: 5rem 1.2rem; }
  .detail-section { padding: 5rem 1.2rem; }
  .gallery-full   { padding: 5rem 1.2rem; }

  /* Craftsmanship → single col */
  .experience-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .experience-grid .experience-card:last-child { max-width: 100%; grid-column: auto; }

  /* Detail */
  .detail-image { aspect-ratio: 4/3; }

  /* Full gallery → single col */
  .gallery-full-grid { grid-template-columns: 1fr; }
  .gf-item { aspect-ratio: 16/9; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; padding: 4rem 1.5rem 3rem; gap: 2.5rem; }
  .footer-brand { grid-column: auto; }
  .footer-social-bar { padding: 1.5rem; flex-wrap: wrap; gap: 1rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 1.5rem; }
  .footer-legal { gap: 1rem; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 1.6rem; }
  .footer-legal { flex-direction: column; gap: 0.7rem; }
}


/* ─── Wrapper ─────────────────────────────────────────────── */
.hero-vid-wrap {
  position: relative;
  display: inline-block; /* or block / whatever your layout needs */
  width: 100%;
  line-height: 0; /* removes gap under video */
}

.hero-vid {
  display: block;
  width: 100%;
  height: auto;
}

/* ─── Controls bar ────────────────────────────────────────── */
.vid-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 16px 16px;

  /* Subtle gradient so controls are legible over any video */
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 100%);

  /* Fade controls when not hovering */
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.hero-vid-wrap:hover .vid-controls,
.hero-vid-wrap:focus-within .vid-controls {
  opacity: 1;
  pointer-events: auto;
}

/* Always show controls on touch devices */
@media (hover: none) {
  .vid-controls {
    opacity: 1;
    pointer-events: auto;
  }
}

/* ─── Buttons ─────────────────────────────────────────────── */
.vid-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.15s ease;
}

.vid-btn:hover {
  background: rgba(255,255,255,0.32);
  transform: scale(1.08);
}

.vid-btn:active {
  transform: scale(0.95);
}

.icon {
  width: 18px;
  height: 18px;
}

/* ─── Icon state switching ────────────────────────────────── */

/* Play button: show pause when playing, play when paused */
.vid-btn .icon-play  { display: none; }
.vid-btn .icon-pause { display: block; }

.vid-btn.paused .icon-play  { display: block; }
.vid-btn.paused .icon-pause { display: none; }

/* Mute button: show muted when muted, sound when unmuted */
.vid-btn .icon-sound  { display: none; }
.vid-btn .icon-muted  { display: block; }

.vid-btn.unmuted .icon-sound { display: block; }
.vid-btn.unmuted .icon-muted { display: none; }

/* ─── Volume slider ───────────────────────────────────────── */
.volume-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-slider-wrap {
  width: 0;
  overflow: hidden;
  transition: width 0.25s ease;
}

.volume-group:hover .volume-slider-wrap,
.volume-group:focus-within .volume-slider-wrap {
  width: 80px;
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.35);
  outline: none;
  cursor: pointer;
  display: block;

  /* Filled portion via JS-set custom property */
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.9) 0%,
    rgba(255,255,255,0.9) var(--val, 0%),
    rgba(255,255,255,0.3) var(--val, 0%),
    rgba(255,255,255,0.3) 100%
  );
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  transition: transform 0.15s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: none;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

/* ─── Unmute hint badge ───────────────────────────────────── */
.unmute-hint {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 5px 10px 5px 8px;
  border-radius: 20px;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.unmute-hint.hidden {
  opacity: 0;
}