/* /assets/css/film-player.css — De Bruns shoppable films (include/film-player.inc).
   Everything is scoped to .dbf / .dbf-* so it cannot touch the rest of a page.
   The look follows the reels: a near-black velvet ground, warm gold, ivory type.
   Fonts are the site's own: myNinna for headings, Poppins for the small caps. */

.dbf {
  --dbf-ground: #0f1115;
  --dbf-ink: #f4ede3;
  --dbf-muted: #b9ad9c;
  --dbf-gold: #c9a96a;
  --dbf-line: rgba(201, 169, 106, .32);
  --dbf-serif: 'myNinna', Georgia, 'Times New Roman', serif;
  --dbf-sans: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  position: relative;
  min-width: 0;
  margin: 0 auto;
  color: var(--dbf-ink);
  font-family: var(--dbf-sans);
  text-align: left;
}
.dbf *, .dbf *::before, .dbf *::after { box-sizing: border-box; }

/* 9:16 stage. Height is capped so the whole reel fits the screen; the width
   follows from the ratio. */
.dbf__stage {
  position: relative;
  width: 100%;
  max-width: calc(80vh * 9 / 16);
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  background: var(--dbf-ground);
  overflow: hidden;
  border-radius: 3px;
}
@supports not (aspect-ratio: 9 / 16) {
  .dbf__stage { height: 0; padding-bottom: 177.78%; }
}
.dbf__video {
  position: absolute; inset: 0;
  display: block; width: 100%; height: 100%;
  object-fit: cover; cursor: pointer; background: var(--dbf-ground);
}

/* Play button: shown while paused (before the first play, with reduced motion,
   after a tap to pause, and on tiles until they are tapped). */
.dbf__play {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: 64px; height: 64px; margin: -32px 0 0 -32px; padding: 0;
  border: 1px solid var(--dbf-line); border-radius: 50%;
  background: rgba(15, 17, 21, .55); cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity .25s ease;
}
.dbf__play span {
  position: absolute; left: 50%; top: 50%; margin: -11px 0 0 -6px;
  border-style: solid; border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--dbf-ink);
}
.dbf.is-paused .dbf__play { opacity: 1; pointer-events: auto; }
.dbf__play:focus-visible { outline: 2px solid var(--dbf-gold); outline-offset: 3px; }

/* The shopping card sits in the bottom sixth. Each reel keeps its text in the
   top third, so the card never covers it. */
.dbf__pill {
  position: absolute; left: 10px; right: 10px; bottom: 14px; z-index: 3;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; align-items: baseline;
  padding: 10px 12px 9px;
  color: var(--dbf-ink); text-decoration: none;
  background: rgba(15, 17, 21, .74); border: 1px solid var(--dbf-line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease;
}
.dbf__pill[hidden] { display: none; }
.dbf__pill.is-in { opacity: 1; transform: none; }
.dbf__pill:hover, .dbf__pill:focus { color: var(--dbf-ink); text-decoration: none; }
.dbf__pill-lot { font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--dbf-gold); white-space: nowrap; }
.dbf__pill-title { font-family: var(--dbf-serif); font-size: 16px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dbf__pill-price { font-size: 14px; font-weight: 500; color: var(--dbf-gold); white-space: nowrap; }
.dbf__pill-cta {
  grid-column: 1 / -1; margin-top: 5px;
  font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--dbf-muted);
}
.dbf__pill-cta::after { content: " \203A"; }
.dbf__pill:hover .dbf__pill-cta, .dbf__pill:focus-visible .dbf__pill-cta { color: var(--dbf-ink); }
.dbf__pill:focus-visible { outline: 2px solid var(--dbf-gold); outline-offset: 2px; }

.dbf__progress { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; height: 2px; background: rgba(255, 255, 255, .1); }
.dbf__progress span { display: block; height: 100%; background: var(--dbf-gold); transform-origin: 0 50%; transform: scaleX(0); }

/* Lots: a horizontal strip that scrolls inside itself (never the page). */
.dbf__lots {
  list-style: none; margin: 12px auto 0; padding: 0 0 8px;
  display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.dbf__lot {
  flex: 0 0 64%; max-width: 250px; scroll-snap-align: start;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 11px 12px; border: 1px solid var(--dbf-line); background: rgba(255, 255, 255, .02);
  transition: background .3s ease, border-color .3s ease;
}
.dbf__lot.is-active { border-color: var(--dbf-gold); background: rgba(201, 169, 106, .1); }
.dbf__lot--sold, .dbf__lot--gone { opacity: .7; }
.dbf__lot-link { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.dbf__lot-link:hover, .dbf__lot-link:focus { color: inherit; text-decoration: none; }
.dbf__lot-link:hover .dbf__lot-title { text-decoration: underline; text-decoration-color: var(--dbf-gold); text-underline-offset: 3px; }
.dbf__lot-no { font-size: 10px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--dbf-gold); }
.dbf__lot-title { font-family: var(--dbf-serif); font-size: 16px; line-height: 1.3; }
.dbf__lot-price { font-size: 13px; color: var(--dbf-muted); }
.dbf__lot-seek {
  align-self: flex-start; margin-top: 8px; padding: 6px 0 4px;
  background: none; border: 0; border-bottom: 1px solid var(--dbf-line); cursor: pointer;
  font: 500 10px/1 var(--dbf-sans); letter-spacing: .16em; text-transform: uppercase; color: var(--dbf-muted);
}
.dbf__lot-seek:hover, .dbf__lot-seek:focus-visible { color: var(--dbf-ink); }

.dbf__more { margin: 12px 0 0; text-align: center; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.dbf__more a { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.dbf__more a:hover { text-decoration: none; opacity: .8; }

/* ---------- embed: category pages (light page, dark band) ---------- */
.dbf-category-block { margin: 6px 0 26px; padding: 18px 12px 16px; background: #0f1115; color: #f4ede3; }
.dbf-category-block__h { margin: 0 0 12px; font-family: 'myNinna', Georgia, serif; font-weight: normal; font-size: 22px; text-align: center; color: #f4ede3; }
.dbf--embed .dbf__stage { max-width: min(340px, calc(76vh * 9 / 16)); }
.dbf--embed .dbf__more a { color: #c9a96a; }
@media (min-width: 768px) {
  .dbf-category-block { padding: 24px; }
  .dbf--embed { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 22px; align-items: start; }
  /* Explicit width: the column is sized by its content, and the video inside is absolutely positioned. */
  .dbf--embed .dbf__stage { grid-row: 1 / span 2; margin: 0; width: min(340px, calc(76vh * 9 / 16)); }
  .dbf--embed .dbf__lots { flex-wrap: wrap; overflow: visible; margin: 0; align-content: flex-start; }
  .dbf--embed .dbf__lot { flex: 0 0 calc(50% - 5px); max-width: none; }
  .dbf--embed .dbf__more { text-align: left; }
}
@media (min-width: 1100px) {
  .dbf--embed .dbf__lot { flex-basis: calc(33.333% - 7px); }
}

/* ---------- watch page: /films/{slug}/ ---------- */
.dbf-watch { background: #0f1115; color: #f4ede3; font-family: 'Poppins', sans-serif; }
.dbf-watch__inner { max-width: 1200px; margin: 0 auto; padding: 18px 16px 56px; }
.dbf-watch .db-breadcrumbs__item, .dbf-watch .db-breadcrumbs__item[aria-current="page"] { color: #b9ad9c; }
.dbf-watch .db-breadcrumbs__item a, .dbf-watch .db-breadcrumbs .db-breadcrumbs__item:nth-last-child(2) a { color: #c9a96a; }
.dbf-watch .db-breadcrumbs .db-breadcrumbs__item:nth-last-child(2)::before { color: #c9a96a; }
.dbf-watch__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 14px; }
/* No auto margins on grid children: in a grid they shrink the item to its
   content, and the lot strip's content is ten cards wide. */
.dbf-watch__grid > * { min-width: 0; margin-left: 0; margin-right: 0; }
.dbf-watch__eyebrow { margin: 0 0 10px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: #c9a96a; }
.dbf-watch__h1 { margin: 0 0 14px; font-family: 'myNinna', Georgia, serif; font-weight: normal; font-size: 32px; line-height: 1.12; color: #f4ede3; }
.dbf-watch__desc { margin: 0 0 16px; font-size: 15px; line-height: 1.75; color: #e3d9cb; }
.dbf-watch__hint, .dbf-watch__chat { margin: 0 0 14px; font-size: 14px; line-height: 1.7; color: #b9ad9c; }
.dbf-watch__chat a { color: #c9a96a; text-decoration: underline; text-underline-offset: 3px; }
.dbf-watch__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; }
.dbf-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px;
  font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  background: #c9a96a; color: #0f1115; border: 1px solid #c9a96a; border-radius: 2px;
}
.dbf-btn:hover, .dbf-btn:focus { background: #dcc08a; border-color: #dcc08a; color: #0f1115; text-decoration: none; }
.dbf-btn--ghost { background: transparent; color: #c9a96a; border-color: rgba(201, 169, 106, .55); }
.dbf-btn--ghost:hover, .dbf-btn--ghost:focus { background: rgba(201, 169, 106, .1); color: #f4ede3; }
@media (min-width: 900px) {
  .dbf-watch__inner { padding-top: 24px; }
  .dbf-watch__grid { grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: start; }
  .dbf-watch__h1 { font-size: 42px; }
  /* The lots sit in a column beside the film. */
  .dbf--watch { display: grid; grid-template-columns: auto 280px; gap: 18px; align-items: start; }
  .dbf--watch .dbf__stage { margin: 0; max-width: calc(80vh * 9 / 16); width: calc(80vh * 9 / 16); }
  .dbf--watch .dbf__lots { flex-direction: column; margin: 0; padding: 0 4px 0 0; max-height: 80vh; overflow-x: hidden; overflow-y: auto; scroll-snap-type: none; }
  .dbf--watch .dbf__lot { flex: none; max-width: none; }
}
@media (min-width: 900px) and (max-width: 1199px) {
  .dbf-watch__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- /films/ index ---------- */
.dbf-index__grid { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.dbf-index__card { display: block; color: #f4ede3; text-decoration: none; }
.dbf-index__card:hover, .dbf-index__card:focus { color: #f4ede3; text-decoration: none; }
.dbf-index__poster { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: #1a1d23; border-radius: 3px; }
.dbf-index__poster img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dbf-index__card:hover .dbf-index__poster img { transform: scale(1.03); }
.dbf-index__poster::after {
  content: ""; position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -5px;
  border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent rgba(244, 237, 227, .9);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .5));
}
.dbf-index__title { display: block; margin: 10px 0 2px; font-family: 'myNinna', Georgia, serif; font-size: 18px; line-height: 1.25; }
.dbf-index__meta { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #c9a96a; }
.dbf-index__empty { margin: 30px 0; font-size: 15px; color: #b9ad9c; }
@media (min-width: 768px) { .dbf-index__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .dbf-index__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- product page block ---------- */
.dbf-product-block { margin: 22px 0 8px; }
.dbf-product-block__h { margin: 0 0 12px; font-family: 'myNinna', Georgia, serif; font-weight: normal; font-size: 24px; text-align: center; }
.dbf--product .dbf__stage { max-width: min(340px, calc(80vh * 9 / 16)); }
.dbf-product-block .dbf__more a { color: #008080; }
.dbf-product-block__open { display: none; }
/* Phones and tablets: the columns stack and the gallery sits above the price,
   so the film starts as one line and opens on tap. */
@media (max-width: 991px) {
  .dbf-product-block { margin: 14px 0 4px; }
  .dbf-product-block__open {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px 8px 8px;
    font: 500 15px/1.2 'Poppins', sans-serif; color: #f4ede3; text-align: left;
    background: #0f1115; border: 1px solid rgba(201, 169, 106, .45); border-radius: 4px; cursor: pointer;
  }
  .dbf-product-block__open img { flex: 0 0 auto; width: 27px; height: 48px; object-fit: cover; border-radius: 2px; }
  .dbf-product-block__open-text { flex: 1; }
  .dbf-product-block__open-icon {
    width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(201, 169, 106, .6); position: relative; flex: 0 0 auto;
  }
  .dbf-product-block__open-icon::after {
    content: ""; position: absolute; left: 11px; top: 8px;
    border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #c9a96a;
  }
  .dbf-product-block:not(.is-open) .dbf-product-block__body { display: none; }
  .dbf-product-block.is-open .dbf-product-block__open { display: none; }
  .dbf-product-block .dbf-product-block__h { font-size: 20px; }
}

/* ---------- /social-media/ tiles (wrapper styles live in social-media-grid.inc) ---------- */
.dbf--tile .dbf__stage { max-width: none; }
.dbf--tile .dbf__pill { left: 6px; right: 6px; bottom: 8px; padding: 7px 8px 6px; column-gap: 6px; }
.dbf--tile .dbf__pill-title { font-size: 13px; }
.dbf--tile .dbf__pill-price { font-size: 12px; }
.dbf--tile .dbf__pill-lot { font-size: 9px; letter-spacing: .1em; }
.dbf--tile .dbf__pill-cta { display: none; }
.dbf--tile .dbf__play { width: 50px; height: 50px; margin: -25px 0 0 -25px; }
.dbf__caption { margin: 8px 0 0; font-size: 13px; line-height: 1.35; }
.dbf__caption a { display: block; font-family: 'myNinna', Georgia, serif; font-size: 16px; text-decoration: none; }
.dbf__caption span { display: block; margin-top: 2px; font-size: 10px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }

@media (prefers-reduced-motion: reduce) {
  .dbf__pill, .dbf__lot, .dbf__play, .dbf-index__poster img { transition: none; }
}
