/* EnomFLix 1.3.48 */
:root {
  color-scheme: dark;
  --bg: #000000;
  --surface: #0a0a0a;
  --surface-2: #141414;
  --surface-3: #1f1f1f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ffffff;
  --muted: #808080;
  --soft: #e5e5e5;
  --red: #e50914;
  --red-2: #f21822;
  --blue: #1476db;
  --green: #34d399;
  --yellow: #fbbf24;
  --danger: #fb7185;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.8);
  --radius: 4px;
}

* {
  box-sizing: border-box;
}

* {
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
}

.login-view {
  background: var(--bg);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.muted,
.legal-note {
  color: var(--muted);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  position: relative;
  overflow: hidden;
  width: min(435px, 100%);
  padding: 24px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 17, 22, 0.94);
  box-shadow: var(--shadow);
}

.login-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  content: "";
  background: linear-gradient(90deg, var(--red), var(--blue));
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-size: 24px;
  font-weight: 900;
  text-decoration: none;
}

.brand span {
  color: var(--red-2);
}

.brand.compact {
  font-size: 20px;
}

.login-card h1 {
  margin: 12px 0 6px;
  font-size: 22px !important;
  line-height: 1.1;
  font-weight: 800;
}

.alert,
.inline-error {
  margin: 18px 0;
  padding: 12px 14px;
  border: 1px solid rgba(251, 113, 133, 0.38);
  border-radius: var(--radius);
  background: rgba(251, 113, 133, 0.12);
  color: #fecdd3;
}

label {
  display: block;
  margin: 16px 0 8px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  padding: 13px 14px;
}

input:focus {
  border-color: rgba(34, 211, 238, 0.72);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.primary-btn,
.ghost-btn,
.link-btn,
.tab,
.category-chip,
.card,
.episode-row,
.close-btn {
  border: 0;
  border-radius: var(--radius);
  color: var(--text);
}

.primary-btn {
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--red), #b91c1c);
  font-weight: 900;
}

.legal-note {
  margin: 18px 0 0;
  font-size: 13px;
}

.app-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(180px, 360px);
  gap: 18px;
  align-items: center;
  padding: 12px 20px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(24px);
}

.sidebar-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
}

.user-menu-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.86), rgba(34, 211, 238, 0.28));
  color: var(--text);
  font-weight: 950;
}

.account-menu {
  position: absolute;
  z-index: 9999;
  top: 56px;
  right: 16px;
  left: auto !important;
  width: 290px;
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(18, 18, 18, 0.96) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: slideDownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.account-menu[hidden] {
  display: none !important;
}

@keyframes slideDownFade {
  from { transform: translateY(-8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.account-nav-links {
  display: flex;
  gap: 8px;
  width: 100%;
}

.account-nav-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.account-nav-btn:hover {
  background: rgba(255, 122, 0, 0.15);
  border-color: #ff7a00;
  color: #ff7a00;
  transform: translateY(-1px);
}

.account-profile-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar-circle {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #ff7a00, #ff0055);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.profile-username {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

.profile-status-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.profile-status-badge.status-active {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}

.profile-status-badge.status-inactive {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.profile-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.detail-cell {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.detail-cell.full-width {
  grid-column: span 2;
}

.cell-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}

.cell-value {
  font-size: 11px;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-menu .logout {
  background: rgba(239, 68, 68, 0.08) !important;
  border: 1px solid rgba(239, 68, 68, 0.12) !important;
  color: #ef4444 !important;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.account-menu .logout:hover {
  background: #ef4444 !important;
  color: #fff !important;
  transform: translateY(1px);
}

.account-menu strong {
  overflow-wrap: anywhere;
}

.account-meta {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
}

.tabs {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
}

.header-search {
  min-width: 0;
}

.header-search input {
  min-height: 42px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.075);
}

.tab {
  width: auto;
  flex: 0 0 auto;
  padding: 12px 14px;
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.tab.active,
.tab:hover {
  background: var(--surface-3);
}

.tab.active {
  box-shadow: inset 0 -3px 0 var(--red);
}

.compact-logout {
  display: block;
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid rgba(251, 113, 133, 0.22);
  border-radius: var(--radius);
  background: rgba(251, 113, 133, 0.08);
  color: #fecdd3;
  text-decoration: none;
}

.content {
  min-width: 0;
  padding: 18px 20px 20px;
}

.eyebrow {
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-shell,
.panel,
.continue-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 17, 22, 0.88);
  box-shadow: 0 12px 42px rgba(0, 0, 0, 0.22);
}

.player-shell {
  overflow: hidden;
  margin-bottom: 18px;
}

.video-frame {
  position: relative;
  background: #000;
  aspect-ratio: 16 / 9;
}

video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
}

.player-state {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 24px;
  background: rgba(0, 0, 0, 0.64);
  text-align: center;
}

.player-state[hidden] {
  display: none;
}

.player-state strong,
.player-state span {
  display: block;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--red-2);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.error-state {
  color: #fecdd3;
}

.player-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
}

.player-copy h2 {
  margin-bottom: 5px;
  font-size: clamp(18px, 2.5vw, 24px);
  line-height: 1.18;
}

.player-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.player-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.mode-switch {
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(58px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.mode-switch button,
.ghost-btn,
.link-btn {
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-weight: 800;
}

.mode-switch button {
  padding: 7px 10px;
}

.mode-switch button.active {
  background: var(--red);
}

.ghost-btn {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.link-btn {
  color: var(--blue);
  background: transparent;
}

.continue-panel {
  margin-bottom: 18px;
  padding: 16px;
}

.browser-grid {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  grid-template-areas: "categories channels";
  gap: 32px;
}

.panel {
  min-height: 320px;
  padding: 12px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: 17px;
}

.content.section-vod .items-panel .section-heading h2,
.content.section-series .items-panel .section-heading h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.content.section-vod .items-panel .section-heading,
.content.section-series .items-panel .section-heading {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.category-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 620px;
}

.category-search-wrap {
  flex-shrink: 0;
}

.category-search-wrap input {
  margin: 0;
  padding: 10px 14px;
  border-radius: 20px;
  width: 100%;
}

.category-chips-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 8px;
}

.hidden-category {
  display: none !important;
}

.category-chips-wrap,
.cards,
.live-rail-items,
.compact-cards {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  /* Sin touch-action forzado: el navegador decide segun la direccion real del
     gesto. Fijar pan-x/pan-y aqui era lo que dejaba la pagina "pegada" en
     movil cuando el dedo empezaba encima de una tarjeta. */
  touch-action: auto;
}

.category-chips-wrap[data-drag-scroll-bound="1"],
.cards[data-drag-scroll-bound="1"],
.live-rail-items[data-drag-scroll-bound="1"],
.compact-cards[data-drag-scroll-bound="1"] {
  /* Only apply grab cursor/no-select on non-touch devices */
}

@media (hover: hover) and (pointer: fine) {
  .category-chips-wrap[data-drag-scroll-bound="1"],
  .cards[data-drag-scroll-bound="1"],
  .live-rail-items[data-drag-scroll-bound="1"],
  .compact-cards[data-drag-scroll-bound="1"] {
    cursor: grab;
    user-select: none;
  }
}

/* La tarjeta nunca debe capturar el gesto de scroll.
   `manipulation` deja pasar el desplazamiento en cualquier direccion y solo
   desactiva el zoom por doble toque (que ademas eliminaba los 300 ms de
   retardo al pulsar). Antes la seccion de TV en vivo usaba `pan-x`, y por eso
   al arrastrar sobre el poster de una pelicula o serie la pagina no se movia:
   parecia que habia una capa invisible encima. */
.card,
.card * {
  touch-action: manipulation;
}

.dragging-scroll {
  cursor: grabbing !important;
  scroll-snap-type: none !important;
}

.category-chip {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.2s ease;
  white-space: normal;
}

.category-chip:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.category-chip.active {
  background: var(--blue, #007aff);
  border-color: var(--blue, #007aff);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  align-content: start;
  align-items: start;
  gap: 12px;
  max-height: 620px;
  overflow: auto;
  padding-right: 3px;
}

.cards.loading,
.category-list.loading {
  display: block;
}

.content.section-live.has-live-player {
  display: grid;
  grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  grid-template-areas:
    "categories player"
    "categories channels";
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  min-height: calc(100vh - 88px);
}

.content.section-live.has-live-player .player-shell {
  grid-area: player;
  margin-bottom: 0;
}

.content.section-live.has-live-player .browser-grid {
  display: contents;
}

.categories-panel {
  grid-area: categories;
  position: sticky;
  top: 92px;
  min-height: 0;
  height: calc(100vh - 112px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mobile-category-bar {
  display: none;
  margin-bottom: 16px;
}

.mobile-cat-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-cat-btn:active {
  background: var(--surface-3);
  border-color: rgba(34, 211, 238, 0.4);
}

.mobile-cat-icon {
  font-size: 12px;
  color: var(--soft);
}

/* Mobile Category Overlay Modal */
.mobile-cat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.mobile-cat-overlay[hidden] {
  display: none !important;
}

.mobile-cat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.mobile-cat-sheet {
  position: relative;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
  padding: 20px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.5);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.mobile-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.mobile-cat-header h3 {
  margin: 0;
  font-size: 1.1em;
}

.mobile-category-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
}

.mobile-category-list .category-chip {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: var(--surface-2);
  justify-content: flex-start;
}

.mobile-category-list .category-chip.active {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(34, 211, 238, 0.05));
  border-color: rgba(34, 211, 238, 0.5);
  color: #22d3ee;
}

.items-panel {
  grid-area: channels;
  position: sticky;
  top: 92px;
  min-height: 0;
  height: calc(100vh - 112px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.content.section-live.has-live-player .items-panel {
  position: static;
  height: auto;
  overflow: visible;
}

.category-list,
.category-chips-wrap,
.items-panel .cards {
  flex: 1;
  min-height: 0;
  height: 100%;
  max-height: none;
}

.content.section-live .items-panel .cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  align-content: start;
  align-items: start;
  gap: 8px;
  overflow-y: auto;
  padding-right: 0;
}


.content.section-live.has-live-player .continue-panel {
  display: none;
}

.content.section-vod .browser-grid,
.content.section-series .browser-grid,
.content.section-favorites .browser-grid,
.content.section-history .browser-grid {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
}

.content.section-vod .categories-panel,
.content.section-series .categories-panel {
  min-height: auto;
}





.content.section-vod .category-search-wrap,
.content.section-series .category-search-wrap {
  max-width: 300px;
}

.content.section-vod .category-chip,
.content.section-series .category-chip {
  flex: 0 0 auto;
  width: auto;
  min-width: 100px;
  scroll-snap-align: start;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--soft);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: all 0.2s ease;
}

.content.section-vod .category-chip:hover,
.content.section-series .category-chip:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.1);
}

.content.section-vod .category-chip.active,
.content.section-series .category-chip.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 4px 12px rgba(34, 211, 238, 0.25);
}

.content.section-vod .items-panel,
.content.section-series .items-panel {
  overflow: visible;
}

.content.section-vod .cards,
.content.section-series .cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 240px));
  align-content: start;
  align-items: start;
  gap: 24px;
  overflow-y: auto;
  padding: 8px 4px 32px;
}

.content.section-favorites .cards,
.content.section-history .cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 220px));
  align-content: start;
  align-items: start;
  gap: 16px;
  overflow-y: auto;
  padding: 4px 2px 20px;
}

.compact-cards {
  display: flex;
  grid-template-columns: none;
  gap: 14px;
  max-height: none;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 10px;
  scroll-snap-type: x proximity;
}

.continue-panel {
  overflow: hidden;
}

.content.section-vod .card,
.content.section-series .card {
  flex: none;
  width: 100%;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.content.section-vod .card:hover,
.content.section-series .card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: var(--shadow);
  z-index: 10;
}

.compact-cards .card {
  flex: 0 0 clamp(150px, 13vw, 205px);
  scroll-snap-align: start;
}

.content.section-vod .cards.loading,
.content.section-series .cards.loading,
.compact-cards.loading {
  display: block;
}

.card {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card:hover,
.card:focus-visible {
  transform: translateY(-6px) scale(1.04);
  box-shadow: var(--shadow);
  z-index: 10;
}

.thumb {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  background: var(--surface-3);
  /* Allow touch scroll to pass through */
  pointer-events: none;
}

.thumb.live-thumb {
  aspect-ratio: 16 / 10;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Prevent browser image drag on mobile */
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none;
}

.thumb.live-thumb img {
  object-fit: contain;
  padding: 10px;
  pointer-events: none;
}

.thumb-placeholder {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--surface-2) 0%, #11213d 100%);
  color: var(--blue);
  text-align: center;
  padding: 8px;
  pointer-events: none;
}

.thumb-placeholder::before {
  content: 'EnomFlix';
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 10px rgba(34, 211, 238, 0.3);
}

.thumb-placeholder::after {
  content: 'SIN IMAGEN';
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 6px;
  font-weight: 600;
  letter-spacing: 2px;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 28px;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  border-radius: 6px;
}

.card:hover .play-overlay,
.card:focus-visible .play-overlay {
  opacity: 1;
}

.card-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  /* Pass touch through to parent card button */
  pointer-events: none;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 19px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 500;
  /* Pass touch through to parent card button */
  pointer-events: none;
}

.version-chip {
  color: var(--blue);
  font-weight: 850;
}

.favorite-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  color: var(--text);
  font-weight: 900;
  /* Restore pointer events for the favorite button */
  pointer-events: auto;
  touch-action: manipulation;
  z-index: 5;
}

.favorite-toggle.active {
  color: var(--yellow);
}

.loading,
.empty {
  color: var(--muted);
}

.loading p {
  position: relative;
  overflow: hidden;
  min-height: 42px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06));
  background-size: 220% 100%;
  padding: 12px;
  animation: skeleton 1.4s ease-in-out infinite;
}

@keyframes skeleton {
  to {
    background-position: -220% 0;
  }
}

.detail-modal[hidden] {
  display: none;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: end center;
  padding: 24px;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}

.detail-sheet {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(86vh, 760px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #111218;
  box-shadow: var(--shadow);
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  background: rgba(0, 0, 0, 0.68);
  font-weight: 900;
}

.detail-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
  gap: 30px;
  padding: 40px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.detail-backdrop-img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.3);
  opacity: 0.6;
  transform: scale(1.2);
}

.detail-poster, .detail-body {
  position: relative;
  z-index: 1;
}

.detail-poster {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface-3);
  aspect-ratio: 2 / 3;
}

.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-body h2 {
  margin-right: 42px;
  margin-bottom: 10px;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.05;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft);
  font-size: 13px;
}

.detail-description {
  color: var(--soft);
  line-height: 1.55;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.detail-actions .primary-btn {
  width: auto;
  margin-top: 0;
}

.seasons {
  display: grid;
  gap: 14px;
  padding: 0 24px 24px;
}

.detail-season-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

.seasons .season-select-dropdown {
  width: 100%;
  appearance: none;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 9px 32px 9px 12px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.seasons .season-select-dropdown option {
  background: #12141a;
  color: #fff;
}

.seasons .season-select-dropdown:hover,
.seasons .season-select-dropdown:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--red);
  box-shadow: 0 0 8px rgba(255, 122, 0, 0.2);
}

.season-block h3 {
  margin-bottom: 8px;
  font-size: 17px;
}

.episode-list {
  display: grid;
  gap: 8px;
}

.episode-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--surface-2);
  text-align: left;
}

.episode-row span {
  color: var(--muted);
  font-size: 13px;
}

.episode-row:hover {
  background: var(--surface-3);
}

@media (max-width: 1040px) {
  .sidebar {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .tab {
    text-align: center;
  }

  .tabs {
    justify-content: flex-start;
  }

  .header-search {
    order: 3;
  }

  .content.section-live.has-live-player {
    display: block;
    min-height: 0;
  }

  .content.section-live.has-live-player .player-shell {
    margin-bottom: 14px;
  }

  .content.section-live.has-live-player .browser-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .content.section-live.has-live-player .categories-panel,
  .content.section-live.has-live-player .items-panel {
    position: static;
    max-height: none;
  }

  .content.section-live.has-live-player .category-list {
    display: flex;
    max-height: none;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .content.section-live.has-live-player .category-chip {
    flex: 0 0 auto;
    width: auto;
    min-width: 178px;
  }

  .content.section-live.has-live-player .items-panel .cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 220px));
    max-height: none;
    overflow: visible;
  }

}

@media (max-width: 820px) {
  .content {
    padding: 16px;
  }

  .player-bar,
  .browser-grid,
  .content.section-vod .browser-grid,
  .content.section-series .browser-grid,
  .content.section-favorites .browser-grid,
  .content.section-history .browser-grid,
  .detail-hero {
    grid-template-columns: 1fr;
  }

  .categories-panel h3,
  .category-search-wrap {
    display: none;
  }

  .player-actions {
    justify-content: stretch;
  }

  .mode-switch {
    width: 100%;
  }

  .ghost-btn {
    flex: 1 1 auto;
  }

  .categories-panel {
    display: none !important;
  }

  .mobile-category-bar {
    display: block;
  }

  .category-list {
    display: flex;
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    gap: 8px;
  }

  .category-chip {
    min-width: auto;
    white-space: nowrap;
    padding: 8px 16px;
  }

  .categories-panel,
  .items-panel {
    grid-area: auto;
    grid-column: 1 / -1;
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .content.section-vod .categories-panel,
  .content.section-series .categories-panel {
    margin-bottom: 12px;
  }

  .cards {
    grid-template-columns: repeat(auto-fill, minmax(138px, 1fr));
    max-height: none;
  }

  .content.section-live.has-live-player .panel {
    padding: 12px;
  }

  .content.section-live.has-live-player .section-heading {
    margin-bottom: 10px;
  }

  .cards {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }

  .content.section-vod .cards,
  .content.section-series .cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
  }

  .content.section-vod .card,
  .content.section-series .card {
    flex: none;
    width: 100%;
  }

  .compact-cards .card {
    flex-basis: clamp(138px, 31vw, 176px);
  }
}

@media (max-width: 560px) {
  .login-card {
    padding: 24px;
  }

  .sidebar {
    padding: 16px;
  }

  .tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .player-copy h2 {
    font-size: 18px;
  }

  .mode-switch {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-modal {
    padding: 10px;
  }

  .detail-hero,
  .seasons {
    padding: 16px;
  }

  .content.section-live.has-live-player .items-panel .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .content.section-live.has-live-player .category-chip {
    min-width: 152px;
  }

  .content.section-live.has-live-player .items-panel .card-title {
    font-size: 13px;
  }

  .compact-cards .card {
    flex-basis: calc(50% - 6px);
  }
}

/* EnomFLix streaming refresh */
.login-page {
  position: relative;
  isolation: isolate;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 440px);
  gap: clamp(24px, 5vw, 68px);
  width: min(1180px, 100%);
  margin: 0 auto;
  place-items: center stretch;
}

.login-visual {
  position: relative;
  min-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(255, 122, 0, 0.3), transparent 38%),
    linear-gradient(20deg, rgba(8, 199, 222, 0.18), transparent 46%),
    #0b0907;
  box-shadow: var(--shadow);
}

.login-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.86), rgba(5, 4, 3, 0.26) 46%, rgba(5, 4, 3, 0.88)),
    linear-gradient(0deg, rgba(5, 4, 3, 0.9), transparent 54%);
}

.login-brand-lockup {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 5vw, 52px);
  right: clamp(22px, 5vw, 52px);
  bottom: clamp(24px, 5vw, 52px);
}

.hero-brand {
  font-size: clamp(46px, 8vw, 88px);
  line-height: 0.9;
}

.login-brand-lockup p {
  max-width: 440px;
  margin: 16px 0 0;
  color: rgba(255, 250, 240, 0.78);
  font-size: clamp(16px, 2.2vw, 22px);
  font-weight: 750;
  line-height: 1.25;
}

.poster-wall {
  position: absolute;
  inset: -8% -4% -6% 24%;
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 14px;
  transform: rotate(-5deg) skewY(-2deg);
  opacity: 0.96;
}

.poster-wall span {
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 28%),
    linear-gradient(145deg, #ff7a00, #24100a 58%, #090807);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.poster-wall span:nth-child(2n) {
  transform: translateY(56px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(145deg, #08c7de, #151416 58%, #070706);
}

.poster-wall span:nth-child(3n) {
  transform: translateY(-34px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(145deg, #ffd21f, #311709 58%, #090706);
}

.poster-wall span:nth-child(5n) {
  transform: translateY(28px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(145deg, #d946ef, #191019 58%, #080607);
}

.login-card {
  border-color: rgba(255, 255, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(12, 11, 9, 0.92);
  backdrop-filter: blur(22px);
  padding: 24px 20px !important;
}

.login-card::before {
  background: linear-gradient(90deg, var(--red), var(--red-2), var(--blue));
}

.login-card h1 {
  max-width: 340px;
  font-size: 22px !important;
  margin: 12px 0 6px !important;
}

.source-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 2px;
  padding: 0;
  border: 0;
}

.source-selector legend {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--soft);
  font-size: 14px;
  font-weight: 850;
}

.source-selector label {
  position: relative;
  display: block;
  margin: 0;
  min-width: 0;
}

.source-selector input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.source-selector span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--soft);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.source-selector input:focus-visible + span {
  outline: 2px solid rgba(8, 199, 222, 0.7);
  outline-offset: 2px;
}

.source-selector input:checked + span {
  border-color: transparent;
  background: linear-gradient(135deg, var(--red-2), var(--red));
  color: #120b02;
}

input {
  min-height: 46px;
  background: rgba(255, 255, 255, 0.08);
}

input:focus {
  border-color: rgba(255, 210, 31, 0.76);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.16);
}

.primary-btn {
  min-height: 46px;
  background: linear-gradient(135deg, var(--red-2), var(--red));
  color: #140d03;
  box-shadow: 0 14px 34px rgba(255, 122, 0, 0.24);
}

.brand {
  letter-spacing: 0;
}

.brand span,
.brand-mini span {
  color: var(--red-2);
}

.app-view {
  background:
    linear-gradient(180deg, rgba(255, 122, 0, 0.12), rgba(5, 4, 3, 0) 360px),
    #050403;
}

.sidebar {
  grid-template-columns: auto minmax(0, 1fr) minmax(220px, 420px);
  gap: clamp(12px, 2vw, 24px);
  padding: 14px clamp(16px, 3vw, 34px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.94), rgba(5, 4, 3, 0.78));
}

.brand.compact {
  font-size: clamp(24px, 3vw, 34px);
}

.tabs {
  justify-content: center;
  gap: 4px;
}

.tab {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 999px;
  color: rgba(255, 250, 240, 0.72);
  font-size: 14px;
  text-align: center;
}

.tab.active,
.tab:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.tab.active {
  box-shadow: inset 0 -2px 0 var(--red-2);
}

.header-search input {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
}

.user-menu-button {
  background: linear-gradient(135deg, var(--red-2), var(--red));
  color: #160d03;
}

.account-menu {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(12, 11, 9, 0.98);
}

.content {
  width: min(1520px, 100%);
  margin: 0 auto;
  padding: clamp(16px, 2.4vw, 34px);
}

.player-shell,
.detail-sheet {
  border-color: rgba(255, 255, 255, 0.12);
  background: #070604;
}

.panel,
.continue-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.continue-panel {
  padding: 0;
}

.browser-grid {
  gap: clamp(16px, 2.2vw, 28px);
}

.section-heading {
  margin-bottom: 14px;
}

.section-heading h2 {
  color: var(--text);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 950;
}

.category-list {
  gap: 12px;
  display: flex;
  overflow-x: auto;
  padding-bottom: 8px;
}

.cards {
  gap: clamp(12px, 1.6vw, 20px);
}

.content.section-vod .cards,
.content.section-series .cards,
.content.section-favorites .cards,
.content.section-history .cards {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.card {
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
}

.card:hover,
.card:focus-visible {
  border-color: transparent;
  background: transparent;
  transform: translateY(-5px);
}

.thumb {
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 122, 0, 0.22), rgba(8, 199, 222, 0.12)),
    var(--surface-3);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.36);
}

.thumb::after {
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  pointer-events: none;
  content: "";
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.62), transparent);
}

.thumb-placeholder {
  color: var(--red-2);
}

.play-overlay {
  background: rgba(0, 0, 0, 0.42);
}

.card-title {
  padding: 0 2px;
  color: rgba(255, 250, 240, 0.94);
  font-size: 14px;
  font-weight: 900;
}

.card-meta {
  padding: 0 2px 2px;
  color: rgba(255, 250, 240, 0.56);
}

.version-chip {
  color: var(--red-2);
}

.favorite-toggle {
  top: 9px;
  right: 9px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.6);
  font-size: 0;
}

.favorite-toggle::before {
  content: "+";
  font-size: 22px;
  line-height: 1;
}

.favorite-toggle.active::before {
  content: "*";
  color: var(--red-2);
}

.detail-sheet {
  background: #0e0c09;
}

.detail-hero {
  min-height: 430px;
  align-items: end;
  border-bottom: 0;
}

.detail-backdrop-img {
  filter: blur(28px) brightness(0.34) saturate(1.15);
}

.pill {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.07);
}

.episode-row {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.episode-row:hover {
  background: rgba(255, 255, 255, 0.1);
}

.content.section-live.has-live-player {
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
}

.content.section-live.has-live-player .categories-panel,
.content.section-live.has-live-player .items-panel {
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.035);
}

.content.section-live.has-live-player .items-panel .card {
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.content.section-live.has-live-player .items-panel .card:hover {
  background: rgba(255, 255, 255, 0.085);
}

.content.section-live.has-live-player .items-panel .thumb {
  box-shadow: none;
}

.categories-panel {
  min-height: 0;
}



.category-list.loading {
  display: block;
}

.category-select-wrap {
  display: grid;
  gap: 7px;
}

.category-select-wrap span {
  color: rgba(255, 250, 240, 0.58);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.category-select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 850;
  outline: 0;
}

.category-select:focus {
  border-color: rgba(255, 210, 31, 0.62);
  box-shadow: 0 0 0 3px rgba(255, 122, 0, 0.16);
}

.category-select option {
  background: #120f0b;
  color: var(--text);
}

@media (min-width: 1100px) {
  .content.section-vod.has-continue,
  .content.section-series.has-continue,
  .content.section-favorites.has-continue {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(240px, 22vw, 330px);
    gap: clamp(18px, 2.2vw, 30px);
    align-items: start;
  }

  .content.section-vod.has-continue .player-shell,
  .content.section-series.has-continue .player-shell,
  .content.section-favorites.has-continue .player-shell {
    grid-column: 1 / -1;
  }

  .content.section-vod.has-continue .browser-grid,
  .content.section-series.has-continue .browser-grid,
  .content.section-favorites.has-continue .browser-grid {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .content.section-vod.has-continue .continue-panel,
  .content.section-series.has-continue .continue-panel,
  .content.section-favorites.has-continue .continue-panel {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 112px);
    margin: 0;
    overflow: auto;
  }

  .content.section-vod.has-continue .continue-panel .section-heading,
  .content.section-series.has-continue .continue-panel .section-heading,
  .content.section-favorites.has-continue .continue-panel .section-heading {
    margin-bottom: 10px;
  }

  .content.section-vod.has-continue .continue-panel .section-heading h2,
  .content.section-series.has-continue .continue-panel .section-heading h2,
  .content.section-favorites.has-continue .continue-panel .section-heading h2 {
    font-size: 16px;
  }

  .content.section-vod.has-continue .compact-cards,
  .content.section-series.has-continue .compact-cards,
  .content.section-favorites.has-continue .compact-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
    touch-action: auto;
  }

  .content.section-vod.has-continue .compact-cards .card,
  .content.section-series.has-continue .compact-cards .card,
  .content.section-favorites.has-continue .compact-cards .card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) 30px;
    grid-template-areas:
      "thumb title fav"
      "thumb meta fav";
    gap: 8px;
    align-items: center;
    width: 100%;
    min-width: 0;
    min-height: 98px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    flex: none;
  }

  .content.section-vod.has-continue .compact-cards .card:hover,
  .content.section-series.has-continue .compact-cards .card:hover,
  .content.section-favorites.has-continue .compact-cards .card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.075);
  }

  .content.section-vod.has-continue .compact-cards .thumb,
  .content.section-series.has-continue .compact-cards .thumb,
  .content.section-favorites.has-continue .compact-cards .thumb {
    grid-area: thumb;
    width: 74px;
    aspect-ratio: 2 / 3;
    box-shadow: none;
  }

  .content.section-vod.has-continue .compact-cards .card-title,
  .content.section-series.has-continue .compact-cards .card-title,
  .content.section-favorites.has-continue .compact-cards .card-title {
    grid-area: title;
    align-self: end;
    font-size: 13px;
  }

  .content.section-vod.has-continue .compact-cards .card-meta,
  .content.section-series.has-continue .compact-cards .card-meta,
  .content.section-favorites.has-continue .compact-cards .card-meta {
    grid-area: meta;
    align-self: start;
    font-size: 11px;
  }

  .content.section-vod.has-continue .compact-cards .favorite-toggle,
  .content.section-series.has-continue .compact-cards .favorite-toggle,
  .content.section-favorites.has-continue .compact-cards .favorite-toggle {
    grid-area: fav;
    position: static;
    width: 30px;
    height: 30px;
    align-self: start;
  }
}

@media (max-width: 1040px) {
  .login-page {
    grid-template-columns: 1fr;
    width: min(620px, 100%);
  }

  .login-visual {
    display: none !important;
  }

  .poster-wall {
    inset: -32% -8% -48% 18%;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .login-page {
    padding: 16px;
  }

  .login-visual {
    display: none !important;
  }

  .source-selector {
    grid-template-columns: 1fr;
  }

  .content {
    padding: 14px;
  }
  .tab {
    padding-inline: 12px;
  }
}

.cat-icon { font-size: 1.1em; margin-right: 4px; vertical-align: middle; }
.chip-netflix { border-color: rgba(229, 9, 20, 0.4); }
.chip-netflix.active, .chip-netflix:hover { background: #E50914; color: #fff; box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4); border-color: #E50914; }
.chip-disney { border-color: rgba(0, 99, 229, 0.4); }
.chip-disney.active, .chip-disney:hover { background: #0063e5; color: #fff; box-shadow: 0 4px 12px rgba(0, 99, 229, 0.4); border-color: #0063e5; }
.chip-hbo { border-color: rgba(91, 0, 186, 0.4); }
.chip-hbo.active, .chip-hbo:hover { background: #5b00ba; color: #fff; box-shadow: 0 4px 12px rgba(91, 0, 186, 0.4); border-color: #5b00ba; }
.chip-amazon { border-color: rgba(0, 168, 225, 0.4); }
.chip-amazon.active, .chip-amazon:hover { background: #00a8e1; color: #fff; box-shadow: 0 4px 12px rgba(0, 168, 225, 0.4); border-color: #00a8e1; }
.chip-apple { border-color: rgba(163, 170, 174, 0.4); }
.chip-apple.active, .chip-apple:hover { background: #555; color: #fff; border-color: #555; }
.chip-star { border-color: rgba(255, 153, 0, 0.4); }
.chip-star.active, .chip-star:hover { background: #ff9900; color: #fff; border-color: #ff9900; }
.chip-paramount { border-color: rgba(0, 100, 255, 0.4); }
.chip-paramount.active, .chip-paramount:hover { background: #0064FF; color: #fff; border-color: #0064FF; }
.chip-vix { border-color: rgba(255, 90, 0, 0.4); }
.chip-vix.active, .chip-vix:hover { background: #ff5a00; color: #fff; border-color: #ff5a00; }
.chip-pluto { border-color: rgba(252, 231, 0, 0.4); }
.chip-pluto.active, .chip-pluto:hover { background: #fce700; color: #000; border-color: #fce700; }

.settings-modal {
    position: absolute;
    bottom: 70px;
    right: 20px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    width: 340px;
    max-width: 90vw;
    z-index: 2000;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 12px;
    backdrop-filter: blur(10px);
}
.settings-modal[hidden] {
    display: none !important;
}
.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}
.settings-header h3 { font-size: 14px; font-weight: 700; margin: 0; }
#closeSettingsModal { background: none; border: none; color: #fff; font-size: 24px; cursor: pointer; padding: 0 8px; line-height: 1; }
.settings-body {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.settings-column { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.settings-column[hidden] { display: none !important; }
.settings-column h4 { font-size: 12px; color: var(--soft); margin: 0; text-transform: uppercase; font-weight: 600; }
.track-list { display: flex; flex-direction: column; gap: 4px; max-height: 200px; overflow-y: auto; }
.track-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid transparent;
    color: var(--soft);
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}
.track-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }
.track-btn.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
    font-weight: 600;
}
.settings-modal .mode-switch {
    display: flex;
    gap: 4px;
}
.settings-modal .mode-switch .track-btn {
    flex: 1;
    text-align: center;
    padding: 6px;
}

.continue-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 4000;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}
.continue-modal[hidden] {
    display: none !important;
}
.continue-modal-content {
    background: var(--surface-2);
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    border-radius: 16px;
    padding: 24px;
    overflow-y: auto;
    border: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}
.continue-modal-content .section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Custom Login/Legal Styles */
.login-subtitle {
    font-size: 14px;
    color: var(--soft);
    line-height: 1.4;
    margin: 8px 0 16px;
    text-align: left;
}

.login-info-box {
    background: rgba(255, 122, 0, 0.08);
    border: 1px solid rgba(255, 122, 0, 0.25);
    border-radius: var(--radius);
    padding: 12px 14px;
    font-size: 13px;
    color: #ffb066;
    line-height: 1.4;
    margin-bottom: 20px;
    text-align: left;
}

.login-checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 20px 0 10px;
    text-align: left;
}

.login-checkbox-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.login-checkbox-wrap label {
    display: inline;
    margin: 0;
    font-size: 13px;
    color: var(--soft);
    line-height: 1.4;
    font-weight: normal;
    user-select: none;
    cursor: pointer;
}

.login-btn-subtext {
    font-size: 11px;
    color: var(--soft);
    margin-top: 8px;
    line-height: 1.3;
    text-align: center;
}

.login-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: bold;
}

.legal-links a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.legal-links span {
    color: var(--line);
}

.login-card .legal-note {
    margin: 0;
    font-size: 12px;
    color: var(--soft);
    line-height: 1.4;
    text-align: center;
}

/* Legal Modals */
.legal-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.legal-modal-overlay[hidden] {
    display: none !important;
}

.legal-modal-card {
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    max-width: 480px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: zoomIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal-card h2 {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.legal-modal-card p {
    font-size: 14px;
    color: var(--soft);
    line-height: 1.6;
    margin: 0;
}

.legal-modal-card .close-modal-btn {
    margin-top: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Modern access screen */
.login-view {
  --login-amber: #ff9f1a;
  --login-amber-strong: #ff7a00;
  --login-amber-soft: #ffc266;
  --login-bg: #080705;
  --login-panel: rgba(20, 18, 14, 0.9);
  --login-line: rgba(255, 246, 229, 0.12);
  --login-muted: rgba(255, 248, 235, 0.62);
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 145, 0, 0.15), transparent 31rem),
    radial-gradient(circle at 6% 88%, rgba(255, 194, 102, 0.07), transparent 34rem),
    linear-gradient(135deg, #050504, var(--login-bg) 52%, #110d08);
  color: #fffaf2;
}

.login-view::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(135deg, black, transparent 72%);
}

.login-view.modal-open {
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 11000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff8ed;
  color: #181108;
  font-weight: 850;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.login-view .login-page {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(480px, 540px);
  gap: clamp(30px, 5vw, 78px);
  align-items: center;
  width: min(1380px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: clamp(22px, 3vw, 44px);
}

.login-view .login-visual {
  position: relative;
  isolation: isolate;
  display: block;
  min-height: min(780px, calc(100svh - 88px));
  overflow: hidden;
  border: 1px solid rgba(255, 244, 224, 0.12);
  border-radius: clamp(24px, 3vw, 40px);
  background:
    radial-gradient(circle at 18% 15%, rgba(255, 159, 26, 0.32), transparent 34%),
    linear-gradient(145deg, #21160a, #100d09 45%, #050504);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.48);
}

.login-view .login-visual::before,
.login-view .login-visual::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.login-view .login-visual::before {
  z-index: 0;
  opacity: 0.5;
  background:
    linear-gradient(120deg, transparent 58%, rgba(255, 159, 26, 0.1)),
    repeating-linear-gradient(115deg, transparent 0 54px, rgba(255, 255, 255, 0.022) 55px 56px);
}

.login-view .login-visual::after {
  z-index: 3;
  background:
    linear-gradient(0deg, rgba(7, 6, 4, 0.92), transparent 44%),
    linear-gradient(90deg, rgba(7, 6, 4, 0.62), transparent 58%);
}

.login-visual-glow {
  position: absolute;
  z-index: 0;
  top: -18%;
  right: -12%;
  width: 68%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(255, 122, 0, 0.19);
  filter: blur(65px);
}

.login-view .login-brand-lockup {
  position: absolute;
  z-index: 5;
  top: clamp(32px, 5vw, 66px);
  right: clamp(30px, 5vw, 68px);
  bottom: auto;
  left: clamp(30px, 5vw, 68px);
}

.login-brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--login-amber-soft), var(--login-amber-strong));
  box-shadow: 0 14px 35px rgba(255, 122, 0, 0.27);
}

.login-brand-mark span {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #211306;
}

.login-view .hero-brand {
  display: flex;
  margin-top: 28px;
  color: #fffaf2;
  font-size: clamp(48px, 6.8vw, 92px);
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.login-view .brand span,
.login-view .hero-brand span {
  color: var(--login-amber);
}

.login-view .login-brand-lockup > p {
  max-width: 530px;
  margin: 22px 0 0;
  color: rgba(255, 248, 236, 0.84);
  font-size: clamp(18px, 2.2vw, 27px);
  font-weight: 720;
  line-height: 1.26;
  letter-spacing: -0.025em;
}

.login-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.login-feature-list span {
  padding: 8px 13px;
  border: 1px solid rgba(255, 248, 235, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 248, 235, 0.72);
  font-size: 12px;
  font-weight: 820;
  backdrop-filter: blur(12px);
}

.login-view .poster-wall {
  position: absolute;
  z-index: 1;
  inset: 37% -11% -9% 20%;
  display: grid;
  grid-template-columns: repeat(3, minmax(125px, 1fr));
  gap: 15px;
  opacity: 0.65;
  transform: rotate(-7deg) skewY(-2deg);
}

.login-view .poster-wall span {
  min-height: 260px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 19px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), transparent 30%),
    linear-gradient(145deg, #b9520c, #29160c 57%, #090705);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.4);
}

.login-view .poster-wall span:nth-child(2n) {
  transform: translateY(54px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), transparent 30%),
    linear-gradient(145deg, #a8814b, #23201a 58%, #080705);
}

.login-view .poster-wall span:nth-child(3n) {
  transform: translateY(-24px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(145deg, #784c2e, #24130c 58%, #080604);
}

.login-preview-card {
  position: absolute;
  z-index: 6;
  right: clamp(28px, 4vw, 54px);
  bottom: clamp(28px, 4vw, 52px);
  width: min(390px, 56%);
  padding: 18px;
  border: 1px solid rgba(255, 248, 235, 0.16);
  border-radius: 20px;
  background: rgba(13, 11, 8, 0.72);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(20px);
}

.login-preview-topline {
  display: flex;
  gap: 8px;
  align-items: center;
  color: rgba(255, 248, 235, 0.7);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.login-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--login-amber);
  box-shadow: 0 0 0 5px rgba(255, 159, 26, 0.12);
}

.login-preview-time {
  margin-left: auto;
}

.login-preview-copy {
  display: grid;
  gap: 6px;
  margin-top: 24px;
}

.login-preview-copy .login-preview-kicker {
  color: var(--login-amber-soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.login-preview-copy strong {
  max-width: 310px;
  color: #fffaf2;
  font-size: 19px;
  line-height: 1.17;
}

.login-preview-copy > span:last-child {
  color: var(--login-muted);
  font-size: 12px;
  line-height: 1.4;
}

.login-preview-progress {
  height: 3px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.login-preview-progress span {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--login-amber-strong), var(--login-amber-soft));
}

.login-view .login-card {
  position: relative;
  width: 100%;
  max-width: none;
  overflow: hidden;
  padding: clamp(28px, 3.2vw, 44px) !important;
  border: 1px solid var(--login-line);
  border-radius: clamp(22px, 2.5vw, 30px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 38%),
    var(--login-panel);
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(26px);
}

.login-view .login-card::before {
  top: 0;
  right: 18%;
  left: 18%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 188, 94, 0.9), transparent);
}

.login-card-header {
  margin-bottom: 22px;
}

.login-mobile-brand {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 32px;
}

.login-mobile-brand .brand {
  font-size: 23px;
  letter-spacing: -0.045em;
}

.login-mobile-brand .login-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
}

.login-eyebrow {
  margin-bottom: 8px;
  color: var(--login-amber-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-view .login-card h1 {
  max-width: none;
  margin: 0 !important;
  color: #fffaf2;
  font-size: clamp(28px, 3vw, 38px) !important;
  font-weight: 880;
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.login-view .login-subtitle {
  margin: 10px 0 0;
  color: var(--login-muted);
  font-size: 14px;
  line-height: 1.5;
}

.login-view .login-info-box {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0 0 20px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 166, 43, 0.19);
  border-radius: 13px;
  background: rgba(255, 142, 15, 0.065);
  color: rgba(255, 224, 184, 0.78);
  font-size: 12px;
  line-height: 1.45;
}

.login-info-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(255, 194, 102, 0.35);
  border-radius: 50%;
  color: var(--login-amber-soft);
  font-family: Georgia, serif;
  font-size: 12px;
  font-weight: 900;
}

.login-view .login-alert {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin: 0 0 18px;
  padding: 12px 13px;
  border-color: rgba(255, 100, 100, 0.3);
  border-radius: 13px;
  background: rgba(176, 34, 34, 0.14);
  color: #ffd1cf;
  font-size: 13px;
  line-height: 1.4;
}

.login-alert > span:first-child {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 112, 112, 0.18);
  color: #ffb6b2;
  font-size: 12px;
  font-weight: 900;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-fields-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 13px;
}

.login-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.login-view .login-field label {
  margin: 0;
  color: rgba(255, 249, 239, 0.83);
  font-size: 12px;
  font-weight: 780;
}

.login-input-wrap {
  position: relative;
}

.login-input-wrap > svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  pointer-events: none;
  stroke: rgba(255, 247, 233, 0.4);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  transition: stroke 0.18s ease;
}

.login-view .login-input-wrap input {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 12px 13px 12px 43px;
  border: 1px solid rgba(255, 248, 235, 0.13);
  border-radius: 13px;
  outline: 0;
  background: rgba(255, 255, 255, 0.05);
  color: #fffaf2;
  font-size: 14px;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.login-view .login-input-wrap.has-action input {
  padding-right: 72px;
}

.login-view .login-input-wrap input::placeholder {
  color: rgba(255, 248, 235, 0.32);
}

.login-view .login-input-wrap:focus-within input {
  border-color: rgba(255, 169, 51, 0.72);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 3px rgba(255, 145, 0, 0.11);
}

.login-input-wrap:focus-within > svg {
  stroke: var(--login-amber-soft);
}

.login-field-help {
  color: rgba(255, 248, 235, 0.43);
  font-size: 10.5px;
  line-height: 1.35;
}

.password-toggle {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 7px;
  min-height: 34px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 209, 145, 0.76);
  font-size: 10px;
  font-weight: 850;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: rgba(255, 159, 26, 0.09);
  color: var(--login-amber-soft);
}

.password-toggle:focus-visible,
.login-view button:focus-visible,
.login-view a:focus-visible {
  outline: 2px solid var(--login-amber-soft);
  outline-offset: 3px;
}

.login-view .login-checkbox-wrap {
  display: grid;
  grid-template-columns: 19px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 1px 0 0;
  padding: 2px 0;
}

.login-view .login-checkbox-wrap input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--login-amber-strong);
}

.login-view .login-checkbox-wrap label {
  margin: 0;
  color: rgba(255, 248, 235, 0.58);
  font-size: 11.5px;
  font-weight: 520;
  line-height: 1.48;
}

.login-view .login-submit {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 51px;
  margin: 0;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(135deg, #ffae36, var(--login-amber-strong));
  box-shadow: 0 16px 34px rgba(255, 122, 0, 0.2);
  color: #241305;
  font-size: 14px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.login-submit svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.18s ease;
}

.login-submit:hover {
  filter: brightness(1.06);
  box-shadow: 0 19px 42px rgba(255, 122, 0, 0.28);
  transform: translateY(-1px);
}

.login-submit:hover svg {
  transform: translateX(3px);
}

.login-submit:active {
  transform: translateY(1px);
}

.login-view .login-btn-subtext {
  margin: -7px 0 0;
  color: rgba(255, 248, 235, 0.38);
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}

.login-dev-btn {
  display: grid;
  gap: 2px;
  margin-top: 15px;
  padding: 11px 14px;
  border: 1px dashed rgba(255, 194, 102, 0.28);
  border-radius: 12px;
  background: rgba(255, 159, 26, 0.055);
  color: rgba(255, 229, 195, 0.82);
  text-align: center;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.login-dev-btn span {
  font-size: 11px;
  font-weight: 850;
}

.login-dev-btn small {
  color: rgba(255, 248, 235, 0.4);
  font-size: 9.5px;
}

.login-dev-btn:hover {
  border-color: rgba(255, 194, 102, 0.46);
  background: rgba(255, 159, 26, 0.085);
}

.login-view .login-footer {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 248, 235, 0.08);
}

.login-view .legal-links {
  display: flex;
  gap: 11px;
  align-items: center;
  justify-content: center;
}

.login-view .legal-links button {
  padding: 3px;
  border: 0;
  background: transparent;
  color: rgba(255, 224, 184, 0.68);
  font-size: 10.5px;
  font-weight: 720;
}

.login-view .legal-links button:hover {
  color: var(--login-amber-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.login-view .legal-links > span {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 248, 235, 0.24);
}

.login-view .login-card .legal-note {
  margin: 0;
  color: rgba(255, 248, 235, 0.32);
  font-size: 9.5px;
  line-height: 1.4;
  text-align: center;
}

.login-view .legal-modal-overlay {
  padding: 20px;
  background: rgba(5, 4, 3, 0.82);
  backdrop-filter: blur(14px);
}

.login-view .legal-modal-card {
  gap: 18px;
  width: min(500px, 100%);
  max-width: none;
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid rgba(255, 248, 235, 0.13);
  border-radius: 22px;
  outline: 0;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 42%),
    #15110c;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.62);
}

.legal-modal-header {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 248, 235, 0.09);
}

.login-view .legal-modal-card h2 {
  margin: 0;
  padding: 0;
  border: 0;
  color: #fffaf2;
  font-size: 21px;
}

.login-view .legal-modal-card p {
  color: rgba(255, 248, 235, 0.64);
  font-size: 13px;
  line-height: 1.7;
}

.legal-modal-x {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 248, 235, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 248, 235, 0.7);
  font-size: 21px;
  line-height: 1;
}

.legal-modal-x:hover {
  border-color: rgba(255, 194, 102, 0.32);
  background: rgba(255, 159, 26, 0.1);
  color: var(--login-amber-soft);
}

.login-view .legal-modal-card .primary-btn {
  min-height: 46px;
  margin: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffae36, var(--login-amber-strong));
  color: #241305;
}

@media (max-width: 1080px) {
  .login-view .login-page {
    grid-template-columns: 1fr;
    width: min(650px, 100%);
    padding: clamp(18px, 4vw, 34px);
  }

  .login-view .login-visual {
    display: none !important;
  }

  .login-view .login-card {
    align-self: center;
  }
}

@media (max-width: 600px) {
  .login-view .login-page {
    width: 100%;
    padding: 10px;
  }

  .login-view .login-card {
    padding: 24px 19px !important;
    border-radius: 21px;
  }

  .login-mobile-brand {
    margin-bottom: 26px;
  }

  .login-fields-row {
    grid-template-columns: 1fr;
  }

  .login-view .login-input-wrap input {
    font-size: 16px;
  }

  .login-view .login-card h1 {
    font-size: 29px !important;
  }

  .login-view .login-info-box {
    font-size: 11.5px;
  }
}

@media (max-height: 760px) and (min-width: 1081px) {
  .login-view .login-page {
    padding-block: 18px;
  }

  .login-view .login-visual {
    min-height: calc(100svh - 36px);
  }

  .login-view .login-card {
    padding: 26px 34px !important;
  }

  .login-mobile-brand {
    margin-bottom: 21px;
  }

  .login-card-header {
    margin-bottom: 16px;
  }

  .login-view .login-info-box {
    margin-bottom: 15px;
    padding-block: 9px;
  }

  .login-form {
    gap: 12px;
  }

  .login-view .login-footer {
    margin-top: 15px;
    padding-top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-view *,
  .login-view *::before,
  .login-view *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
