/* ==========================================================================
   GrFlix — interface do cliente
   ========================================================================== */

:root {
  --bg: #07070a;
  --bg-soft: #0b0b10;
  --panel: #111117;
  --panel-2: #17171f;
  --panel-3: #1e1e28;
  --text: #f6f6f8;
  --muted: #a7a7b2;
  --dim: #6f6f7c;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #ff5a3c;
  --accent-2: #ff8a3d;
  --accent-3: #ff4757;
  --accent-soft: rgba(255, 90, 60, 0.16);
  --gold: #ffc857;
  --green: #49d38a;
  --danger: #ff5b6e;
  --brand-gradient: linear-gradient(104deg, #ff4757 0%, #ff5a3c 45%, #ff8a3d 100%);
  --surface-gradient: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.6);
  --shadow-md: 0 18px 46px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --header-h: 72px;
  --page-x: clamp(18px, 4.2vw, 64px);
  --font-sans: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, -apple-system, BlinkMacSystemFont, Roboto, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", Inter, system-ui, sans-serif;
  --font-serif: "Bodoni MT", "Didot", "Playfair Display", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  scrollbar-color: #3a3a46 var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(255, 90, 60, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(80, 40, 160, 0.05), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.player-open,
body.modal-open {
  overflow: hidden;
}

::selection {
  background: rgba(255, 90, 60, 0.35);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img {
  max-width: 100%;
}

h1, h2, h3, h4, p, dl, dd, dt, figure {
  margin: 0;
}

[hidden],
.hidden {
  display: none !important;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  display: inline-block;
  vertical-align: middle;
}

.icon-star {
  color: var(--gold);
  width: 16px;
  height: 16px;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #08080b;
}

::-webkit-scrollbar-thumb {
  background: #2c2c36;
  border-radius: 99px;
  border: 2px solid #08080b;
}

::-webkit-scrollbar-thumb:hover {
  background: #44444f;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Componentes básicos
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--panel-3);
  --btn-fg: var(--text);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.16s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

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

.btn-primary {
  background: var(--brand-gradient);
  color: #190805;
  box-shadow: 0 10px 28px rgba(255, 90, 60, 0.25);
}

.btn-primary:hover {
  box-shadow: 0 14px 36px rgba(255, 90, 60, 0.36);
  filter: brightness(1.04);
}

.btn-light {
  background: #fff;
  color: #0a0a0c;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.3);
}

.btn-light:hover {
  background: #ffe7df;
}

.btn-soft {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.13);
  color: #fff;
  backdrop-filter: blur(12px);
}

.btn-soft:hover {
  background: rgba(255, 255, 255, 0.17);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-block {
  width: 100%;
}

.btn.is-loading {
  pointer-events: none;
}

.btn.is-loading .btn-label {
  opacity: 0.35;
}

.btn.is-loading .btn-spinner {
  display: block;
}

.btn-spinner {
  display: none;
  position: absolute;
}

.btn .btn-spinner.spinner {
  display: none;
}

.btn.is-loading .btn-spinner.spinner {
  display: block;
}

.spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  animation: spin 0.85s linear infinite;
}

.spinner-sm {
  width: 22px;
  height: 22px;
  border-width: 2px;
}

.spinner-xs {
  width: 18px;
  height: 18px;
  border-width: 2px;
  border-top-color: #1a0a05;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.dot-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  display: inline-block;
  flex: none;
}

.grad-text {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.icon-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--line-strong);
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  display: inline-block;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-error {
  margin: 6px 0 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 91, 110, 0.1);
  border: 1px solid rgba(255, 91, 110, 0.28);
  color: #ffb3bd;
  font-size: 13.5px;
  line-height: 1.4;
}

.skeleton {
  border-radius: 10px;
  background: linear-gradient(100deg, rgba(255,255,255,0.045) 20%, rgba(255,255,255,0.09) 38%, rgba(255,255,255,0.045) 56%);
  background-size: 240% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -120% 0; }
}

/* --------------------------------------------------------------------------
   Boot
   -------------------------------------------------------------------------- */

.boot {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background:
    radial-gradient(680px 420px at 50% 46%, rgba(255, 90, 60, 0.14), transparent 65%),
    radial-gradient(800px 500px at 50% 100%, rgba(90, 20, 40, 0.18), transparent 60%),
    #060608;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.boot.is-done {
  opacity: 0;
  visibility: hidden;
}

.boot-mark {
  width: 96px;
  height: 96px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 80px rgba(255, 90, 60, 0.24), inset 0 0 30px rgba(255, 255, 255, 0.03);
  animation: boot-pulse 2.6s ease-in-out infinite;
}

.boot-mark img {
  width: 72px;
  height: 72px;
  border-radius: 20px;
}

.boot-word {
  margin-top: 4px;
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 850;
  letter-spacing: 0.22em;
  padding-left: 0.22em;
  background: linear-gradient(100deg, #fff 10%, #ffb09f 45%, #ff8a3d 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.boot-text {
  color: var(--dim);
  font-size: 13px;
  letter-spacing: 0.08em;
}

@keyframes boot-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 70px rgba(255, 90, 60, 0.2), inset 0 0 30px rgba(255,255,255,0.03); }
  50% { transform: scale(1.035); box-shadow: 0 0 110px rgba(255, 90, 60, 0.32), inset 0 0 30px rgba(255,255,255,0.05); }
}

/* --------------------------------------------------------------------------
   Login
   -------------------------------------------------------------------------- */

.login {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(1000px 600px at 18% 20%, rgba(255, 71, 87, 0.1), transparent 60%),
    radial-gradient(900px 700px at 85% 80%, rgba(255, 138, 61, 0.09), transparent 60%),
    linear-gradient(180deg, #08080b, #0a0a0f 60%, #07070a);
}

.login.is-ready .login-card {
  animation: rise-in 0.65s cubic-bezier(0.2, 0.85, 0.3, 1) both;
}

.login-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.login-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.login-glow-a {
  width: 520px;
  height: 520px;
  background: rgba(255, 71, 87, 0.22);
  top: -180px;
  right: 8%;
  animation: drift-a 18s ease-in-out infinite;
}

.login-glow-b {
  width: 460px;
  height: 460px;
  background: rgba(255, 138, 61, 0.13);
  bottom: -160px;
  left: 4%;
  animation: drift-b 22s ease-in-out infinite;
}

.login-lines {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 72%);
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-40px, 40px, 0) scale(1.08); }
}

@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(50px, -30px, 0) scale(1.06); }
}

.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px var(--page-x);
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  line-height: 1;
}

.brand-img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(255, 90, 60, 0.22);
}

.brand-word {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-family: var(--font-display);
}

.brand-gr {
  color: #fff;
}

.brand-flix {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-lg .brand-img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
}

.brand-lg .brand-word {
  font-size: 27px;
}

.login-admin-link {
  font-size: 13px;
  color: var(--muted);
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.login-admin-link:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.login-body {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px var(--page-x) 48px;
  display: grid;
  grid-template-columns: minmax(340px, 470px) 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 110px);
}

.login-card {
  position: relative;
  padding: clamp(26px, 3.4vw, 42px);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(28, 28, 37, 0.85), rgba(14, 14, 19, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(22px);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(255, 90, 60, 0.35), transparent 30%, transparent 70%, rgba(255, 138, 61, 0.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.login-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #ffb39f;
  margin-bottom: 18px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 90, 60, 0.6);
  animation: live-pulse 2s ease-out infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 90, 60, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(255, 90, 60, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 90, 60, 0); }
}

.login-card h1 {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 10px;
}

.login-subtitle {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 28px;
}

.login-subtitle strong {
  color: var(--text);
  font-weight: 650;
}

.login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 20px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.26);
}

.login-tab {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.login-tab:hover {
  color: rgba(255, 255, 255, 0.78);
}

.login-tab.is-active {
  background: linear-gradient(135deg, rgba(255, 71, 87, 0.2), rgba(255, 138, 61, 0.13));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 138, 61, 0.22);
}

.login-input {
  width: 100%;
  height: 52px;
  margin-bottom: 16px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 16px;
  font-weight: 550;
  letter-spacing: 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-input::placeholder {
  color: #4b4b57;
  font-weight: 400;
}

.login-input:focus {
  outline: none;
  border-color: rgba(255, 90, 60, 0.65);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 0 4px rgba(255, 90, 60, 0.12);
}

.login-input-password {
  padding-right: 56px;
  font-size: 20px;
  letter-spacing: 0.16em;
}

#login-account-fields .field-label + .pin-row .login-input {
  margin-bottom: 0;
}

#login-account-fields .field-label:not(:first-child) {
  margin-top: 2px;
}

.pin-row {
  position: relative;
}

.pin-input {
  width: 100%;
  height: 58px;
  padding: 0 56px 0 20px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.42em;
  font-variant-numeric: tabular-nums;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pin-input::placeholder {
  color: #4b4b57;
  letter-spacing: 0.3em;
}

.pin-input:focus {
  outline: none;
  border-color: rgba(255, 90, 60, 0.65);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 0 4px rgba(255, 90, 60, 0.12);
}

.pin-reveal {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
}

#login-form .btn-primary {
  margin-top: 18px;
  min-height: 54px;
  font-size: 15.5px;
}

.login-hint {
  margin-top: 18px;
  color: var(--dim);
  font-size: 12.5px;
  line-height: 1.55;
}

.login-hint strong {
  color: var(--muted);
  font-weight: 650;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 16px;
  color: var(--dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.login-divider::before,
.login-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.login-status {
  margin-top: 14px;
  min-height: 0;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}

.login-status.is-visible {
  min-height: 18px;
}

.login-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 22px var(--page-x) 30px;
  color: var(--dim);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.login-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 34px;
  padding: 20px 0;
}

.film-strip {
  display: flex;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  transform: rotate(-2.4deg);
  box-shadow: var(--shadow-md);
}

.film-frame {
  width: 96px;
  height: 132px;
  border-radius: 10px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02) 45%),
    radial-gradient(120px 90px at 70% 20%, rgba(255, 138, 61, 0.22), transparent 70%),
    #15151b;
  border: 1px solid rgba(255, 255, 255, 0.09);
  position: relative;
  overflow: hidden;
}

.film-frame:nth-child(2) {
  transform: translateY(16px);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02) 45%),
    radial-gradient(120px 90px at 30% 30%, rgba(94, 85, 255, 0.22), transparent 70%),
    #14141a;
}

.film-frame:nth-child(3) {
  transform: translateY(-6px);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02) 45%),
    radial-gradient(120px 90px at 65% 66%, rgba(255, 71, 87, 0.2), transparent 70%),
    #14141a;
}

.film-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 6px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
}

.login-quote {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #f0e9e5;
  max-width: 460px;
  text-wrap: balance;
}

.login-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.03em;
}

.login-badges .icon {
  width: 15px;
  height: 15px;
  color: #ff9b82;
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: var(--header-h);
  transition: background 0.28s ease, border-color 0.28s ease, backdrop-filter 0.28s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(7, 7, 10, 0.82);
  border-bottom-color: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(20px) saturate(140%);
}

.header-inner {
  height: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 0 var(--page-x);
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 40px);
}

.brand {
  flex: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  position: relative;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 550;
  padding: 10px 14px;
  border-radius: 999px;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.is-active {
  color: #fff;
  font-weight: 650;
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 16px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand-gradient);
  transform: translateX(-50%);
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  width: clamp(200px, 24vw, 330px);
  height: 42px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: width 0.25s ease, border-color 0.2s ease, background 0.2s ease;
}

.search-box:focus-within {
  border-color: rgba(255, 90, 60, 0.45);
  background: rgba(0, 0, 0, 0.42);
  box-shadow: 0 0 0 4px rgba(255, 90, 60, 0.08);
}

.search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--dim);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 100%;
  padding: 0 38px 0 42px;
  border: none;
  background: transparent;
  font-size: 13.5px;
  color: #fff;
}

.search-box input::placeholder {
  color: #74747f;
}

.search-box input:focus {
  outline: none;
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.search-clear .icon {
  width: 14px;
  height: 14px;
}

.mobile-only {
  display: none;
}

.user-menu-wrap {
  position: relative;
}

.avatar-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--brand-gradient);
  color: #1a0703;
  font-weight: 800;
  font-size: 17px;
  display: grid;
  place-items: center;
  isolation: isolate;
  box-shadow: 0 8px 22px rgba(255, 90, 60, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.avatar-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 90, 60, 0.3);
}

.avatar-glow {
  position: absolute;
  inset: -8px;
  border-radius: 18px;
  background: radial-gradient(circle, rgba(255, 90, 60, 0.25), transparent 65%);
  z-index: -1;
}

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 252px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(19, 19, 25, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(22px);
  animation: dropdown-in 0.16s ease both;
}

@keyframes dropdown-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-head {
  padding: 12px 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.dropdown-eyebrow {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--dim);
}

.dropdown-head strong {
  font-size: 15px;
  font-weight: 700;
}

.dropdown-sub {
  font-size: 11.5px;
  color: var(--dim);
}

.dropdown-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 5px;
  padding: 4px 8px;
  border-radius: 7px;
  background: rgba(255, 138, 61, 0.09);
  border: 1px solid rgba(255, 138, 61, 0.18);
  color: #ffc9a3;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.dropdown-user:empty {
  display: none;
}

.dropdown-sep {
  height: 1px;
  margin: 5px 8px;
  background: var(--line);
}

.dropdown-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.dropdown-item .icon {
  width: 17px;
  height: 17px;
  color: var(--dim);
}

.dropdown-item:hover .icon {
  color: var(--accent);
}

.dropdown-foot {
  display: flex;
  justify-content: space-between;
  padding: 12px 12px 6px;
  border-top: 1px solid var(--line);
  margin-top: 5px;
  color: var(--dim);
  font-size: 10.5px;
}

.dropdown-foot a {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Conteúdo principal / Hero
   -------------------------------------------------------------------------- */

#main-content {
  min-height: 70vh;
}

.hero {
  position: relative;
  min-height: min(88vh, 800px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 60px) var(--page-x) clamp(56px, 8vh, 96px);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: var(--hero-image, none);
  background-size: cover;
  background-position: center 22%;
  transform: scale(1.015);
  animation: hero-drift 24s ease-in-out infinite alternate;
}

.hero.has-image .hero-media {
  filter: saturate(1.03);
}

.hero:not(.has-image) .hero-media {
  background:
    radial-gradient(60% 70% at 72% 32%, rgba(255, 90, 60, 0.2), transparent 65%),
    radial-gradient(50% 60% at 20% 75%, rgba(92, 42, 150, 0.18), transparent 65%),
    linear-gradient(130deg, #161118, #0a0a0e 55%, #120c0c);
}

@keyframes hero-drift {
  from { transform: scale(1.015) translate3d(0, 0, 0); }
  to { transform: scale(1.055) translate3d(0, -10px, 0); }
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 7, 10, 0.97) 0%, rgba(7, 7, 10, 0.78) 34%, rgba(7, 7, 10, 0.2) 65%, rgba(7, 7, 10, 0.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(7, 7, 10, 0.65) 18%, transparent 46%),
    linear-gradient(180deg, rgba(7, 7, 10, 0.75) 0%, transparent 22%);
}

.hero-content {
  position: relative;
  width: min(760px, 65%);
  z-index: 2;
  animation: hero-content-in 0.7s cubic-bezier(0.2, 0.85, 0.3, 1) both;
}

@keyframes hero-content-in {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffb6a3;
  margin-bottom: 16px;
}

.hero-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 90, 60, 0.14);
  border: 1px solid rgba(255, 90, 60, 0.26);
}

.hero-mark .icon {
  width: 15px;
  height: 15px;
  color: var(--accent);
}

.hero-title {
  font-size: clamp(44px, 6.4vw, 94px);
  line-height: 0.98;
  font-weight: 850;
  letter-spacing: -0.045em;
  text-wrap: balance;
  text-shadow: 0 12px 60px rgba(0, 0, 0, 0.45);
  margin-bottom: 20px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: #d9d9df;
  font-size: 13.5px;
  font-weight: 550;
  margin-bottom: 14px;
}

.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffe2a6;
}

.hero-tag {
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 16px;
}

.hero-genres span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d7d7de;
  font-size: 11.5px;
}

.hero-overview {
  max-width: 620px;
  color: #b9b9c3;
  font-size: clamp(13.5px, 1.05vw, 15.5px);
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 26px;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions .btn {
  min-height: 50px;
  padding: 0 27px;
  font-size: 15px;
}

.hero-progress {
  width: min(320px, 100%);
  height: 3px;
  margin-top: 20px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.hero-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand-gradient);
}

.hero-footnote {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: var(--dim);
  font-size: 11.5px;
}

.hero-side {
  position: absolute;
  right: var(--page-x);
  bottom: clamp(56px, 8vh, 96px);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
  opacity: 0.72;
}

.hero-side-label {
  font-size: 9px;
  letter-spacing: 0.28em;
  color: #9b9ba6;
}

.hero-side-number {
  font-size: clamp(56px, 7vw, 104px);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.9);
}

.hero-side-caption {
  font-size: 10px;
  line-height: 1.5;
  color: #8b8b96;
}

.hero-skeleton {
  width: min(640px, 90%);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skeleton-eyebrow { width: 170px; height: 14px; }
.skeleton-title { width: min(560px, 86%); height: clamp(60px, 8vw, 104px); border-radius: 18px; }
.skeleton-line { width: min(560px, 78%); height: 15px; }
.skeleton-line.short { width: min(420px, 58%); }
.skeleton-button { width: 190px; height: 50px; border-radius: 999px; margin-top: 8px; }
.skeleton-heading { width: 260px; height: 26px; }
.skeleton-card { flex: 0 0 176px; aspect-ratio: 2 / 3; border-radius: 14px; }

/* --------------------------------------------------------------------------
   Fileiras
   -------------------------------------------------------------------------- */

.rows {
  position: relative;
  z-index: 2;
  padding: 0 0 60px;
  margin-top: -6px;
}

.row {
  margin-bottom: clamp(30px, 3.4vw, 48px);
}

.row-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 0 var(--page-x);
  margin-bottom: 14px;
}

.row-head h2 {
  font-size: clamp(19px, 1.8vw, 25px);
  line-height: 1.2;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.row-subtitle {
  margin-top: 3px;
  color: var(--dim);
  font-size: 12.5px;
}

.row-badge {
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-bottom: 3px;
}

.row-viewport {
  position: relative;
}

.row-track {
  display: flex;
  gap: clamp(10px, 0.9vw, 16px);
  padding: 4px var(--page-x) 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}

.row-track::-webkit-scrollbar {
  display: none;
}

.row-track .movie-card {
  flex: 0 0 clamp(142px, 11.4vw, 192px);
  scroll-snap-align: start;
}

.row-arrow {
  position: absolute;
  top: 4px;
  bottom: 20px;
  z-index: 8;
  width: 56px;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.row-arrow-left {
  left: 0;
  background: linear-gradient(90deg, rgba(7, 7, 10, 0.9), rgba(7, 7, 10, 0));
  padding-right: 14px;
}

.row-arrow-right {
  right: 0;
  background: linear-gradient(270deg, rgba(7, 7, 10, 0.9), rgba(7, 7, 10, 0));
  padding-left: 14px;
}

.row-arrow .icon {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
  transform: scale(1);
  transition: transform 0.16s ease;
}

.row-viewport:hover .row-arrow:not(:disabled) {
  opacity: 1;
  pointer-events: auto;
}

.row-arrow:hover .icon {
  transform: scale(1.18);
}

.row-arrow:disabled {
  opacity: 0 !important;
}

/* --------------------------------------------------------------------------
   Cartões de filme
   -------------------------------------------------------------------------- */

.movie-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  color: var(--text);
  border-radius: 14px;
  outline-offset: 4px;
}

.movie-card-art {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: 13px;
  overflow: hidden;
  background: #131319;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.32);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover .movie-card-art,
.movie-card:focus-visible .movie-card-art {
  transform: translateY(-5px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 90, 60, 0.18);
}

.poster-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 13% 11%;
  background:
    radial-gradient(120% 90% at 80% 0%, color-mix(in srgb, var(--g2) 55%, transparent), transparent 65%),
    linear-gradient(155deg, var(--g2) 0%, var(--g1) 45%, var(--g3) 100%);
}

.poster-fallback::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.22;
  pointer-events: none;
}

.poster-fallback-brand {
  font-size: 7.5px;
  letter-spacing: 0.3em;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.55);
  z-index: 1;
}

.poster-fallback-title {
  font-family: var(--font-serif);
  font-size: clamp(16px, 1.55vw, 23px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: #fff;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  z-index: 1;
  text-wrap: balance;
}

.poster-fallback-year {
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.6);
  z-index: 1;
}

.poster-fallback-line {
  position: absolute;
  left: 11%;
  bottom: 11%;
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.4);
}

.poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.25s ease;
}

.movie-card:hover .poster-img {
  transform: scale(1.045);
}

.poster-img.is-broken {
  display: none;
}

.card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(7, 7, 10, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  color: #eee;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.card-badge.is-watched {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 50%;
  background: rgba(73, 211, 138, 0.9);
  border-color: transparent;
  color: #05130b;
}

.card-badge.is-watched .icon {
  width: 13px;
  height: 13px;
}

.card-badge.is-offline {
  background: rgba(255, 91, 110, 0.85);
  border-color: transparent;
  color: #1b0407;
}

.card-hover {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 3px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 25%, rgba(0, 0, 0, 0.78) 100%);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.movie-card:hover .card-hover,
.movie-card:focus-visible .card-hover {
  opacity: 1;
}

.card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -58%) scale(0.86);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #0a0a0c;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.movie-card:hover .card-play {
  transform: translate(-50%, -58%) scale(1);
}

.card-play .icon {
  width: 21px;
  height: 21px;
  margin-left: 2px;
}

.card-hover-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-hover-meta {
  font-size: 10.5px;
  color: #c5c5ce;
}

.card-resume {
  margin-top: 3px;
  font-size: 9.5px;
  color: #ffb5a3;
  letter-spacing: 0.02em;
}

.card-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  z-index: 3;
  background: rgba(255, 255, 255, 0.22);
}

.card-progress span {
  display: block;
  height: 100%;
  background: var(--brand-gradient);
}

.movie-card-caption {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 9px 2px 0;
  min-width: 0;
}

.movie-card-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #e7e7ec;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card-meta {
  font-size: 10.5px;
  color: var(--dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.movie-card.is-offline .movie-card-art {
  filter: grayscale(0.75) brightness(0.7);
}

.row-skeleton .movie-card {
  flex: 0 0 clamp(142px, 11.4vw, 192px);
}

/* --------------------------------------------------------------------------
   Navegação / grade
   -------------------------------------------------------------------------- */

.browse {
  padding: calc(var(--header-h) + clamp(30px, 4vw, 55px)) var(--page-x) 80px;
  max-width: 1780px;
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.section-eyebrow {
  color: #ff9c84;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.section-count {
  color: var(--dim);
  font-size: 12.5px;
  padding-bottom: 4px;
  white-space: nowrap;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 550;
  transition: all 0.16s ease;
}

.chip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.chip.is-active {
  background: #fff;
  border-color: #fff;
  color: #0a0a0c;
  font-weight: 650;
}

.chip-count {
  font-size: 10px;
  opacity: 0.55;
  font-variant-numeric: tabular-nums;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: clamp(16px, 1.9vw, 30px) clamp(10px, 1.2vw, 18px);
}

.movie-grid .movie-card .movie-card-art {
  border-radius: 12px;
}

.movie-grid .card-hover-title {
  font-size: 13.5px;
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 520px;
  margin: clamp(20px, 5vw, 70px) auto 0;
  padding: 40px 20px 20px;
}

.empty-icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  color: var(--accent);
}

.empty-icon .icon {
  width: 36px;
  height: 36px;
}

.empty-state h3 {
  font-size: 25px;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin-bottom: 9px;
}

.empty-state p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 22px;
  text-wrap: pretty;
}

.empty-state .btn {
  margin: 0 4px 10px;
}

.empty-hint {
  color: var(--dim) !important;
  font-size: 11.5px !important;
  margin-top: 14px !important;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.015));
}

.footer-inner {
  max-width: 1680px;
  margin: 0 auto;
  padding: 34px var(--page-x);
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--dim);
  font-size: 11.5px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #bfbfc8;
  font-weight: 800;
  letter-spacing: 0.16em;
  font-size: 11px;
}

.footer-brand img {
  border-radius: 7px;
  opacity: 0.9;
}

.footer-inner p {
  color: #797984;
}

.footer-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5f5f6b;
}

/* --------------------------------------------------------------------------
   Modal de detalhes
   -------------------------------------------------------------------------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(12px, 3vw, 46px);
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 4, 0.76);
  backdrop-filter: blur(10px);
  animation: fade-in 0.22s ease both;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.detail-panel {
  position: relative;
  width: min(1160px, 100%);
  max-height: calc(100vh - clamp(24px, 6vw, 92px));
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: clamp(16px, 2vw, 26px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: #0d0d12;
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.32s cubic-bezier(0.2, 0.85, 0.3, 1) both;
  scrollbar-width: thin;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(20px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(10, 10, 14, 0.72);
  border-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(10px);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.detail-loading {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 50px 30px;
  color: var(--muted);
  font-size: 14px;
}

.detail-loading-hint {
  color: var(--dim);
  font-size: 11.5px;
  text-align: center;
  max-width: 360px;
}

.detail-error {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 50px 30px;
  text-align: center;
}

.detail-error h2 {
  font-size: 24px;
  font-weight: 750;
}

.detail-error p {
  color: var(--muted);
  max-width: 450px;
}

.detail-error .message-icon,
.player-message .message-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(255, 91, 110, 0.12);
  border: 1px solid rgba(255, 91, 110, 0.25);
  color: #ff8394;
  margin-bottom: 4px;
}

.message-icon .icon {
  width: 28px;
  height: 28px;
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  background: #0d0d12;
  isolation: isolate;
}

.detail-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--detail-image, none);
  background-size: cover;
  background-position: center 25%;
  opacity: 0.55;
  filter: blur(1px) saturate(0.95);
}

.detail-hero:not(.has-image) .detail-hero-bg {
  background:
    radial-gradient(60% 80% at 75% 10%, rgba(255, 90, 60, 0.18), transparent 65%),
    linear-gradient(140deg, #17121a, #0a0a0e 65%);
}

.detail-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 10, 14, 0.98) 0%, rgba(10, 10, 14, 0.88) 38%, rgba(10, 10, 14, 0.4) 75%, rgba(10, 10, 14, 0.7) 100%),
    linear-gradient(0deg, #0d0d12 0%, rgba(13, 13, 18, 0.4) 32%, transparent 68%),
    linear-gradient(180deg, rgba(10, 10, 14, 0.9), transparent 25%);
}

.detail-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(190px, 0.72fr);
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(30px, 4.5vw, 64px);
  padding-right: clamp(30px, 5.5vw, 76px);
}

.detail-main {
  min-width: 0;
  animation: rise-in 0.4s ease both;
}

.detail-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffab95;
  margin-bottom: 14px;
}

.detail-eyebrow .icon {
  width: 15px;
  height: 15px;
}

.detail-main h1 {
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-wrap: balance;
  margin-bottom: 10px;
}

.detail-original {
  color: var(--dim);
  font-size: 13px;
  font-style: italic;
  margin-bottom: 14px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: #d3d3da;
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 14px;
}

.detail-rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #ffe0a1;
}

.detail-tag {
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.detail-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}

.detail-genres span {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #c4c4cd;
  font-size: 11px;
}

.detail-overview {
  max-width: 680px;
  color: #b7b7c1;
  font-size: 14px;
  line-height: 1.68;
  margin-bottom: 22px;
  text-wrap: pretty;
}

.detail-resume {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
  color: #d7d7df;
  font-size: 11.5px;
}

.detail-resume-bar {
  width: min(340px, 100%);
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.detail-resume-bar span {
  display: block;
  height: 100%;
  background: var(--brand-gradient);
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.detail-warning {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 91, 110, 0.1);
  border: 1px solid rgba(255, 91, 110, 0.25);
  color: #ffb0ba;
  font-size: 12.5px;
}

.detail-warning .icon {
  width: 16px;
  height: 16px;
}

.detail-tech {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px 18px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 16px;
}

.detail-tech div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.detail-tech dt {
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}

.detail-tech dd {
  color: #d3d3db;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-file {
  display: flex;
  gap: 8px;
  color: #777783;
  font-size: 10.5px;
  overflow-wrap: anywhere;
}

.detail-file span {
  color: #5e5e6a;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  flex: none;
  font-size: 9px;
  padding-top: 1px;
}

.detail-poster {
  position: relative;
  align-self: start;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5);
  transform: rotate(1.2deg);
}

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

.detail-poster .poster-fallback {
  position: absolute;
}

.detail-poster-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 5px;
  background: rgba(255, 91, 110, 0.9);
  color: #1a0307;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

/* --------------------------------------------------------------------------
   Toast global
   -------------------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 500;
  transform: translateX(-50%);
  max-width: min(92vw, 460px);
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(24, 24, 31, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow-md);
  color: #f2f2f4;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  backdrop-filter: blur(16px);
  animation: toast-in 0.24s ease both;
}

.toast.is-success {
  border-color: rgba(73, 211, 138, 0.38);
  background: rgba(18, 39, 28, 0.96);
  color: #bdf5d8;
}

.toast.is-error {
  border-color: rgba(255, 91, 110, 0.4);
  background: rgba(46, 18, 23, 0.96);
  color: #ffc2ca;
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* --------------------------------------------------------------------------
   Player
   -------------------------------------------------------------------------- */

.player {
  position: fixed;
  inset: 0;
  z-index: 220;
  background: #000;
  overflow: hidden;
  user-select: none;
  transition: opacity 0.2s ease;
}

.player.is-idle {
  cursor: none;
}

.player video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  outline: none;
}

.player-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.35) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 18%, transparent 78%, rgba(0, 0, 0, 0.42));
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.player.is-idle .player-vignette {
  opacity: 0.4;
}

.player-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: clamp(14px, 2.2vw, 28px) clamp(16px, 3vw, 40px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.32) 60%, transparent 100%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.player.is-idle .player-top {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
}

.player-back {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(12, 12, 16, 0.5);
  color: #fff;
  backdrop-filter: blur(10px);
  transition: background 0.16s ease, transform 0.16s ease;
}

.player-back:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(-2px);
}

.player-back .icon {
  width: 22px;
  height: 22px;
}

.player-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  padding-top: 2px;
}

.player-eyebrow {
  color: rgba(255, 255, 255, 0.5);
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.player-title-wrap h2 {
  color: #fff;
  font-size: clamp(17px, 2vw, 23px);
  font-weight: 700;
  letter-spacing: -0.015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(58vw, 760px);
}

.player-mode {
  margin-left: auto;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.75);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  white-space: nowrap;
}

.player-mode:empty {
  display: none;
}

.player-loading {
  position: absolute;
  inset: 0;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 30px;
  pointer-events: none;
  background: radial-gradient(60% 60% at 50% 50%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.15) 75%);
}

.player-loading .spinner {
  width: 52px;
  height: 52px;
  border-width: 3px;
}

.player-loading p {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.player-loading-hint {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 11.5px;
  line-height: 1.5;
}

.big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  width: clamp(72px, 8vw, 96px);
  height: clamp(72px, 8vw, 96px);
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #09090b;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), 0 0 0 12px rgba(255, 255, 255, 0.07);
  transition: transform 0.18s ease, background 0.18s ease;
}

.big-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: #fff;
}

.big-play .icon {
  width: 34%;
  height: 34%;
  margin-left: 4%;
}

.player-message {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 12;
  width: min(440px, calc(100vw - 36px));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(16, 16, 22, 0.93);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(22px);
  animation: modal-in 0.28s ease both;
}

.player-message h3 {
  font-size: clamp(21px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.player-message p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.player-message .section-eyebrow {
  margin-bottom: 0;
}

.player-end-sub {
  max-width: 330px;
  text-wrap: pretty;
}

.player-message .message-actions {
  margin-top: 16px;
}

.player-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 11;
  padding: 60px clamp(14px, 3vw, 36px) clamp(14px, 2vw, 26px);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.55) 42%, transparent 100%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.player.is-idle .player-controls {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.seek-wrap {
  position: relative;
  width: 100%;
  height: 22px;
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  cursor: pointer;
}

.seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 18px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--accent) 0%, var(--accent-2) var(--seek-fill, 0%), rgba(255, 255, 255, 0.24) var(--seek-fill, 0%), rgba(255, 255, 255, 0.24) 100%);
  box-shadow: 0 0 12px rgba(255, 90, 60, 0.25);
  transition: height 0.15s ease;
}

.seek::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.24);
}

.seek::-moz-range-progress {
  height: 4px;
  border-radius: 99px;
  background: var(--accent);
}

.seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -4.5px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  transform: scale(0);
  transition: transform 0.14s ease;
}

.seek::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: none;
  border-radius: 50%;
  background: #fff;
  transform: scale(0);
}

.seek-wrap:hover .seek::-webkit-slider-thumb,
.seek:focus-visible::-webkit-slider-thumb {
  transform: scale(1);
}

.seek-wrap:hover .seek::-moz-range-thumb,
.seek:focus-visible::-moz-range-thumb {
  transform: scale(1);
}

.seek-wrap:hover .seek::-webkit-slider-runnable-track {
  height: 6px;
}

.seek-wrap:hover .seek::-webkit-slider-thumb {
  margin-top: -3.5px;
}

.seek-tooltip {
  position: absolute;
  bottom: 21px;
  transform: translateX(-50%);
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(16, 16, 22, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.controls-left,
.controls-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.controls-right {
  gap: 7px;
}

.control-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  opacity: 0.9;
  transition: background 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
}

.control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

.control-btn:active {
  transform: scale(0.94);
}

.control-btn .icon {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4));
}

.control-btn.is-muted .icon {
  color: #ff9a83;
}

#player-play {
  width: 44px;
  height: 44px;
}

#player-play .icon {
  width: 24px;
  height: 24px;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 4px;
}

.volume {
  -webkit-appearance: none;
  appearance: none;
  width: 78px;
  height: 16px;
  background: transparent;
  cursor: pointer;
}

.volume::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(to right, #fff 0%, #fff var(--vol-fill, 100%), rgba(255, 255, 255, 0.24) var(--vol-fill, 100%), rgba(255, 255, 255, 0.24) 100%);
}

.volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  margin-top: -3.5px;
  border-radius: 50%;
  border: none;
  background: #fff;
}

.volume::-moz-range-track {
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.24);
}

.volume::-moz-range-progress {
  height: 3px;
  border-radius: 99px;
  background: #fff;
}

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

.time-display {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 10px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.time-sep {
  opacity: 0.35;
}

#time-total {
  color: rgba(255, 255, 255, 0.48);
}

.quality-chip {
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.quality-chip:empty {
  display: none;
}

.quality-btn {
  cursor: pointer;
  background: rgba(0, 0, 0, 0.24);
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.quality-btn:hover,
.quality-btn[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.quality-btn .quality-auto {
  color: rgba(255, 255, 255, 0.42);
  font-weight: 600;
}

.quality-menu-note {
  padding: 9px 12px 7px;
  color: var(--dim);
  font-size: 10px;
  line-height: 1.4;
  border-bottom: 1px solid var(--line);
}

.popover-wrap {
  position: relative;
}

.player-popover {
  position: absolute;
  right: 0;
  bottom: 54px;
  z-index: 15;
  width: min(300px, calc(100vw - 28px));
  max-height: min(340px, 52vh);
  overflow-y: auto;
  padding: 7px;
  border-radius: 14px;
  background: rgba(18, 18, 24, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(22px);
  animation: dropdown-in 0.16s ease both;
  scrollbar-width: thin;
}

.player-popover-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  text-align: left;
  transition: background 0.14s ease, color 0.14s ease;
}

.player-popover-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.player-popover-item.is-active {
  background: rgba(255, 90, 60, 0.1);
  color: #fff;
}

.sub-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.sub-label {
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sub-meta {
  color: var(--dim);
  font-size: 10px;
}

.player-popover-item.is-active .sub-meta {
  color: #ffab95;
}

.sub-check {
  color: var(--accent);
  width: 17px;
  flex: none;
  display: grid;
  place-items: center;
}

.sub-check .icon {
  width: 16px;
  height: 16px;
}

.player-popover-empty {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 14px;
}

.player-popover-empty strong {
  font-size: 12.5px;
  color: #e8e8ee;
}

.player-popover-empty span {
  color: var(--dim);
  font-size: 11px;
  line-height: 1.45;
}

.player-toast {
  position: absolute;
  top: clamp(76px, 10vh, 100px);
  left: 50%;
  z-index: 14;
  transform: translate(-50%, -8px);
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(14, 14, 19, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.01em;
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.22s ease, transform 0.22s ease;
  pointer-events: none;
  max-width: 86vw;
  text-align: center;
}

.player-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.player video::cue {
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 92%;
  line-height: 1.42;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.player:fullscreen,
.player:-webkit-full-screen {
  background: #000;
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero-side {
    display: none;
  }

  .hero-content {
    width: min(680px, 76%);
  }

  .detail-inner {
    grid-template-columns: minmax(0, 1.8fr) minmax(180px, 0.62fr);
  }
}

@media (max-width: 980px) {
  :root {
    --header-h: 66px;
  }

  .login-body {
    grid-template-columns: minmax(300px, 460px);
    justify-content: center;
    padding-top: 10px;
  }

  .login-aside {
    display: none;
  }

  .hero {
    min-height: min(80vh, 700px);
    padding-top: calc(var(--header-h) + 40px);
  }

  .hero-content {
    width: min(680px, 88%);
  }

  .detail-inner {
    grid-template-columns: 1fr;
    padding-right: clamp(30px, 4.5vw, 64px);
  }

  .detail-poster {
    display: none;
  }

  .detail-hero {
    min-height: 440px;
  }
}

@media (max-width: 820px) {
  .header-inner {
    gap: 14px;
  }

  .main-nav {
    gap: 0;
  }

  .nav-link {
    padding: 9px 10px;
    font-size: 13px;
  }

  .brand-word {
    font-size: 19px;
  }

  .brand-img {
    width: 31px;
    height: 31px;
  }

  .search-box {
    width: 220px;
  }

  .hero-content {
    width: 100%;
  }

  .hero-overview {
    -webkit-line-clamp: 3;
  }

  .row-track .movie-card {
    flex-basis: clamp(132px, 22vw, 168px);
  }

  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
  }

  .footer-meta {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .mobile-only {
    display: inline-grid;
  }

  .search-box {
    position: absolute;
    top: calc(var(--header-h) - 4px);
    left: var(--page-x);
    right: var(--page-x);
    width: auto;
    height: 46px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    background: rgba(17, 17, 23, 0.97);
    box-shadow: var(--shadow-md);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .site-header.search-open .search-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .header-actions {
    gap: 4px;
  }

  .main-nav {
    margin-left: 0;
  }

  .nav-link {
    font-size: 12.5px;
    padding: 8px 8px;
  }

  .nav-link.is-active::after {
    width: 12px;
  }

  .hero {
    min-height: 74vh;
    align-items: flex-end;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(7, 7, 10, 0.95) 0%, rgba(7, 7, 10, 0.55) 60%, rgba(7, 7, 10, 0.4) 100%),
      linear-gradient(0deg, var(--bg) 0%, rgba(7, 7, 10, 0.6) 22%, transparent 55%),
      linear-gradient(180deg, rgba(7, 7, 10, 0.65) 0%, transparent 22%);
  }

  .hero-title {
    font-size: clamp(38px, 9vw, 64px);
  }

  .hero-actions .btn {
    min-height: 46px;
    padding: 0 20px;
    font-size: 14px;
  }

  .hero-footnote {
    flex-wrap: wrap;
  }

  .row-head {
    align-items: flex-start;
  }

  .browse {
    padding-top: calc(var(--header-h) + 28px);
  }

  .section-head h2 {
    font-size: 27px;
  }

  .detail-hero {
    min-height: 0;
  }

  .detail-main h1 {
    font-size: clamp(30px, 7vw, 44px);
  }

  .modal {
    padding: 10px;
  }

  .detail-panel {
    max-height: calc(100vh - 20px);
  }

  .detail-inner {
    padding: 26px 22px 32px;
  }

  .modal-close {
    top: 10px;
    right: 10px;
  }

  .player-top {
    gap: 10px;
    padding: 12px 14px;
  }

  .player-back {
    width: 38px;
    height: 38px;
  }

  .player-title-wrap h2 {
    font-size: 16px;
    max-width: 52vw;
  }

  .player-eyebrow {
    display: none;
  }

  .player-mode {
    font-size: 8.5px;
    padding: 4px 8px;
  }

  .player-controls {
    padding: 48px 12px max(12px, env(safe-area-inset-bottom));
  }

  .controls-left,
  .controls-right {
    gap: 1px;
  }

  .control-btn {
    width: 38px;
    height: 38px;
  }

  .control-btn .icon {
    width: 20px;
    height: 20px;
  }

  .volume {
    width: 62px;
  }

  .time-display {
    font-size: 10.5px;
    margin-left: 6px;
  }

  .quality-chip {
    display: none;
  }

  .player-message {
    width: min(420px, calc(100vw - 28px));
    padding: 26px 20px;
  }
}

@media (max-width: 620px) {
  .brand-word {
    display: none;
  }

  .brand-lg .brand-word {
    display: inline;
  }

  .main-nav {
    margin-left: 2px;
  }

  .nav-link {
    padding: 8px 7px;
    font-size: 12px;
  }

  .avatar-btn {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .hero {
    min-height: 72vh;
    padding-bottom: 44px;
  }

  .hero-meta {
    gap: 8px;
    font-size: 12.5px;
  }

  .hero-overview {
    font-size: 13px;
    margin-bottom: 20px;
  }

  .hero-actions {
    gap: 8px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 16px;
  }

  .hero-progress {
    margin-top: 16px;
  }

  .hero-footnote {
    font-size: 10.5px;
  }

  .rows {
    padding-bottom: 44px;
  }

  .row-head {
    margin-bottom: 10px;
  }

  .row-subtitle {
    display: none;
  }

  .row-track {
    padding-bottom: 14px;
  }

  .row-arrow {
    display: none;
  }

  .movie-card-caption {
    padding-top: 7px;
  }

  .movie-card-title {
    font-size: 11.5px;
  }

  .movie-card-meta {
    font-size: 9.5px;
  }

  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(124px, 1fr));
    gap: 18px 10px;
  }

  .section-count {
    display: none;
  }

  .chips {
    gap: 6px;
    margin-bottom: 22px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .chips::-webkit-scrollbar {
    display: none;
  }

  .chip {
    flex: none;
    padding: 7px 12px;
    font-size: 11.5px;
  }

  .empty-state h3 {
    font-size: 22px;
  }

  .detail-meta {
    font-size: 12px;
  }

  .detail-overview {
    font-size: 13px;
  }

  .detail-actions .btn {
    flex: 1 1 100%;
  }

  .detail-tech {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    gap: 12px;
  }

  .footer-inner p {
    width: 100%;
    order: 5;
  }

  .volume {
    display: none;
  }

  .time-display {
    margin-left: 8px;
  }

  .seek-wrap {
    height: 16px;
  }

  .seek {
    height: 14px;
  }
}

@media (max-width: 440px) {
  :root {
    --page-x: 16px;
  }

  .login-header {
    padding-top: 18px;
  }

  .login-card {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .login-card h1 {
    font-size: 29px;
  }

  .pin-input {
    font-size: 23px;
  }

  .login-footer {
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-title {
    font-size: clamp(34px, 10.5vw, 50px);
  }

  .hero-genres {
    display: none;
  }

  .player-back10,
  .player-fwd10 {
    display: none;
  }

  .player-title-wrap h2 {
    max-width: 46vw;
  }

  .time-display {
    font-size: 10px;
  }

  .player-controls .controls-right {
    gap: 0;
  }

  .player-message .message-actions .btn {
    flex: 1 1 100%;
  }
}

@media (hover: none) {
  .row-arrow {
    display: none;
  }

  .card-hover {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .hero-media {
    animation: none;
  }
}
