/* Global shell, navigation, rows and catalog layout. */

.app-shell {
  min-height: 100vh;
  background: #101216;
  background: var(--color-bg, #101216);
}

.site-header {
  position: relative;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 92px;
  min-height: var(--header-height, 92px);
  border-bottom: 1px solid #292e38;
  border-bottom: 1px solid var(--color-border-soft, #292e38);
  background: #101216;
  background: rgba(16, 18, 22, 0.97);
  -webkit-box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.header-inner {
  display: block;
  max-width: 1760px;
  max-width: var(--container-max, 1760px);
  min-height: 92px;
  min-height: var(--header-height, 92px);
  margin: 0 auto;
  padding: 0 56px;
  padding: 0 var(--page-gutter, 56px);
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

@supports (display: flex) {
  .header-inner {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
  }
}

.brand,
.site-logo {
  display: inline-block;
  min-height: 60px;
  min-height: var(--control-height, 60px);
  margin-right: 36px;
  color: #f1f3f6;
  color: var(--color-text, #f1f3f6);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
}

.brand-mark {
  display: inline-block;
  width: 38px;
  height: 38px;
  margin-right: 10px;
  border-radius: 8px;
  background: #7189d8;
  background: var(--color-accent, #7189d8);
  color: #101216;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 38px;
  text-align: center;
  vertical-align: middle;
}

@supports (display: flex) {
  .brand,
  .site-logo,
  .brand-mark {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
  }

  .brand,
  .site-logo {
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
  }
}

.primary-nav,
.header-nav {
  display: inline-block;
  min-width: 0;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
}

.primary-nav ul,
.header-nav ul,
.header-actions,
.mobile-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav ul,
.header-nav ul,
.header-actions {
  display: block;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
}

@supports (display: flex) {
  .primary-nav,
  .header-nav,
  .primary-nav ul,
  .header-nav ul,
  .header-actions {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
  }
}

.primary-nav > a,
.header-nav > a {
  display: inline-block;
  vertical-align: middle;
}

/* Upload and settings already have dedicated icon actions in the full
   header. Responsive compact-menu rules reveal these links when needed. */
.primary-nav > .nav-compact-link,
.header-nav > .nav-compact-link {
  display: none;
}

.primary-nav li,
.header-nav li,
.header-actions > * {
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

.primary-nav a,
.header-nav a,
.nav-link {
  position: relative;
  display: block;
  min-height: 52px;
  padding: 15px 14px 13px;
  border-radius: 8px;
  color: #c5cad2;
  color: var(--color-text-soft, #c5cad2);
  font-size: 17px;
  font-weight: 600;
  line-height: 24px;
  white-space: nowrap;
}

@supports (display: flex) {
  .primary-nav a,
  .header-nav a,
  .nav-link {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
  }
}

.primary-nav a:hover,
.header-nav a:hover,
.nav-link:hover,
.primary-nav a:focus,
.header-nav a:focus,
.nav-link:focus {
  background: #20242c;
  background: var(--color-surface-raised, #20242c);
  color: #f1f3f6;
  color: var(--color-text, #f1f3f6);
}

.primary-nav a.active,
.primary-nav a[aria-current="page"],
.header-nav a.active,
.header-nav a[aria-current="page"],
.nav-link.active {
  background: rgba(113, 137, 216, 0.18);
  background: var(--color-accent-soft, rgba(113, 137, 216, 0.18));
  color: #f1f3f6;
  color: var(--color-text, #f1f3f6);
}

.primary-nav a.active:after,
.primary-nav a[aria-current="page"]:after,
.header-nav a.active:after,
.header-nav a[aria-current="page"]:after {
  position: absolute;
  right: 14px;
  bottom: 6px;
  left: 14px;
  height: 2px;
  border-radius: 2px;
  background: #7189d8;
  background: var(--color-accent, #7189d8);
  content: "";
}

.header-actions {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  margin-left: 18px;
}

.header-actions > *:last-child {
  margin-right: 0;
}

.icon-label {
  display: none;
}

.profile-badge {
  display: inline-block;
  width: 60px;
  width: var(--control-height, 60px);
  min-width: 60px;
  min-width: var(--control-height, 60px);
  height: 60px;
  height: var(--control-height, 60px);
  border: 2px solid #4a5260;
  border-color: var(--color-control-border, #4a5260);
  border-radius: 50%;
  background: #282d37;
  color: #f1f3f6;
  font-size: 18px;
  font-weight: 800;
  line-height: 56px;
  text-align: center;
  vertical-align: middle;
}

@supports (display: flex) {
  .profile-badge {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    line-height: 1;
  }
}

.disk-status {
  min-height: 60px;
  min-height: var(--control-height, 60px);
  padding: 19px 15px;
  line-height: 20px;
}

@supports (display: flex) {
  .disk-status {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
  }

  .disk-status > span:first-child {
    margin-right: 7px;
  }
}

.nav-more {
  position: relative;
}

.nav-more-menu,
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 60;
  z-index: var(--z-dropdown, 60);
  min-width: 260px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #333945;
  border: 1px solid var(--color-border, #333945);
  border-radius: 10px;
  background: #20242c;
  background: var(--color-surface-raised, #20242c);
  -webkit-box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
  box-shadow: var(--shadow-md, 0 12px 30px rgba(0, 0, 0, 0.32));
}

.nav-more.is-open .nav-more-menu,
.dropdown.is-open .dropdown-menu,
.nav-more-menu.is-open,
.dropdown-menu.is-open {
  display: block;
}

.nav-more-menu a,
.dropdown-menu a,
.dropdown-menu button {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 13px 16px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #f1f3f6;
  text-align: left;
}

.nav-more-menu a:hover,
.nav-more-menu a:focus,
.dropdown-menu a:hover,
.dropdown-menu a:focus,
.dropdown-menu button:hover,
.dropdown-menu button:focus {
  background: #303641;
  background: var(--color-surface-hover, #303641);
}

.mobile-nav,
.mobile-menu-toggle {
  display: none;
}

.mobile-menu-toggle {
  width: 56px;
  min-width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  border: 1px solid #4a5260;
  border-radius: 10px;
  background: #20242c;
  color: #f1f3f6;
  font-size: 24px;
  line-height: 54px;
  text-align: center;
}

.site-main {
  min-height: 60vh;
  padding: 40px 0 80px;
  padding: var(--space-8, 40px) 0 var(--space-11, 80px);
}

.home-page .site-main,
.detail-page .site-main,
.has-full-hero .site-main,
body[data-page="home"] .site-main,
body[data-page="movie-detail"] .site-main,
body[data-page="series-detail"] .site-main {
  padding-top: 0;
}

.container,
.page-container {
  width: 100%;
  max-width: 1760px;
  max-width: var(--container-max, 1760px);
  margin-right: auto;
  margin-left: auto;
  padding-right: 56px;
  padding-right: var(--page-gutter, 56px);
  padding-left: 56px;
  padding-left: var(--page-gutter, 56px);
}

.container-narrow {
  width: 100%;
  max-width: 1120px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 56px;
  padding-right: var(--page-gutter, 56px);
  padding-left: 56px;
  padding-left: var(--page-gutter, 56px);
}

.page-heading,
.section-heading,
.page-toolbar,
.toolbar,
.filter-bar,
.catalog-tools,
.detail-actions,
.hero-actions,
.upload-actions {
  display: block;
}

@supports (display: flex) {
  .page-heading,
  .section-heading,
  .page-toolbar,
  .toolbar,
  .filter-bar,
  .catalog-tools,
  .detail-actions,
  .hero-actions,
  .upload-actions {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
  }
}

.page-heading {
  margin-bottom: 32px;
  margin-bottom: var(--space-7, 32px);
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
  align-items: flex-end;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}

.page-heading h1,
.section-heading h2,
.section-heading h3 {
  margin-bottom: 0;
}

.page-heading-copy {
  min-width: 0;
}

.page-heading > div > *:last-child,
.page-heading-copy > *:last-child {
  margin-bottom: 0;
}

.page-heading-meta,
.result-count {
  margin-top: 8px;
  color: #929aa7;
  color: var(--color-text-muted, #929aa7);
  font-size: 18px;
}

.section-heading {
  min-height: 48px;
  margin-bottom: 20px;
  margin-bottom: var(--space-5, 20px);
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: justify;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}

.section-heading-actions {
  margin-left: 20px;
  white-space: nowrap;
}

.section-heading > * {
  min-width: 0;
}

.content-section,
.content-row {
  position: relative;
  margin-bottom: 64px;
  margin-bottom: var(--space-10, 64px);
}

.content-section:last-child,
.content-row:last-child {
  margin-bottom: 0;
}

.row-shell {
  position: relative;
}

.row-viewport {
  position: relative;
  margin: -8px -6px -24px;
  padding: 8px 6px 24px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.row-viewport::-webkit-scrollbar {
  height: 6px;
}

.row-track {
  display: block;
  min-width: 100%;
  white-space: nowrap;
}

@supports (display: flex) {
  .row-track {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
  }
}

.row-track > .media-card,
.row-track > .card {
  display: inline-block;
  width: 280px;
  min-width: 280px;
  margin-right: 24px;
  white-space: normal;
  vertical-align: top;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 280px;
  flex: 0 0 280px;
}

.row-track > .media-card:last-child,
.row-track > .card:last-child {
  margin-right: 0;
}

.row-navigation {
  position: absolute;
  top: -64px;
  right: 0;
  white-space: nowrap;
}

.row-navigation > * {
  margin-left: 8px;
}

.poster-grid,
.stats-grid,
.technical-grid,
.form-grid,
.settings-grid {
  display: block;
  margin-right: -12px;
  margin-left: -12px;
  font-size: 0;
}

@supports (display: flex) {
  .poster-grid,
  .stats-grid,
  .technical-grid,
  .form-grid,
  .settings-grid {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
  }
}

.poster-grid > .media-card,
.poster-grid > .card {
  display: inline-block;
  width: 16.666%;
  margin: 0 0 32px;
  margin-bottom: var(--space-7, 32px);
  padding: 0 12px;
  font-size: 20px;
  vertical-align: top;
  white-space: normal;
}

.page-toolbar,
.toolbar,
.filter-bar {
  margin-bottom: 32px;
  margin-bottom: var(--space-7, 32px);
  -webkit-box-align: end;
  -webkit-align-items: flex-end;
  align-items: flex-end;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}

.page-toolbar > *,
.toolbar > *,
.filter-bar > * {
  margin-right: 12px;
  margin-bottom: 12px;
}

.page-toolbar > *:last-child,
.toolbar > *:last-child,
.filter-bar > *:last-child {
  margin-right: 0;
}

.toolbar-spacer {
  min-width: 20px;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
}

/* Keep catalogue filters dense and balanced on TV, desktop and tablet.
   The phone rules in responsive.css retain their full-width stack. */
@media screen and (min-width: 640px) {
  .filter-bar > .filter-group {
    width: auto;
    min-width: 160px;
    margin-bottom: 12px;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 160px;
    flex: 1 1 160px;
  }

  .filter-bar > .search-field,
  .filter-bar > .catalog-search {
    min-width: 280px;
    -webkit-box-flex: 2;
    -webkit-flex: 2 1 300px;
    flex: 2 1 300px;
  }

  .filter-bar > .btn,
  .filter-bar > .button {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
  }
}

.two-column-layout,
.settings-layout,
.detail-content {
  display: block;
}

@supports (display: flex) {
  .two-column-layout,
  .settings-layout,
  .detail-content {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
  }
}

.layout-sidebar {
  width: 300px;
  margin-right: 32px;
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 300px;
  flex: 0 0 300px;
}

.layout-main {
  min-width: 0;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
}

.site-footer {
  padding: 36px 0;
  border-top: 1px solid #292e38;
  border-top: 1px solid var(--color-border-soft, #292e38);
  background: #0c0e12;
  color: #929aa7;
  color: var(--color-text-muted, #929aa7);
  font-size: 16px;
}

.footer-inner {
  display: block;
}

@supports (display: flex) {
  .footer-inner {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
  }
}

.footer-inner p {
  margin-bottom: 0;
}

.stack > * {
  margin-bottom: 20px;
}

.stack > *:last-child {
  margin-bottom: 0;
}

.cluster {
  display: block;
}

@supports (display: flex) {
  .cluster {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
  }
}

.cluster > * {
  margin-right: 12px;
  margin-bottom: 8px;
}

.cluster > *:last-child {
  margin-right: 0;
}
