








* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-sans);
  background:
    radial-gradient(circle at top right, rgba(212, 162, 76, .12) 0, transparent 24%),
    radial-gradient(circle at left bottom, rgba(37, 99, 235, .10) 0, transparent 28%),
    var(--bg);
  color: var(--text-1);
  overflow: hidden;
}

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

img,
svg {
  max-width: 100%;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: 100dvh;
  height: 100dvh;
  transition: grid-template-columns .24s ease;
}

body[data-sidebar="collapsed"] .app-shell {
  grid-template-columns: 0 minmax(0, 1fr);
}

.content-area {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100dvh;
  overflow: hidden;
}







.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 900;
}

.sidebar {
  background: rgb(8, 15, 29);
  backdrop-filter: blur(18px);
  border-right: 1px solid var(--line-soft);
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  position: relative;
  z-index: 910;
  overflow: hidden;
  min-height: 0;
  height: 100dvh;
  max-height: 100dvh;
  transition:
    transform .24s ease,
    opacity .24s ease,
    visibility .24s ease;
}

body[data-theme="light"] .sidebar {
  background: rgb(255, 255, 255);
}

body[data-sidebar="collapsed"] .sidebar {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

.sidebar-nav-wrap {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 2px;
  min-height: 0;
}

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-self: end;
}







.topbar {
  height: var(--header-height);
  flex: 0 0 var(--header-height);
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(18px);
  background: var(--bg-header);
  position: sticky;
  top: 0;
  z-index: 20;
  overflow: hidden;
}

.hamburger {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface-control);
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  transition:
    background .18s ease,
    border-color .18s ease,
    transform .18s ease;
}

.hamburger:hover {
  background: var(--nav-item-hover);
  border-color: rgba(37, 99, 235, .24);
}

.hamburger:active {
  transform: scale(.98);
}

.hamburger-lines {
  width: 20px;
  height: 15px;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger-lines span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: currentColor;
}







.brand-lockup {
  min-width: 0;
  width: 245px;
  max-width: 245px;
  height: var(--header-height);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--text-1);
  text-decoration: none;
  overflow: hidden;
  line-height: 0;
}

.brand-image-wrap {
  position: relative;
  min-width: 0;
  height: var(--header-height);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  line-height: 0;
}

.brand-image-wide {
  width: 245px;
  flex: 0 0 245px;
}

.brand-image-symbol {
  display: none;
  width: 58px;
  flex: 0 0 58px;
}

.brand-logo {
  position: absolute;
  left: 0;
  top: 50%;
  display: block;
  width: 100%;
  height: 72px;
  max-width: 100%;
  max-height: 72px;
  object-fit: contain;
  object-position: left center;
  transform: translateY(-50%);
}

.brand-logo-dark {
  display: none;
}

body[data-theme="dark"] .brand-logo-light {
  display: none;
}

body[data-theme="dark"] .brand-logo-dark {
  display: block;
}

body[data-theme="light"] .brand-logo-light {
  display: block;
}

body[data-theme="light"] .brand-logo-dark {
  display: none;
}

.brand-text-fallback {
  display: inline-flex;
  align-items: center;
  color: var(--text-1);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .02em;
  line-height: 1;
}

.brand-text-fallback-hidden {
  display: none;
}

.topbar-title {
  min-width: 0;
  color: var(--text-1);
  font-weight: 850;
  letter-spacing: .01em;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}







.notification-button {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--surface-control);
  color: var(--text-1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition:
    background .18s ease,
    border-color .18s ease,
    transform .18s ease;
}

.notification-button:hover {
  background: var(--nav-item-hover);
  border-color: rgba(37, 99, 235, .24);
}

.notification-button:active {
  transform: scale(.98);
}

.notification-icon {
  width: 21px;
  height: 21px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-icon svg {
  width: 21px;
  height: 21px;
  display: block;
}

.notification-icon-fallback {
  width: 17px;
  height: 19px;
  border: 2px solid currentColor;
  border-radius: 10px 10px 7px 7px;
  position: relative;
  display: inline-block;
}

.notification-icon-fallback::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -5px;
  width: 6px;
  height: 5px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  transform: translateX(-50%);
}

.notification-icon-fallback::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 8px;
  height: 2px;
  border-radius: var(--radius-pill);
  background: currentColor;
  transform: translateX(-50%);
}

.notification-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-pill);
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 900;
  box-shadow: 0 0 0 2px var(--bg-header);
}







.page-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding:
    var(--content-padding-y)
    var(--content-padding-x)
    calc(var(--bottom-nav-height) + 72px);
  scroll-padding-bottom: calc(var(--bottom-nav-height) + 72px);
}

.view-stack {
  display: grid;
  gap: 28px;
}








.bottom-nav {
  position: fixed;
  left: calc(var(--sidebar-width) + 24px);
  right: 24px;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 300;
  height: var(--bottom-nav-height);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: rgba(8, 15, 29, .88);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  overflow: visible;
  max-width: calc(100vw - 48px);
  transition: left .24s ease;
}

body[data-theme="light"] .bottom-nav {
  background: rgba(255, 255, 255, .88);
}

body[data-sidebar="collapsed"] .bottom-nav {
  left: 24px;
}









@media (display-mode: standalone), (display-mode: fullscreen) {
  :root {
    --cinelor-pwa-safe-top: clamp(36px, calc(env(safe-area-inset-top, 0px) - 20px), 50px);
    --cinelor-pwa-header-content-height: 56px;
  }

  html,
  body {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    overflow: hidden !important;
    background: #050B14 !important;
  }

  .app-shell,
  .content-area {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
  }

  .topbar {
    height: calc(var(--cinelor-pwa-safe-top) + var(--cinelor-pwa-header-content-height) + 10px) !important;
    flex-basis: calc(var(--cinelor-pwa-safe-top) + var(--cinelor-pwa-header-content-height) + 10px) !important;
    padding:
      var(--cinelor-pwa-safe-top)
      24px
      0 !important;
  }

  .topbar > * {
    transform: translateY(-16px) !important;
  }

  .sidebar {
    padding-top: calc(18px + var(--cinelor-pwa-safe-top)) !important;
    padding-bottom: 18px !important;
  }

  .bottom-nav,
  body[data-sidebar="collapsed"] .bottom-nav {
    left: max(14px, env(safe-area-inset-left, 0px)) !important;
    right: max(14px, env(safe-area-inset-right, 0px)) !important;
    bottom: 14px !important;
    height: var(--bottom-nav-height) !important;
    min-height: var(--bottom-nav-height) !important;
    max-width: calc(100vw - 28px) !important;
    padding: 8px !important;
    align-items: center !important;
    z-index: 320 !important;
  }

  .page-content {
    padding-bottom: calc(var(--bottom-nav-height) + 48px) !important;
    scroll-padding-bottom: calc(var(--bottom-nav-height) + 48px) !important;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (display-mode: standalone), (display-mode: fullscreen) {
    html,
    body,
    .app-shell,
    .content-area {
      height: 100vh !important;
      min-height: 100vh !important;
      max-height: 100vh !important;
    }
  }
}







html,
body,
.app-shell,
.content-area,
.page-content {
  max-width: 100%;
  overflow-x: hidden;
}

.page-content {
  overscroll-behavior-x: none;
}

img,
svg,
video,
canvas,
table,
pre,
code {
  max-width: 100%;
}
