@import url("/darkmovie/fonts.css");
@import url("/darkmovie/radar-pro-button.css");

/* The same top bar is mounted in the studio, Canal Dark and Radar. */
#studio-header {
  position: sticky;
  top: 0;
  z-index: 40;
  color-scheme: dark;
  color: #f4f3f7;
  font: 400 13px/1.5 Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-align: start;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
}
#public-studio-access[hidden], #studio-header[hidden], #studio-header [hidden] { display: none !important; }
#studio-header *, #studio-header *::before, #studio-header *::after { box-sizing: border-box; }
#studio-header :where(header, nav, details, summary, button) { all: revert; box-sizing: border-box; }
#studio-header[id] button { font: inherit; color: inherit; cursor: pointer; }
#studio-header button:disabled { cursor: not-allowed; opacity: .5; }
#studio-header[id] a { color: inherit; text-decoration: none; }
#studio-header :focus-visible { outline: 2px solid #b494ef; outline-offset: 4px; }
#studio-header img { display: block; max-width: 100%; }
#studio-header[id] .d-icon { width: 20px; height: 20px; flex-shrink: 0; display: inline-block; vertical-align: middle; }

#studio-header .d-shell { width: min(1392px,calc(100% - 96px)); margin: 0 auto; }
#studio-header .d-topbar { height: 82px; border-bottom: 1px solid #ffffff09; background: #0b0b0eea; position: sticky; top: 0; z-index: 40; backdrop-filter: blur(20px); }
#studio-header .d-header { height: 100%; display: flex; align-items: center; gap: 34px; }
#studio-header .d-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; font-size: 22px; font-weight: 800; letter-spacing: -1px; }
#studio-header .d-brand img { width: 28px; height: 32px; }
#studio-header .d-brand > span { color: inherit; }
#studio-header .d-brand span span { color: #a77be9; }
#studio-header .d-nav { display: flex; align-items: stretch; gap: 26px; height: 100%; margin-left: 20px; }
#studio-header .d-nav>a, #studio-header .d-nav>button, #studio-header .d-nav>details>summary { display: flex; align-items: center; gap: 7px; background: none; border: 0; color: #aaa8b4; font-weight: 500; font-size: 12px; white-space: nowrap; position: relative; padding: 0; list-style: none; }
#studio-header .d-nav>a:hover, #studio-header .d-nav>button:hover, #studio-header .d-nav>details>summary:hover { color: #f3f1f8; }
#studio-header .d-nav>a.d-active { color: #c7b0f1; }
#studio-header .d-nav>a.d-active:after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: #a376e7; box-shadow: 0 -3px 13px #9a5fe530; }
#studio-header .d-nav>details { height: 100%; display: flex; position: relative; }
#studio-header .d-nav>details>summary { height: 100%; cursor: pointer; }
#studio-header .d-nav>details>summary::-webkit-details-marker { display: none; }
#studio-header .d-nav .d-icon { width: 13px; height: 13px; }
#studio-header .d-dropdown { position: absolute; top: calc(100% - 8px); left: -14px; min-width: 230px; border: 1px solid #ffffff15; background: #17161d; border-radius: 13px; box-shadow: 0 18px 60px #0009; padding: 8px; z-index: 50; }
#studio-header .d-dropdown button, #studio-header .d-dropdown a { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; padding: 12px; border-radius: 7px; font-size: 12px; color: #ccc9d4; }
#studio-header .d-dropdown button:hover, #studio-header .d-dropdown a:hover { background: #ffffff07; color: white; }
#studio-header .d-dropdown .d-icon { width: 17px; height: 17px; color: #b296e0; }
#studio-header .d-header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
#studio-header .d-wallet { display: flex; align-items: center; gap: 8px; border: 1px solid #ffffff0d; background: #15131b; border-radius: 8px; height: 36px; padding: 0 11px; font-size: 11px; white-space: nowrap; }
#studio-header .d-wallet .d-icon { width: 15px; color: #b091e3; }
#studio-header .d-wallet span { color: #9994a6; }
#studio-header .d-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; border: 1px solid transparent; background: transparent; border-radius: 8px; position: relative; flex-shrink: 0; }
#studio-header .d-icon-btn:hover { background: #ffffff07; border-color: #ffffff0c; }
#studio-header .d-alert-dot { position: absolute; width: 5px; height: 5px; background: #a77ae8; right: 7px; top: 6px; border-radius: 50%; box-shadow: 0 0 0 3px #0b0b0e; }
#studio-header .d-profile { display: flex; align-items: center; gap: 7px; position: relative; }
#studio-header .d-profile>summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
#studio-header .d-profile>summary::-webkit-details-marker { display: none; }
#studio-header .d-profile>summary .d-icon { width: 12px; color: #8f8b9b; }
#studio-header .d-profile .d-dropdown { left: auto; right: 0; top: 49px; width: 230px; }
#studio-header .d-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: linear-gradient(140deg,#504063,#211e2a); border: 1px solid #a78ac647; font-size: 12px; font-weight: 600; color: #e3d7f5; flex-shrink: 0; }
#studio-header .d-avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
#studio-header .d-profile-caption { padding: 10px 12px; border-bottom: 1px solid #ffffff0b; margin-bottom: 5px; }
#studio-header .d-profile-caption strong { display: block; font-weight: 600; font-size: 13px; }
#studio-header .d-profile-caption small { color: #908b9c; font-size: 10px; }
#studio-header .d-mobile-menu { display: none; }

@media (max-width:1350px) {
  #studio-header .d-header { gap: 20px; }
  #studio-header .d-nav { margin-left: 5px; gap: 20px; }
  #studio-header .d-brand { font-size: 20px; }
  #studio-header .d-wallet :is(span, .d-icon) { display: none; }
  #studio-header .d-header-actions { gap: 8px; }
}

@media (max-width:1200px) {
  #studio-header .d-shell { width: calc(100% - 56px); }
  #studio-header .d-nav { gap: 17px; }
  #studio-header .d-nav>a, #studio-header .d-nav>button, #studio-header .d-nav>details>summary { font-size: 11px; }
  #studio-header .d-header-actions { gap: 5px; }
  #studio-header .d-header-actions .d-wallet { padding: 0 8px; }
  #studio-header .d-brand { font-size: 19px; gap: 7px; }
  #studio-header .d-brand img { width: 25px; height: 28px; }
}

@media (max-width:980px) {
  #studio-header .d-header { gap: 16px; }
  #studio-header .d-nav { gap: 14px; }
  #studio-header .d-header-actions .d-wallet { display: none; }
  #studio-header .d-header-actions>.d-icon-btn { display: none; }
}

@media (max-width:1100px) {
  #studio-header .d-topbar { height: 70px; }
  #studio-header .d-shell { width: calc(100% - 40px); }
  #studio-header .d-header { position: relative; }
  #studio-header .d-brand { font-size: 21px; }
  #studio-header .d-brand img { width: 27px; height: 31px; }
  #studio-header .d-mobile-menu { display: flex; margin-right: 6px; }
  #studio-header .d-nav { display: none; position: absolute; top: 69px; left: -20px; right: -20px; height: auto; margin: 0; padding: 15px 20px 20px; background: #131117f7; backdrop-filter: blur(20px); border-bottom: 1px solid #a784cb2b; box-shadow: 0 20px 40px #0008; flex-direction: column; align-items: stretch; gap: 2px; }
  #studio-header .d-nav.d-open { display: flex; }
  #studio-header .d-nav>a, #studio-header .d-nav>button, #studio-header .d-nav>details>summary { padding: 11px 12px; font-size: 13px; border-radius: 6px; }
  #studio-header .d-nav>a.d-active { background: #9b70ca0e; }
  #studio-header .d-nav>a.d-active:after { display: none; }
  #studio-header .d-nav>details { display: block; height: auto; }
  #studio-header .d-nav>details>summary { height: auto; }
  #studio-header .d-nav .d-dropdown { position: relative; top: auto; left: auto; box-shadow: none; margin: 3px 12px 8px; min-width: 0; background: #0f0d13; }
  #studio-header .d-header-actions { margin-left: auto; gap: 13px; }
  #studio-header .d-header-actions .d-wallet { display: flex; }
}

@media (max-width:540px) {
  #studio-header .d-shell { width: calc(100% - 32px); }
  #studio-header .d-topbar { height: 66px; }
  #studio-header .d-brand { font-size: 20px; }
  #studio-header .d-brand img { width: 25px; }
  #studio-header .d-header-actions { gap: 7px; }
  #studio-header .d-wallet { height: 33px; font-size: 10px; padding: 0 8px; }
  #studio-header .d-wallet .d-icon { width: 13px; }
  #studio-header .d-header-actions>.d-profile>summary>.d-icon { display: none; }
  #studio-header .d-avatar { width: 30px; height: 30px; font-size: 10px; }
  #studio-header .d-mobile-menu { width: 29px; margin-right: 0; }
  #studio-header .d-nav { left: -16px; right: -16px; top: 65px; }
}

@media (max-width:1100px) {
  #studio-header .d-header-actions>.d-mobile-menu { display: inline-flex; }
}

#studio-header .d-nav .d-dropdown a { display: flex; align-items: center; gap: 8px; }
#studio-header .d-profile-caption small { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
#studio-header[id] .d-header-actions > [data-d-action="notifications"] { display: inline-flex; flex-shrink: 0; min-width: 36px; min-height: 36px; }
#studio-header[id] .d-alert-dot[hidden] { display: none; }

@media (max-width:540px) {
  #studio-header[id] .d-header-actions > [data-d-action="notifications"] { min-width: 32px; min-height: 40px; width: 32px; }
  #studio-header[id] .d-header-actions { gap: 5px; }
}

@media (max-width:600px) {
  #studio-header[id] .d-brand>span { display: none; }
}

@media (max-width:390px) {
  #studio-header[id] .d-header-actions { gap: 8px; }
}


@media (max-width:379px) {
  #studio-header .d-header { gap: 8px; }
  #studio-header[id] .d-header-actions { gap: 4px; }
  #studio-header .header-radar-pro { position: relative; width: 36px; padding: 0; justify-content: center; }
  #studio-header .header-radar-pro span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

#studio-header .d-nav > :is(a, button),
#studio-header .d-nav > details > summary {
  padding-inline: 16px;
  border-radius: 9px;
}
#studio-header .d-nav > a.d-active,
#studio-header .d-nav > :is(a, button):is(:hover, :focus-visible),
#studio-header .d-nav > details:is([open], .d-current-group) > summary,
#studio-header .d-nav > details > summary:is(:hover, :focus-visible) {
  background-color: #a775ec1c;
  box-shadow: inset 0 0 0 1px #b78df32b, 0 3px 12px #0007, 0 0 16px #a775ec1a;
  text-shadow: 0 0 10px #b78df34d;
}
#studio-header .d-nav > a.d-active::after { left: 8px; right: 8px; border-radius: 2px; }
#studio-header .d-nav > details > .d-dropdown {
  box-shadow: 0 8px 18px #0008, 0 22px 44px #0008, 0 0 22px #9a64e521, inset 0 1px #c4a4f520;
}
#studio-header .d-nav .d-dropdown a { padding-inline: 16px; border-radius: 8px; }
#studio-header .d-nav .d-dropdown a:is(:hover, :focus-visible, [aria-current="page"]) {
  background-color: #a775ec1c;
  box-shadow: inset 0 0 0 1px #b78df32b, 0 3px 12px #0007, 0 0 16px #a775ec1a;
  text-shadow: 0 0 10px #b78df34d;
  color: #f3edf9;
}
@media (prefers-reduced-motion: no-preference) {
  #studio-header .d-nav > :is(a, button),
  #studio-header .d-nav > details > summary,
  #studio-header .d-nav .d-dropdown a {
    transition: background-color 180ms ease, box-shadow 180ms ease, text-shadow 180ms ease, color 180ms ease;
  }
  #studio-header .d-nav > details[open] > .d-dropdown { animation: dm-header-submenu-enter 160ms ease-out; }
  @keyframes dm-header-submenu-enter {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (min-width: 1101px) {
  #studio-header .d-nav { align-items: center; gap: 8px; }
  #studio-header .d-nav > :is(a, button),
  #studio-header .d-nav > details > summary { height: 44px; }
  #studio-header .d-nav > details { height: auto; align-items: center; }
  #studio-header .d-nav > details > .d-dropdown { top: calc(100% + 6px); left: 0; }
  #studio-header .d-nav > a.d-active::after { content: none; }
}

/* Notifications use a native dialog, including Escape and focus return. */
#studio-header .d-header-dialog {
  color: #f5effb;
  background: linear-gradient(150deg, #1b1821, #111015 65%);
  border: 1px solid #a482ce30;
  border-radius: 18px;
  width: min(640px, calc(100% - 32px));
  max-height: calc(100dvh - 44px);
  padding: 24px;
  margin: auto;
  overflow: auto;
  box-shadow: 0 30px 160px #000b;
}
#studio-header .d-header-dialog::backdrop { background: #050407bc; backdrop-filter: blur(8px); }
#studio-header .d-header-dialog h2 { margin: 0; font-size: 19px; line-height: 1.3; letter-spacing: -.035em; }
#studio-header .d-header-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#studio-header .d-header-dialog [data-close-notices] { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #ffffff18; border-radius: 8px; background: #211c29; }
#studio-header .d-header-dialog [data-close-notices]:hover { background: #32293f; }
#studio-header .d-header-dialog [data-header-notice-list] { margin-top: 20px; }
#studio-header .d-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 14px; border: 1px solid #ffffff18; border-radius: 8px; background: #211c29; }
#studio-header .d-btn:hover { background: #32293f; }
#studio-header .d-notification { padding: 14px 0; border-bottom: 1px solid #ffffff0b; }
#studio-header .d-notification strong { display: block; font-size: 13px; }
#studio-header .d-notification p, #studio-header .d-account-note { margin: 4px 0; color: #b7a8ce; font-size: 12px; }
#studio-header .d-notification .d-btn { margin-top: 8px; }
#studio-header .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 540px) {
  #studio-header .d-header-dialog { width: calc(100% - 22px); max-height: calc(100dvh - 22px); border-radius: 14px; padding: 18px; }
}
