:root {
  --sora-night: #08111E;
  --sora-cloud: #111D2C;
  --sora-sky: #72A7F8;
  --sora-horizon: #8275D6;
  --sora-snow: #F5F7FB;
  --sora-mist: #AAB4C1;
  --sora-error: #E87979;
  --sora-success: #68B58B;
  --sora-radius: 12px;
  --sora-space: 8px;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url(../../fonts/PlusJakartaSans.ttf) format('truetype');
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html,
body,
#app {
  width: 100%;
  min-height: 100%;
  margin: 0;
}
html {
  background: #08111E;
  color: #F5F7FB;
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}
body {
  min-height: 100vh;
  background: #08111E;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  min-width: 44px;
  min-height: 44px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #72A7F8;
  outline-offset: 3px;
}
button:disabled,
[aria-disabled='true'] {
  opacity: 0.48;
  cursor: not-allowed;
}
.sora-shell {
  min-height: 100vh;
}
.top-bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  height: 72px;
  padding: 12px 24px;
  display: grid;
  grid-template-columns: 220px minmax(240px, 620px) 1fr;
  gap: 24px;
  align-items: center;
  background: #111D2C;
  border-bottom: 1px solid rgba(170, 180, 193, 0.14);
}
.brand-link,
.account-link {
  color: #F5F7FB;
  text-decoration: none;
  border-radius: 10px;
}
.account-link {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: #AAB4C1;
  max-width: 280px;
}
.account-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sora-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.03em;
}
.sora-logo img {
  width: 40px;
  height: 40px;
}
.sora-logo .sora-wordmark {
  width: 106px;
  height: 40px;
  object-fit: contain;
  object-position: left center;
}
.search-form {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: #08111E;
  border: 1px solid rgba(170, 180, 193, 0.22);
  border-radius: 12px;
  color: #AAB4C1;
}
.search-form:focus-within {
  border-color: #72A7F8;
}
.search-form input {
  width: 100%;
  min-width: 0;
  color: #F5F7FB;
  background: transparent;
  border: 0;
  outline: 0;
}
.search-form input:focus-visible {
  outline: 3px solid #72A7F8;
  outline-offset: 3px;
}
.side-nav {
  position: fixed;
  z-index: 15;
  inset: 72px auto 0 0;
  width: 104px;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #111D2C;
}
.side-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 6px;
  color: #AAB4C1;
  text-decoration: none;
  border-radius: 10px;
  transition: color 150ms, background-color 150ms, transform 150ms;
}
.side-nav a span {
  font-size: 12px;
  font-weight: 500;
}
.side-nav a:hover,
.side-nav a.active {
  color: #F5F7FB;
  background: rgba(114, 167, 248, 0.14);
}
.side-nav a:focus-visible {
  transform: scale(1.02);
}
.sora-content {
  min-height: 100vh;
  padding: 72px 0 0 104px;
}
.page {
  min-height: calc(100vh - 72px);
  padding: 48px clamp(24px, 4vw, 72px) 72px;
  overflow-x: hidden;
}
.page-header {
  max-width: 820px;
  margin-bottom: 32px;
}
.page-header > span,
.eyebrow {
  color: #72A7F8;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.page-header h1,
.detail-copy h1 {
  margin: 8px 0 12px;
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}
.page-header p,
.detail-copy p {
  color: #AAB4C1;
  line-height: 1.7;
}
.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 4px 20px;
}
.filter-row a,
.choice-row button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  color: #AAB4C1;
  background: #111D2C;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
}
.filter-row a.selected,
.choice-row button[aria-pressed='true'] {
  color: #08111E;
  background: #72A7F8;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 28px 18px;
}
.media-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  color: #F5F7FB;
  text-decoration: none;
  border-radius: 10px;
  transition: transform 150ms;
}
.media-card:hover,
.media-card:focus-visible {
  transform: scale(1.02);
}
.media-card:focus-visible {
  outline-offset: 6px;
}
.poster-frame,
.media-skeleton {
  aspect-ratio: 2 / 3;
  display: block;
  overflow: hidden;
  background: #111D2C;
  border-radius: 12px;
}
.poster-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.poster-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.media-card strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-card small {
  color: #AAB4C1;
}
.media-skeleton {
  min-height: 220px;
  animation: quiet-pulse 1.4s ease-in-out infinite;
}
.catalog-section + .catalog-section {
  margin-top: 48px;
}
.catalog-section h2,
.episodes h2,
.settings-section h2 {
  margin: 0 0 20px;
  font-size: 22px;
}
.empty-state {
  min-height: 320px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: #AAB4C1;
  text-align: center;
}
.empty-state .sora-logo {
  position: relative;
}
.empty-state .sora-logo::after,
.horizon-rule {
  content: '';
  width: 120px;
  height: 1px;
  display: block;
  background: #8275D6;
}
.primary-button,
.text-button,
.back-button,
.account-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
}
.primary-button {
  color: #08111E;
  background: #72A7F8;
  font-weight: 600;
}
.text-button,
.back-button,
.account-row button {
  color: #F5F7FB;
  background: transparent;
}
.login-page {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
  background: #08111E;
}
.back-button {
  position: fixed;
  top: 20px;
  left: 20px;
}
.login-card {
  width: min(100%, 440px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px;
  background: #111D2C;
  border-radius: 12px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.detail-actions button {
  padding: 0 18px;
  color: #F5F7FB;
  background: #111D2C;
  border: 1px solid rgba(170, 180, 193, 0.2);
  border-radius: 10px;
}
.detail-actions button[aria-pressed='true'] {
  color: #08111E;
  background: #72A7F8;
  border-color: #72A7F8;
}
.login-card h1 {
  margin: 8px 0;
  font-size: 32px;
  letter-spacing: -0.035em;
}
.login-card label,
.settings-section label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #AAB4C1;
}
.login-card input,
.settings-section select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  color: #F5F7FB;
  background: #08111E;
  border: 1px solid rgba(170, 180, 193, 0.24);
  border-radius: 10px;
}
.form-error {
  margin: 0;
  color: #E87979;
  line-height: 1.5;
}
.detail-page {
  position: relative;
}
.detail-backdrop {
  position: absolute;
  inset: 0 0 auto;
  height: 62vh;
  opacity: 0.24;
  background-position: center;
  background-size: cover;
  mask-image: linear-gradient(to bottom, #000 20%, transparent 100%);
  pointer-events: none;
}
.detail-copy {
  position: relative;
  min-height: 52vh;
  display: grid;
  grid-template-columns: minmax(160px, 240px) minmax(0, 720px);
  gap: 36px;
  align-items: end;
  padding: 48px 0;
}
.detail-poster {
  width: 100%;
  border-radius: 12px;
}
.detail-meta {
  color: #72A7F8 !important;
}
.episodes {
  position: relative;
  margin-top: 32px;
}
.episode-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}
.episode-list a {
  min-height: 72px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 12px 16px;
  color: #F5F7FB;
  background: #111D2C;
  border-radius: 10px;
  text-decoration: none;
}
.episode-list small {
  color: #72A7F8;
}
.settings-page {
  max-width: 1080px;
}
.settings-section {
  margin-bottom: 20px;
  padding: 24px;
  background: #111D2C;
  border-radius: 12px;
}
.settings-section > label {
  margin-top: 18px;
}
.settings-section fieldset {
  margin: 20px 0;
  padding: 0;
  border: 0;
}
.settings-section legend {
  margin-bottom: 10px;
  color: #AAB4C1;
}
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.info-grid > * {
  display: flex;
  min-height: 64px;
  flex-direction: column;
  justify-content: center;
  color: #F5F7FB;
  text-decoration: none;
}
.info-grid small {
  color: #AAB4C1;
}
@keyframes quiet-pulse {
  50% {
    opacity: 0.58;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
@media (max-width: 900px) {
  .top-bar {
    grid-template-columns: auto 1fr auto;
    padding: 10px 14px;
  }
  .brand-link .sora-wordmark,
  .account-link span {
    display: none;
  }
  .side-nav {
    inset: auto 0 0;
    width: auto;
    height: 72px;
    padding: 6px 10px;
    flex-direction: row;
    justify-content: space-around;
    border-top: 1px solid rgba(170, 180, 193, 0.14);
  }
  .side-nav a {
    min-width: 88px;
  }
  .sora-content {
    padding-left: 0;
    padding-bottom: 72px;
  }
  .page {
    padding: 32px 20px 64px;
  }
}
@media (max-width: 620px) {
  .top-bar {
    grid-template-columns: auto 1fr;
  }
  .account-link {
    display: none;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 12px;
  }
  .detail-copy {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
  }
  .detail-copy h1 {
    font-size: 30px;
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
  .login-card {
    padding: 28px 22px;
  }
}
@media (min-width: 1600px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}
.detail-play-action {
  margin-top: 22px;
}
.player-page {
  display: grid;
  gap: 20px;
}
.owned-video-frame {
  overflow: hidden;
  width: min(100%, 1120px);
  margin: 0 auto;
  background: #000;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(8, 17, 30, 0.55);
}
.owned-video-frame video {
  display: block;
  width: 100%;
  max-height: 72vh;
  background: #000;
}
.playback-status {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 24px;
  text-align: center;
  background: rgba(17, 29, 44, 0.82);
  border: 1px solid rgba(170, 180, 193, 0.18);
  border-radius: 16px;
}
.playback-status h1 {
  margin: 0;
  font-size: 1.35rem;
}
.playback-status p {
  margin: 10px 0 0;
  color: #AAB4C1;
}
.track-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: min(100%, 720px);
  margin: 0 auto;
}

