
@font-face {
  font-family: "Epilogue";
  src: url("../assets/fonts/Epilogue/Epilogue-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Epilogue";
  src: url("../assets/fonts/Epilogue/Epilogue-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* RROpague */
@font-face {
  font-family: "RROpague";
  src: url("../assets/fonts/RROPAGUE/RROpagueTRIAL-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RROpague";
  src: url("../assets/fonts/RROPAGUE/RROpagueTRIAL-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "RROpague";
  src: url("../assets/fonts/RROPAGUE/RROpagueTRIAL-ExtraboldItalic.otf") format("opentype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

html{
  --app-font: "Epilogue", system-ui, -apple-system, "Segoe UI", Roboto,
              "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --app-font-weight: 300;
}

body{
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--txt);
  font-family: var(--app-font);
  font-weight: var(--app-font-weight);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: calc(16px * var(--scale));
}

input, select, textarea, button { font: inherit; }

.view-home .tile,
.view-home .home-card {
  font-family: "RROpague", "Epilogue", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-weight: 800;
  font-style: italic;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
img { display:block; max-width:100%; }

button,
.btn,
.app-modal__btn,
[role="button"],
[data-route],
[data-action] {
  font-family: "Epilogue", system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-weight: 600;
  cursor: pointer;
}


.h2 { margin: 0 0 8px; font-size: 1.4rem; }
.muted { color: var(--muted); }
.btn {
  background:#35334b;
  color:#e5e7eb;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  line-height: 1.2;
  min-height: 2.5rem;
}

.btn-primary {
  background: var(--brand);
  color:#120f1f;
  font-weight: 600;
}

:root{
  --brand-logo-height: calc(28px * var(--scale));
  --radius: calc(12px * var(--scale));
  --focus: #ffd54f;
  --ring: var(--focus);
  --ring-width: 3px;
  --ring-offset: 2px;
}

.app { width:100vw; height:100vh; display:flex; flex-direction:column; }

.topbar {
  display:flex;
  align-items:center;
  gap: calc(16px * var(--scale));
  padding: calc(24px * var(--scale)) calc(32px * var(--scale));
}

.logo{
  height: var(--brand-logo-height);
  width: auto;
  display: block;
  object-fit: contain;
}

.breadcrumb { color: var(--muted); }
.spacer { flex:1; }
.user-badge { color: var(--muted); }

.view {
  padding: calc(24px * var(--scale));
  min-height: calc(100vh - 92px);
}


:root{
  --radius: 12px;
  --focus: #ffd54f;
  --ring: var(--focus);
  --ring-width: 3px;
}

[data-focusable]{
  position: relative;
  outline: none;
}

[data-focusable].is-focus::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid var(--color-focus-ring, #ffd700);
  border-radius: var(--focus-radius, 10px);
  pointer-events: none;
  box-shadow: 0 0 8px 2px var(--color-focus-ring, #ffd700);
  z-index: 5;
}

[data-focusable].is-focus{
  outline: 2px solid var(--ring) !important;
  outline-offset: 0 !important;   
}

[data-focusable]:focus{ outline: none; }

.btn,
.btn-list-item,
.card,
.fav-card,
.movie-card{
  border-radius: var(--radius);
  overflow: visible;  
}

.movie-card__poster,
.fav-card__thumb img{
  border-radius: calc(var(--radius) - 2px);
  overflow: hidden;
}

.breadcrumb-icon {
  min-height: 40px;   
  max-height: 40px;
  width: auto;
  display: block;
  opacity: .9; 
}

.modal.is-hidden { display:none; }

.card { background:#1f1d31; border-radius:16px; overflow:hidden; }
.card img { width:100%; aspect-ratio: 2/3; object-fit:cover; }
.card .label { padding:10px 12px; color:#e9e9f5; }

.list { padding: 12px; display:flex; flex-direction:column; gap: 12px; height:100%; overflow:auto; }
.list-item { display:flex; align-items:center; gap:12px; background:#1f1d31; padding:16px; border-radius:16px; min-height:64px; }
.list-item img { width:48px; height:48px; border-radius:10px; object-fit:cover; }

.grid { display:grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.row-3 { display:grid; grid-template-columns: 360px 1fr 420px; gap: 24px; height: calc(100vh - 140px); }
.panel { background: var(--card); border-radius: var(--radius); overflow:hidden; }
.panel-2 { background: var(--card-2); border-radius: var(--radius); overflow:hidden; }
.meta { padding: 16px; overflow: auto; height: calc(100% - 48vh); }

.player-placeholder { background:black; color:#999; height: 48vh; display:flex; align-items:center; justify-content:center; border-radius: 16px; margin: 16px; }

.views { opacity: 1; transition: opacity var(--dur-fast) var(--curve), transform var(--dur-fast) var(--curve); }
.views.leave { opacity: 0; transform: translateY(12px); }
.views.enter { opacity: 1; transform: translateY(0); }

.app-modal__backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  animation: fadeIn 120ms ease-out both;
}
.app-modal__box {
  width: min(520px, 90vw);
  background: #0b0c14;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 10px 36px rgba(0,0,0,0.4);
  animation: popIn 140ms ease-out both;
}
.app-modal__title {
  margin: 0 0 8px; font-size: 18px; font-weight: 700;
}
.app-modal__msg {
  margin: 0 0 14px; line-height: 1.5; color: #cbd3e1;
  white-space: pre-wrap;
}
.app-modal__actions {
  display: flex; gap: 8px; justify-content: flex-end;
}
.app-modal__btn {
  padding: 10px 14px; border-radius: 10px; border: 0; cursor: pointer;
  background: #22283a; color: #fff; font-weight: 600;
}
.app-modal__btn--primary { background: #3a6bff; }
.app-modal__btn:focus { outline: 2px solid #6d9aff; outline-offset: 2px; }



@keyframes fadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes popIn { from { transform: translateY(6px); opacity: 0 }
                   to   { transform: translateY(0);   opacity: 1 } }



                   .live-sidebar__toprow{
  display:flex; align-items:center; gap:8px; padding:8px 8px 6px 8px;
}
