/* DIFF Screening Room - DaVinci Film Festival design system */

:root {
  --gold: #e3b341;
  --gold-soft: #f0cf7e;
  --bg-1: #0f1315;
  --bg-2: #171c1e;
  --bg-3: #20272a;
  --shell-1: #12181a;
  --shell-2: #0d1214;
  --panel: rgba(255,255,255,.04);
  --panel-2: rgba(255,255,255,.05);
  --border-soft: rgba(255,255,255,.07);
  --text-1: #eef1f2;
  --text-2: #c9cdcf;
  --text-3: #9aa0a3;
  --text-4: #7f8688;
  --text-5: #565c5e;
  --font-display: 'Cormorant Garamond', serif;
  --font-ui: Manrope, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  background: radial-gradient(120% 90% at 12% 0%, var(--bg-3) 0%, var(--bg-2) 45%, var(--bg-1) 100%);
  color: var(--text-1);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-soft); }
button { font-family: var(--font-ui); }
form { margin: 0; }
::-webkit-scrollbar { height: 8px; width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 99px; }
::-webkit-scrollbar-track { background: transparent; }
.no-sb { scrollbar-width: none; -ms-overflow-style: none; }
.no-sb::-webkit-scrollbar { display: none; }

/* Shared bits */
.dsr-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: 2px; color: var(--gold); margin-bottom: 8px; }

.dsr-crumb-row { display: flex; align-items: center; gap: 16px; margin: 2px 2px 22px; }
.dsr-back-btn {
  display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 20px 0 12px; background: var(--panel-2);
  border: 1px solid var(--border-soft); border-radius: 99px; cursor: pointer; color: var(--text-1); font: 700 14px var(--font-ui);
}
.dsr-crumb { font-size: 13px; font-weight: 600; color: var(--text-4); }

/* Film grid card - functional hooks for _FilmGridCard.cshtml / favorites.js */
.dsr-film-card { position: relative; flex: none; width: 212px; }
.dsr-film-card--removing { opacity: 0; transform: scale(.94); transition: opacity .22s ease, transform .22s ease; pointer-events: none; }

/* ===== Filmmaker Studio ===== */

.dsr-studio-title { font-family: var(--font-display); font-weight: 700; font-size: 46px; line-height: 1; color: #fff; }
.dsr-studio-desc { font-size: 15px; line-height: 1.6; color: #a7adaf; margin: 11px 0 0; text-wrap: pretty; }

.dsr-status-pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .3px; padding: 6px 12px; border-radius: 99px; }
.dsr-status-dot { width: 7px; height: 7px; border-radius: 99px; background: currentColor; }

/* ===== Edit listing ===== */
.dsr-edit-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }

.dsr-delist-btn { display: flex; align-items: center; gap: 9px; height: 50px; padding: 0 22px; background: rgba(214,120,120,.1); border: 1px solid rgba(214,120,120,.32); border-radius: 12px; cursor: pointer; color: #d67878; font: 500 15px Poppins, var(--font-ui); }
.dsr-delist-btn:hover { background: rgba(214,120,120,.18); }
.dsr-cancel-btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 24px; background: var(--panel-2); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; cursor: pointer; color: var(--text-1); font: 700 15px var(--font-ui); }
.dsr-save-btn { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; background: var(--gold); border: none; border-radius: 12px; cursor: pointer;  }/*box-shadow: 0 12px 26px -10px rgba(227, 179, 65, .5);*/
.dsr-save-btn:disabled { opacity: .75; cursor: default; }
.dsr-save-label {
    font: 800 15px var(--font-ui);
    color: var(--bg-1);
}

.dsr-spinner {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 2px solid rgba(15,19,21,.3); border-top-color: var(--bg-1);
  animation: dsr-spin .7s linear infinite;
}
.dsr-spinner[hidden] { display: none; }
@keyframes dsr-spin { to { transform: rotate(360deg); } }

.dsr-edit-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,.9fr); gap: 24px; }
.dsr-edit-col { display: flex; flex-direction: column; gap: 22px; }
.dsr-panel { background: rgba(255,255,255,.03); border: 1px solid var(--border-soft); border-radius: 18px; padding: 24px 26px; }
.dsr-panel-title { font-size: 11px; font-weight: 800; letter-spacing: 1.6px; color: var(--gold); }
.dsr-panel-body { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }

.dsr-media-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start; margin-top: 16px; }
.dsr-media-row2 { display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap; }
.dsr-dropzone {
  border: 1.5px dashed rgba(255,255,255,.18); border-radius: 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 9px; cursor: pointer; background: rgba(255,255,255,.02);
  text-align: center; padding: 12px;
}
.dsr-dropzone:hover { border-color: #f2731c; background: rgba(242,115,28,.06); }
.dsr-dropzone--poster { width: 150px; aspect-ratio: 2 / 3; }
.dsr-dropzone--hero { flex: 1; min-width: 240px; aspect-ratio: 2 / 1; border-radius: 14px; padding: 16px; }
.dsr-dropzone--media { flex: 1; min-width: 220px; height: 158px; }
.dsr-dropzone-title { font-size: 12.5px; font-weight: 700; color: var(--text-2); }
.dsr-dropzone-title--lg { font-size: 14px; }
.dsr-dropzone-title--sm { font-size: 13px; }
.dsr-dropzone-sub { font-size: 10.5px; color: var(--text-4); line-height: 1.45; }
.dsr-dropzone-sub--lg { font-size: 11.5px; max-width: 300px; line-height: 1.5; }
.dsr-dropzone-sub--sm { font-size: 11px; }
.dsr-dropzone--has-image { background-size: cover; background-position: center; border-style: solid; }
.dsr-dropzone--has-image svg { display: none; }
.dsr-dropzone--has-image .dsr-dropzone-title, .dsr-dropzone--has-image .dsr-dropzone-sub { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.85); }

.dsr-stills-row { display: flex; gap: 16px; margin-top: 16px; align-items: flex-start; flex-wrap: wrap; }
.dsr-dropzone--stills { width: 150px; height: 150px; flex: none; }
.dsr-stills-grid { flex: 1; min-width: 200px; display: flex; flex-wrap: wrap; gap: 12px; }
.dsr-still-tile {
  width: 96px; height: 96px; border-radius: 10px; background-size: cover; background-position: center;
  background-color: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); position: relative;
}
.dsr-still-tile--pending { border-style: dashed; border-color: rgba(242,115,28,.5); opacity: .75; }
.dsr-still-remove {
  position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border-radius: 99px;
  background: rgba(0,0,0,.6); border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; cursor: pointer;
}
.dsr-still-remove:hover { background: rgba(214,120,120,.55); border-color: rgba(214,120,120,.7); }
.dsr-stills-empty { font-size: 12.5px; color: var(--text-4); margin-top: 12px; }

.dsr-field { display: block; }
.dsr-label { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; color: var(--text-4); margin-bottom: 8px; display: block; }
.dsr-input {
  width: 100%; height: 48px; padding: 0 15px; background: var(--panel-2); border: 1px solid rgba(255,255,255,.1);
  border-radius: 11px; color: var(--text-1); outline: none; font: 600 15px var(--font-ui);
}

.dsr-input:focus { border-color: var(--gold); }
.dsr-field-error { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: #e07a7a; }
.dsr-field-error[hidden] { display: none; }
.dsr-input.input-validation-error { border-color: #c98d8d; }
.dsr-field-row { display: flex; gap: 14px; }
.dsr-field-row > .dsr-field { flex: 1; }

.dsr-director-edit { display: flex; gap: 20px; align-items: flex-start; margin-top: 18px; }
.dsr-photo-drop {
  width: 88px; height: 88px; flex: none; border-radius: 99px; border: 1.5px dashed rgba(255,255,255,.2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer;
  background: rgba(255,255,255,.02);
}
.dsr-photo-drop:hover { border-color: #f2731c; background: rgba(242,115,28,.06); }
.dsr-photo-drop-label { font-size: 9.5px; font-weight: 700; color: var(--text-4); }
.dsr-photo-drop.dsr-has-image, .dsr-cast-photo.dsr-has-image { background-size: cover; background-position: center; border-style: solid; }
.dsr-photo-drop.dsr-has-image svg, .dsr-cast-photo.dsr-has-image svg { display: none; }
.dsr-photo-drop.dsr-has-image .dsr-photo-drop-label { display: none; }
.dsr-director-fields { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.dsr-panel-header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.dsr-addmember-btn { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: rgba(242,115,28,.13); border: 1px solid rgba(242,115,28,.3); border-radius: 9px; cursor: pointer; color: #ff8a3d; font: 700 13px var(--font-ui); }
.dsr-cast-rows { display: flex; flex-direction: column; gap: 12px; }
.dsr-cast-row { display: flex; align-items: center; gap: 13px; }
.dsr-cast-photo { width: 48px; height: 48px; flex: none; border-radius: 99px; border: 1.5px dashed rgba(255,255,255,.2); display: grid; place-items: center; cursor: pointer; background: rgba(255,255,255,.02); }
.dsr-cast-photo:hover { border-color: #f2731c; background: rgba(242,115,28,.06); }
.dsr-cast-input { flex: 1; min-width: 0; height: 48px; padding: 0 15px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 11px; color: #fff; font: 500 15px var(--font-ui); outline: none; }
.dsr-cast-input:focus { border-color: #f2731c; }
.dsr-cast-remove { width: 40px; height: 40px; flex: none; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.09); display: grid; place-items: center; cursor: pointer; }
.dsr-cast-remove:hover { background: rgba(214,120,120,.16); border-color: rgba(214,120,120,.4); }
.dsr-cast-empty { font-size: 13.5px; color: #7e93b0; padding: 6px 2px; }

.dsr-notice { display: flex; gap: 11px; align-items: flex-start; background: rgba(227,179,65,.07); border: 1px solid rgba(227,179,65,.18); border-radius: 14px; padding: 16px 18px; }
.dsr-notice[hidden] { display: none; }
.dsr-notice-text { font-size: 12.5px; line-height: 1.55; color: #c7b483; }

/* ===== Static pages (e.g. Privacy) ===== */
.dsr-static-page { padding: 30px 4px; max-width: 640px; }
.dsr-static-title { font-family: var(--font-display); font-weight: 700; font-size: 46px; color: #fff; margin: 0 0 14px; }
.dsr-static-body { font-size: 15.5px; line-height: 1.6; color: #a7adaf; }

/* ===== Video player modal ===== */
.dsr-player-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.85);
  display: flex; align-items: center; justify-content: center; padding: 30px;
}
.dsr-player-overlay[hidden] { display: none; }
.dsr-player-modal {
  width: 100%; max-width: 1100px; background: #0a0d0e; border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px; overflow: hidden; box-shadow: 0 40px 100px -20px rgba(0,0,0,.8);
}
.dsr-player-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; }
.dsr-player-title { font: 700 15px var(--font-ui); color: var(--text-1); }
.dsr-player-close {
  width: 34px; height: 34px; flex: none; border-radius: 10px; background: rgba(255,255,255,.08);
  border: none; display: grid; place-items: center; cursor: pointer;
}
.dsr-player-close:hover { background: rgba(255,255,255,.16); }
.dsr-player-body { position: relative; background: #000; }
.dsr-player-video { width: 100%; max-height: 70vh; display: block; }
.dsr-player-message { padding: 14px 20px; font: 600 13px var(--font-ui); color: #e07a7a; text-align: center; }
.dsr-player-message[hidden] { display: none; }

/* ===== Stills grid + lightbox (Content details page) ===== */
.dsr2-stills-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.dsr2-still-thumb {
  aspect-ratio: 1; border-radius: 8px; background-size: cover; background-position: center;
  background-color: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); padding: 0;
  cursor: pointer;
}
.dsr2-still-thumb:hover { border-color: #f2731c; }
.dsr2-lightbox-overlay {
  position: fixed; inset: 0; z-index: 300; background: rgba(0,0,0,.9);
  display: flex; align-items: center; justify-content: center; padding: 30px;
}
.dsr2-lightbox-overlay[hidden] { display: none; }
.dsr2-lightbox-img { max-width: 100%; max-height: 85vh; border-radius: 10px; box-shadow: 0 40px 100px -20px rgba(0,0,0,.8); }
.dsr2-lightbox-close {
  position: absolute; top: 24px; right: 24px; width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,255,255,.1); border: none; display: grid; place-items: center; cursor: pointer;
}
.dsr2-lightbox-close:hover { background: rgba(255,255,255,.18); }
.dsr2-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 99px;
  background: rgba(255,255,255,.1); border: none; display: grid; place-items: center; cursor: pointer;
}
.dsr2-lightbox-nav:hover { background: rgba(255,255,255,.18); }
.dsr2-lightbox-prev { left: 24px; }
.dsr2-lightbox-next { right: 24px; }

/* ============================================================================
   New design system (Netflix/Disney+-style) - shared top nav + every migrated
   page. Deliberately hardcoded colors, NOT the --gold/--bg-1 tokens above:
   those still back the pages not yet migrated to this look (Account: Login/
   SignUp/Profile/Subscription), plus the Filmmaker Edit form and the video
   player modal, which keep their own (now-trimmed) old-system rules further
   up this file. Repointing the shared tokens would silently reskin pages
   nobody's approved changes for yet.
   ============================================================================ */

.dsr2-body { margin: 0; padding: 0; background: #080c12; color: #fff; font-family: Poppins, system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.dsr2-shell { min-height: 100vh; }
.dsr2-main { min-height: calc(100vh - 58px); }

/* --- Top nav --- */
.dsr2-nav { position: sticky; top: 0; z-index: 60; background: rgba(8,12,18,.82); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); border-bottom: 1px solid rgba(255,255,255,.05); }
.dsr2-nav-row { display: flex; align-items: center; gap: 8px; padding: 11px clamp(14px,2.4vw,32px); }
/* Only the nav LINKS scroll horizontally on narrow screens - the search/avatar area (and its
   dropdown, positioned absolutely off the avatar) deliberately sits outside this scroll
   container, since overflow:auto here would clip the dropdown to this row's own box height,
   making it render underneath page content below the nav instead of on top of it. */
.dsr2-nav-links { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 10px; overflow-x: auto; }
.dsr2-logo { flex: none; display: flex; align-items: center; margin-right: 6px; }
.dsr2-logo img { height: 75px; width: auto; display: block; }

.dsr2-navitem { flex: none; display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 8px; cursor: pointer; color: #c6d3e4; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.dsr2-navitem:hover { color: #fff; background: rgba(255,255,255,.06); }
.dsr2-navitem.active { color: #fff; background: rgba(242,115,28,.14); }
.dsr2-navitem-icon svg { flex: none; }
.dsr2-navitem-inert { cursor: default; }
.dsr2-navitem-inert:hover { color: #c6d3e4; background: none; }
.dsr2-navitem-wrap { position: relative; flex: none; }

.dsr2-iconbtn { flex: none; width: 34px; height: 34px; border-radius: 99px; border: none; background: none; display: grid; place-items: center; cursor: pointer; color: #c6d3e4; }
.dsr2-iconbtn:hover { background: rgba(255,255,255,.07); color: #fff; }

.dsr2-avatar { flex: none; width: 34px; height: 34px; border-radius: 99px; background: linear-gradient(150deg,#ff9550,#e0600f); display: grid; place-items: center; font-size: 12.5px; font-weight: 700; color: #180c04; cursor: pointer; }
.dsr2-avatar-lg { width: 44px; height: 44px; font-size: 15px; }

.dsr2-authlinks { flex: none; display: flex; align-items: center; gap: 10px; }
.dsr2-authlink { font-size: 13.5px; font-weight: 600; color: #dbe4f0; }
.dsr2-authlink:hover { color: #fff; }
.dsr2-authbtn { display: flex; align-items: center; height: 36px; padding: 0 16px; background: linear-gradient(180deg,#ff8534,#ec6410); border-radius: 9px; font-size: 13.5px; font-weight: 700; color: #fff; }
.dsr2-authbtn:hover { color: #fff; filter: brightness(1.08); }

/* --- Dropdowns (browse categories / profile) --- */
.dsr2-dropdown { position: absolute; top: calc(100% + 8px); right: 0; min-width: 220px; background: #0d131c; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 8px; box-shadow: 0 24px 60px -16px rgba(0,0,0,.7); z-index: 70; }
.dsr2-dropdown[hidden] { display: none; }
.dsr2-dropdown--profile { min-width: 260px; }
.dsr2-dropdown-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 11px; border-radius: 9px; background: none; border: none; text-align: left; cursor: pointer; color: #dbe4f0; font-size: 13.5px; font-weight: 500; font-family: inherit; }
.dsr2-dropdown-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.dsr2-dropdown-item--accent { color: #ff8a3d; font-weight: 600; }
.dsr2-dropdown-item--accent:hover { background: rgba(242,115,28,.12); color: #ff8a3d; }
.dsr2-dropdown-item--danger { color: #e08a8a; }
.dsr2-dropdown-item--danger:hover { background: rgba(224,138,138,.1); color: #e08a8a; }
.dsr2-dropdown-header { display: flex; align-items: center; gap: 12px; padding: 6px 8px 14px; margin-bottom: 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
.dsr2-dropdown-name { font-size: 14px; font-weight: 600; color: #fff; }
.dsr2-dropdown-email { font-size: 12px; color: #8ea3bf; margin-top: 2px; }
.dsr2-dropdown-divider { height: 1px; background: rgba(255,255,255,.08); margin: 6px 4px; }

.dsr2-search-row { padding: 0 clamp(14px,2.4vw,32px) 12px; }
.dsr2-search-row[hidden] { display: none; }
.dsr2-searchbox { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 15px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.11); border-radius: 11px; }
.dsr2-searchinput { flex: 1; min-width: 0; background: none; border: none; outline: none; color: #fff; font-size: 14.5px; font-family: inherit; }

/* --- Hero (Home) --- */
.dsr2-hero { position: relative; min-height: clamp(520px,84vh,880px); display: flex; }
.dsr2-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dsr2-hero-scrim-radial { position: absolute; inset: 0; background: radial-gradient(85% 100% at 78% 34%, rgba(0,0,0,0) 18%, rgba(6,9,14,.72) 100%); }
.dsr2-hero-scrim-side { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,9,14,.94) 0%, rgba(6,9,14,.62) 34%, rgba(6,9,14,.05) 72%); }
.dsr2-hero-scrim-bottom { position: absolute; inset: 0; background: linear-gradient(0deg, #080c12 1%, rgba(8,12,18,.55) 22%, rgba(8,12,18,0) 62%); }
.dsr2-hero-discover { position: absolute; top: 18px; right: clamp(14px,2.4vw,32px); z-index: 5; display: flex; align-items: center; gap: 9px; height: 40px; padding: 0 18px; border: 1px solid rgba(242,115,28,.55); background: rgba(242,115,28,.1); border-radius: 99px; color: #ff9550; font-size: 13.5px; font-weight: 600; backdrop-filter: blur(8px); }
.dsr2-hero-discover:hover { background: rgba(242,115,28,.2); color: #ff9550; }
.dsr2-hero-content { position: relative; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 clamp(14px,2.4vw,32px) clamp(26px,3vw,44px); }
.dsr2-hero-badges { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.dsr2-badge-featured { font-size: 11.5px; font-weight: 600; color: #ff8a3d; background: rgba(242,115,28,.16); border: 1px solid rgba(242,115,28,.3); padding: 5px 11px; border-radius: 7px; }
.dsr2-badge-age { font-size: 11.5px; font-weight: 500; color: #e6edf6; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 5px 12px; border-radius: 99px; }
.dsr2-hero-runtime { font-size: 12.5px; font-weight: 500; color: #b9c7d9; }
.dsr2-hero-title { display: block; font-size: clamp(40px,7.6vw,86px); font-weight: 700; line-height: 1; letter-spacing: -.02em; color: #fff; max-width: 16ch; }
.dsr2-hero-title:hover { color: #ff9550; }
.dsr2-hero-mood { font-size: clamp(14px,1.5vw,19px); font-weight: 400; color: #8ea3bf; margin-top: 14px; max-width: 62ch; }
.dsr2-hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: clamp(20px,2.4vw,30px); }
.dsr2-btn-play { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 26px; background: linear-gradient(180deg,#ff8534,#ec6410); border: none; border-radius: 11px; cursor: pointer; box-shadow: 0 14px 30px -12px rgba(242,115,28,.6); font-size: 15px; font-weight: 600; color: #fff; font-family: inherit; }
.dsr2-btn-play:hover { color: #fff; filter: brightness(1.05); }
.dsr2-btn-details { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 24px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); border-radius: 11px; backdrop-filter: blur(8px); font-size: 15px; font-weight: 500; color: #fff; cursor: pointer; }
.dsr2-btn-details:hover { background: rgba(255,255,255,.16); color: #fff; }
.dsr2-btn-fav { width: 50px; height: 50px; flex: none; border-radius: 11px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(8px); }
.dsr2-btn-fav:hover { background: rgba(255,255,255,.16); }
.dsr2-hero-dots { display: flex; align-items: center; gap: 7px; margin-left: 4px; }
.dsr2-hero-dot { display: block; width: 7px; height: 7px; border-radius: 99px; background: rgba(255,255,255,.28); }
.dsr2-hero-dot.active { width: 22px; background: #f2731c; }

/* --- Rails (Home) --- */
.dsr2-rail { padding: clamp(20px,2.4vw,30px) 0 4px; }
.dsr2-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 clamp(14px,2.4vw,32px); margin-bottom: 13px; }
.dsr2-rail-title-lg { font-size: clamp(18px,1.9vw,23px); font-weight: 600; letter-spacing: -.01em; color: #fff; }
.dsr2-rail-viewall { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: #8ea3bf; white-space: nowrap; }
.dsr2-rail-viewall:hover { color: #fff; }
.dsr2-rail-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 0 6px clamp(14px,2.4vw,32px); }

.dsr2-rail-card { flex: none; width: clamp(152px,21vw,330px); cursor: pointer; display: block; color: inherit; }
.dsr2-rail-poster { position: relative; aspect-ratio: 4/5; border-radius: 7px; overflow: hidden; background: #14202c; }
.dsr2-rail-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dsr2-rail-sheen { position: absolute; inset: 0; background: radial-gradient(120% 90% at 28% 12%, rgba(255,255,255,.12), rgba(0,0,0,0) 58%); }
.dsr2-rail-initial { position: absolute; right: -6%; bottom: -4%; font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: clamp(120px,17vw,260px); line-height: .66; color: rgba(255,255,255,.055); }
.dsr2-rail-stamp { position: absolute; left: 0; right: 0; top: 34%; padding: 0 11%; text-align: center; }
.dsr2-rail-stamp-eyebrow { font-size: clamp(7px,.72vw,10px); font-weight: 600; letter-spacing: .16em; color: rgba(255,255,255,.72); line-height: 1.5; }
.dsr2-rail-stamp-title { font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: clamp(21px,2.9vw,44px); line-height: 1.02; color: #fff; margin: 9px 0; letter-spacing: .01em; }
.dsr2-rail-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(4,7,11,.78) 0%, rgba(4,7,11,0) 42%); }
.dsr2-rail-hover { position: absolute; inset: 0; opacity: 0; transition: opacity .18s; background: rgba(6,9,14,.42); }
.dsr2-rail-poster:hover .dsr2-rail-hover { opacity: 1; }
.dsr2-rail-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: clamp(38px,4vw,56px); height: clamp(38px,4vw,56px); border-radius: 99px; background: rgba(242,115,28,.92); display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.7); }
.dsr2-rail-hover-meta { position: absolute; left: 10px; bottom: 10px; display: flex; align-items: center; gap: 7px; }
.dsr2-rail-hover-runtime { font-size: 11px; font-weight: 600; color: #fff; }
.dsr2-rail-hover-age { font-size: 10px; font-weight: 500; color: #dbe4f0; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.16); padding: 2px 7px; border-radius: 5px; }
.dsr2-rail-title { font-size: clamp(13px,1.05vw,15.5px); font-weight: 500; color: #fff; margin-top: 10px; line-height: 1.3; }
.dsr2-rail-kind { font-size: 12.5px; font-weight: 400; color: #7e93b0; margin-top: 2px; }

/* --- Footer strip (Home) --- */
.dsr2-footer-strip { display: flex; align-items: center; gap: 12px; margin: 18px clamp(14px,2.4vw,32px) 0; padding: 22px 0 32px; border-top: 1px solid rgba(255,255,255,.06); }
.dsr2-footer-logo { height: 40px; width: auto; opacity: .55; }
.dsr2-footer-caption { font-size: 10px; font-weight: 500; letter-spacing: .12em; color: #5c6f88; line-height: 1.6; }

/* --- Shared page head (Browse / Category / Favorites) --- */
.dsr2-page-head { padding: clamp(22px,3vw,38px) clamp(14px,2.4vw,32px) 0; }
.dsr2-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: #ff8a3d; margin-bottom: 9px; }
.dsr2-page-title { font-size: clamp(30px,4.4vw,50px); font-weight: 700; letter-spacing: -.02em; line-height: 1; color: #fff; }
.dsr2-page-desc { font-size: 15px; line-height: 1.65; color: #8ea3bf; margin: 12px 0 0; max-width: 640px; }
.dsr2-back-link { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px 0 10px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 9px; color: #dbe4f0; font-size: 13px; font-weight: 500; margin-bottom: 18px; }
.dsr2-back-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.dsr2-detail-back { position: absolute; top: clamp(16px,2vw,24px); left: clamp(14px,2.4vw,32px); z-index: 5; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px 0 10px; background: rgba(8,12,18,.5); border: 1px solid rgba(255,255,255,.14); border-radius: 9px; color: #fff; font-size: 13px; font-weight: 500; backdrop-filter: blur(8px); }
.dsr2-detail-back:hover { background: rgba(8,12,18,.75); color: #fff; }

/* --- Browse --- */
.dsr2-browse-grid { padding: clamp(22px,3vw,38px) clamp(14px,2.4vw,32px) 40px; display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,208px),1fr)); gap: 13px; }
.dsr2-browse-tile { position: relative; display: block; aspect-ratio: 16/9; border-radius: 9px; overflow: hidden; }
.dsr2-browse-tile-shade { position: absolute; inset: 0; background: linear-gradient(0deg,rgba(4,7,11,.85) 4%,rgba(4,7,11,.1) 78%); }
.dsr2-browse-tile-body { position: absolute; left: 14px; right: 14px; bottom: 12px; }
.dsr2-browse-tile-name { font-size: 18px; font-weight: 600; line-height: 1.15; color: #fff; }
.dsr2-browse-tile-count { font-size: 12px; font-weight: 500; color: #ff8a3d; margin-top: 3px; }

/* --- Genre pills (Category) --- */
.dsr2-genre-scroll { display: flex; gap: 9px; overflow-x: auto; margin: 20px clamp(14px,2.4vw,32px) 22px; padding: 2px clamp(14px,2.4vw,32px) 2px 0; }
.dsr2-genre-pill { flex: none; display: flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 99px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #dbe4f0; font-size: 13px; font-weight: 500; white-space: nowrap; }
.dsr2-genre-pill:hover { background: rgba(255,255,255,.1); color: #fff; }
.dsr2-genre-pill.active { background: rgba(242,115,28,.16); border-color: rgba(242,115,28,.4); color: #ff8a3d; }

/* --- Card grid (Category / Favorites) --- */
.dsr2-card-grid { padding: 0 clamp(14px,2.4vw,32px) 40px; display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,168px),1fr)); gap: 22px 13px; }
.dsr2-card-grid[hidden] { display: none; }
.dsr2-empty-state { padding: 60px clamp(14px,2.4vw,32px) 80px; text-align: center; font-size: 15px; font-weight: 600; color: #7c8792; }
/* .dsr-film-card (kept alongside this as a functional hook - see _FilmGridCard.cshtml) forces
   width: 212px, which fights .dsr2-card-grid's own column sizing and overflows into the next
   card whenever a grid column ends up narrower than that - override back to filling the cell. */
.dsr2-grid-card { position: relative; width: 100%; }
.dsr2-grid-card.dsr-film-card--removing { opacity: 0; transform: scale(.94); transition: opacity .22s ease, transform .22s ease; pointer-events: none; }
.dsr2-grid-card-link { display: block; color: inherit; }
.dsr2-grid-card-fav-form { position: absolute; top: 10px; right: 10px; margin: 0; z-index: 2; }
.dsr2-grid-card-fav { width: 32px; height: 32px; border-radius: 99px; background: rgba(8,12,18,.55); border: 1px solid rgba(255,255,255,.16); display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(4px); }

/* --- Notice (Favorites empty state) --- */
.dsr2-notice { display: flex; gap: 11px; align-items: flex-start; background: rgba(242,115,28,.07); border: 1px solid rgba(242,115,28,.18); border-radius: 14px; padding: 16px 18px; margin: 20px clamp(14px,2.4vw,32px) 30px; }
.dsr2-notice[hidden] { display: none; }
.dsr2-notice-text { font-size: 12.5px; line-height: 1.55; color: #d3a67e; }

/* --- Details page --- */
.dsr2-detail-hero { position: relative; min-height: clamp(440px,72vh,760px); display: flex; align-items: flex-end; }
.dsr2-detail-hero .dsr2-hero-content { padding-top: clamp(16px,2vw,24px); }
.dsr2-detail-grid { padding: clamp(22px,2.6vw,34px) clamp(14px,2.4vw,32px) 0; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); gap: 30px; }
.dsr2-section-label { font-size: 11px; font-weight: 600; letter-spacing: .16em; color: #ff8a3d; margin: 26px 0 13px; }
.dsr2-section-label:first-child { margin-top: 0; }
.dsr2-synopsis-p { font-size: 15.5px; line-height: 1.75; color: #c6d3e4; margin: 0 0 15px; }
.dsr2-card { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 20px 22px; }
.dsr2-cast-panel { margin-top: 0; }
.dsr2-cast-wrap { display: flex; gap: 17px; overflow-x: auto; padding-bottom: 4px; }
.dsr2-cast-item { flex: none; width: 80px; text-align: center; }
.dsr2-cast-avatar { width: 64px; height: 64px; margin: 0 auto 9px; border-radius: 99px; background: linear-gradient(150deg,#2b3648,#151c28); background-size: cover; background-position: center; border: 1px solid rgba(242,115,28,.3); display: grid; place-items: center; font-size: 18px; font-weight: 600; color: #ff8a3d; }
.dsr2-cast-name { font-size: 12.5px; font-weight: 500; color: #fff; line-height: 1.3; }
.dsr2-crew-card { display: flex; gap: 17px; align-items: flex-start; flex-wrap: wrap; }
.dsr2-crew-avatar { width: 70px; height: 70px; flex: none; border-radius: 99px; background: linear-gradient(150deg,#43331f,#1d1710); background-size: cover; background-position: center; border: 1px solid rgba(242,115,28,.4); display: grid; place-items: center; font-size: 21px; font-weight: 600; color: #ff8a3d; }
.dsr2-crew-textcol { flex: 1; min-width: 190px; }
.dsr2-crew-name { font-size: 20px; font-weight: 600; line-height: 1.15; color: #fff; }
.dsr2-crew-role { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: #ff8a3d; margin: 5px 0 11px; }
.dsr2-crew-bio { font-size: 14px; line-height: 1.7; color: #a9bad0; margin: 0; }
.dsr2-quote-block { margin-top: 26px; padding: 22px; border-left: 3px solid #f2731c; background: linear-gradient(90deg,rgba(242,115,28,.09),rgba(242,115,28,0)); border-radius: 0 12px 12px 0; }
.dsr2-quote-text { font-family: 'Cormorant Garamond', serif; font-size: clamp(18px,2.2vw,24px); line-height: 1.45; color: #eef3fa; }
.dsr2-quote-attrib { font-size: 11px; font-weight: 600; letter-spacing: .12em; color: #6f8299; margin-top: 14px; }
.dsr2-side-col { display: flex; flex-direction: column; gap: 15px; }
.dsr2-side-title { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: #ff8a3d; margin-bottom: 16px; }
.dsr2-screening-list { display: flex; flex-direction: column; gap: 14px; }
.dsr2-screening-row { display: flex; align-items: center; gap: 11px; }
.dsr2-screening-row svg { flex: none; }
.dsr2-screening-date { font-size: 13.5px; font-weight: 500; color: #fff; }
.dsr2-screening-time { font-size: 11.5px; color: #7e93b0; }
.dsr2-screening-text { font-size: 13.5px; font-weight: 500; color: #fff; line-height: 1.4; }
.dsr2-premiere-badge { align-self: flex-start; font-size: 11px; font-weight: 600; letter-spacing: .1em; color: #ff8a3d; background: rgba(242,115,28,.14); padding: 6px 11px; border-radius: 7px; }
.dsr2-awards-list { display: flex; flex-direction: column; gap: 11px; }
.dsr2-award-row { display: flex; align-items: flex-start; gap: 10px; }
.dsr2-award-row svg { flex: none; margin-top: 2px; }
.dsr2-award-text { font-size: 13px; font-weight: 400; color: #c6d3e4; line-height: 1.5; }
.dsr2-specs-list { display: flex; flex-direction: column; gap: 11px; }
.dsr2-spec-row { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; }
.dsr2-spec-label { color: #7e93b0; }
.dsr2-spec-value { color: #fff; font-weight: 500; text-align: right; }

/* --- Filmmaker Studio index --- */
.dsr2-create-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; padding: 0 24px; background: linear-gradient(180deg,#ff8534,#ec6410); border: none; border-radius: 11px; cursor: pointer; color: #fff; font-size: 15px; font-weight: 600; box-shadow: 0 14px 30px -14px rgba(242,115,28,.6); margin-top: 20px; }
.dsr2-create-btn:hover { color: #fff; filter: brightness(1.05); }
.dsr2-fm-stats { padding: 0 clamp(14px,2.4vw,32px); display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,140px),1fr)); gap: 12px; margin: 24px 0 26px; }
.dsr2-fm-stat-card { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); border-radius: 13px; padding: 17px 19px; }
.dsr2-fm-stat-value { font-size: 30px; font-weight: 700; line-height: 1; color: #ff8a3d; }
.dsr2-fm-stat-label { font-size: 11.5px; font-weight: 500; color: #8ea3bf; margin-top: 7px; }
.dsr2-fm-list { padding: 0 clamp(14px,2.4vw,32px) 40px; display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,340px),1fr)); gap: 12px; }
.dsr2-fm-card { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); border-radius: 13px; padding: 13px; display: flex; gap: 14px; align-items: flex-start; }
.dsr2-fm-thumb { position: relative; width: 62px; flex: none; aspect-ratio: 4/5; border-radius: 7px; overflow: hidden; }
.dsr2-fm-thumb-initial { position: absolute; right: -8px; bottom: -6px; font-family: 'Cormorant Garamond', serif; font-weight: 700; font-size: 60px; line-height: .66; color: rgba(255,255,255,.13); }
.dsr2-fm-textcol { flex: 1; min-width: 0; }
.dsr2-fm-title { font-size: 16px; font-weight: 600; line-height: 1.25; color: #fff; }
.dsr2-fm-sub { font-size: 12px; color: #7e93b0; margin-top: 3px; }
.dsr2-fm-status-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-top: 10px; }
.dsr2-status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 99px; }
.dsr2-status-dot { width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.dsr2-fm-plays { font-size: 11.5px; font-weight: 500; color: #8ea3bf; }
.dsr2-fm-actions { display: flex; flex-direction: column; gap: 8px; flex: none; }
.dsr2-icon-sq { width: 36px; height: 36px; border-radius: 9px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: grid; place-items: center; cursor: pointer; }
.dsr2-icon-sq:hover { background: rgba(255,255,255,.12); }

/* --- Filmmaker Edit/Create form --- */
.dsr2-fm-edit-wrap { padding: clamp(18px,2.4vw,30px) clamp(14px,2.4vw,32px) 40px; }

/* Page-level padding for pages still on the old dsr- system (Login/SignUp/Profile/Subscription) -
   they used to get this for free from the old .dsr-main shell wrapper, which no longer exists
   now that migrated pages carry their own padding individually. */
.dsr2-legacy-page { padding: clamp(18px,2.4vw,30px) clamp(14px,2.4vw,32px) 40px; }
.dsr2-fm-edit-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.dsr2-fm-edit-actions { display: flex; gap: 12px; }
.dsr2-fm-edit-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,.9fr); gap: 18px; }
.dsr2-fm-edit-col { display: flex; flex-direction: column; gap: 18px; }

.dsr2-panel { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07); border-radius: 14px; padding: 20px; }
.dsr2-panel-title { font-size: 11px; font-weight: 600; letter-spacing: .14em; color: #ff8a3d; }
.dsr2-panel-body { display: flex; flex-direction: column; gap: 17px; margin-top: 16px; }

.dsr2-field { display: block; }
.dsr2-label { font-size: 10.5px; font-weight: 600; letter-spacing: .1em; color: #6f8299; margin-bottom: 7px; display: block; }
.dsr2-input, .dsr2-select, .dsr2-textarea {
  width: 100%; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 10px;
  color: #fff; outline: none; font-family: Poppins, var(--font-ui);
}
.dsr2-input, .dsr2-select { height: 46px; padding: 0 14px; font: 500 15px Poppins, var(--font-ui); }
.dsr2-select { padding: 0 11px; cursor: pointer; }
.dsr2-select option { background: #0d131c; color: #fff; }
.dsr2-textarea { padding: 12px 14px; font: 400 14.5px/1.65 Poppins, var(--font-ui); resize: vertical; }
.dsr2-textarea--synopsis { height: 126px; }
.dsr2-textarea--bio { height: 102px; }
.dsr2-input:focus, .dsr2-select:focus, .dsr2-textarea:focus { border-color: #f2731c; }
.dsr2-field-error { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: #e07a7a; }
.dsr2-field-error[hidden] { display: none; }
.dsr2-input.input-validation-error, .dsr2-textarea.input-validation-error { border-color: #d67878; }
.dsr2-field-row { display: flex; gap: 12px; }
.dsr2-field-row > .dsr2-field { flex: 1; }

.dsr2-save-btn { display: flex; align-items: center; gap: 9px; height: 50px; padding: 0 24px; background: linear-gradient(180deg,#ff8534,#ec6410); border: none; border-radius: 11px; cursor: pointer; color: #fff; font-size: 15px; font-weight: 600; }
.dsr2-save-btn:disabled { opacity: .75; cursor: default; }
.dsr2-cancel-btn { display: inline-flex; align-items: center; justify-content: center; height: 50px; padding: 0 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 11px; cursor: pointer; color: #fff; font-size: 15px; font-weight: 500; }
.dsr2-cancel-btn:hover { background: rgba(255,255,255,.09); color: #fff; }

.dsr2-spinner {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3); border-top-color: #fff;
  animation: dsr-spin .7s linear infinite;
}
.dsr2-spinner[hidden] { display: none; }
