:root {
    --orange: #ff5108;
    --orange-dark: #e44905;
    --ink: #18191b;
    --sidebar: #191919;
    --paper: #fbf6f2;
    --border: #ded5d0;
    --muted: #756f6c;
    --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 Arial, Helvetica, sans-serif; }
button, input, select { font: inherit; }
a { color: inherit; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 232px; background: var(--sidebar); color: #f4f1ef; padding: 22px 14px; display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; justify-content: center; padding: 0 8px 26px; }
.brand img { display: block; width: 160px; height: 82px; object-fit: contain; }
.nav-heading { font-size: 12px; color: #aaa6a4; margin: 14px 14px 8px; letter-spacing: .08em; font-weight: 700; }
.sidebar nav { display: grid; gap: 5px; }
.nav-link { padding: 11px 14px; text-decoration: none; border-radius: 9px; font-weight: 600; display: flex; gap: 12px; align-items: center; }
.nav-link:hover { background: #333; }
.nav-link.active { background: var(--orange); color: #fff; }
.nav-mark { font-size: 13px; font-weight: 900; opacity: .8; }
.sidebar-bottom { text-transform: uppercase;margin-top: auto; border-top: 1px solid #393939; padding: 18px 7px; font-size: 10px; letter-spacing: .2em; color: #777; }
.workspace { margin-left: 232px; min-height: 100vh; }
.topbar { padding: 18px 28px; display: flex; justify-content: space-between; align-items: center; gap: 18px; border-bottom: 1px solid var(--border); }
h1 { margin: 0; font-size: clamp(26px, 3vw, 41px); letter-spacing: -.05em; font-style: italic; font-weight: 900; line-height: 1.1; }
.slashes { color: var(--orange); letter-spacing: -.13em; padding-right: 9px; }

/* ==========================================================================
   Decorative Slashes
   ========================================================================== */

.slashes-before {
    padding-left: 42px;
    position: relative;
}

.slashes-before:before,
.slashes-before:after {
    background: var(--orange);
    clip-path: polygon(65% 0, 100% 0, 35% 100%, 0 100%);
    content: '';
    display: block;
    height: 22px;
    left: 0;
    margin-top: -11px;
    position: absolute;
    top: 50%;
    width: 24px;
}

.slashes-before:after {
    left: 16px;
}

.top-actions { display: flex; gap: 18px; align-items: center; }
.top-actions select { width: min(285px, 35vw); }
select, input { min-height: 42px; border: 1px solid #d8cec8; background: #FFF; border-radius: 10px; padding: 8px 12px; color: var(--ink); }
.logout { cursor: pointer; border: 1px solid var(--border); padding: 8px 12px; border-radius: 9px; background: transparent; }
.content { padding: 22px 28px 60px; max-width: 1700px; margin: 0 auto; }
.context { display: inline-block; background: #fff8f3; border: 1px solid var(--border); border-radius: 30px; padding: 8px 17px; margin: 0 0 20px; font-weight: 600; font-size: 13px; }
.panel { border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255,255,255,.34); overflow: hidden; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 16px 19px; border-bottom: 1px solid var(--border); }
.section-heading h2 { font-size: 21px; font-weight: 900; font-style: italic; margin: 0;  }
.muted { color: var(--muted); font-size: 13px; }
.film-layout { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(300px,.95fr); align-items: start; gap: 20px; }
.film-layout > div { display: grid; gap: 14px; min-width: 0; }
.video-stage { aspect-ratio: 16 / 9; background: linear-gradient(145deg, #171719, #333331); color: white; display: grid; place-items: center; padding: 25px; text-align: center; }
.video-message { max-width: 440px; }
.video-message p { color: #d0c6bf; font-size: 13px; }
.play-glyph { color: var(--orange); font-size: 54px; }
.stats-panel p { padding: 0 19px 8px; }
.tabs { display: flex; gap: 12px; justify-content: space-around; border-bottom: 1px solid var(--border); padding: 16px; font-weight: 700; }
.tabs strong { background: var(--orange); color: #fff; padding: 7px 17px; border-radius: 9px; margin: -7px; }
.side-panel h3 { font-size: 15px; margin: 20px 17px 10px; }
.record-list { display: grid; gap: 8px; padding: 12px; }
.record-row { display: flex; align-items: center; gap: 13px; padding: 13px; border: 1px solid var(--border); border-radius: 10px; background: #fff8f3; }
.record-icon { border-radius: 8px; background: #ffe0cc; color: var(--orange); padding: 7px 10px; font-weight: 900; }
.record-row strong { display: block; font-size: 14px; }
.record-row small { display: block; color: var(--muted); margin-top: 3px; }
.empty-state { margin: 20px; padding: 34px; border: 1px dashed var(--border); border-radius: 10px; text-align: center; color: var(--muted); }
.listing-panel { max-width: 1000px; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: linear-gradient(140deg, #161616, #39302d); }
.login-card { width: min(420px, 100%); padding: 34px; border-radius: 18px; background: var(--paper); }
.login-logo { width: 190px; max-height: 125px; object-fit: contain; display: block; margin: 0 auto 15px; }
.login-card h1 { text-align: center; font-style: normal; font-size: 30px; }
.login-card p { text-align: center; color: var(--muted); }
.login-card label { display: grid; gap: 4px; margin-top: 18px; font-weight: 600; }
.login-card input { width: 100%; }
.primary-button { width: 100%; margin-top: 24px; background: var(--orange); color: white; padding: 12px; border: 0; border-radius: 10px; cursor: pointer; font-weight: 700; }
.form-error { color: #9a1414 !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1020px) { .film-layout { grid-template-columns: 1fr; } .user-name { display: none; } }
@media (max-width: 700px) { .sidebar { position: static; width: 100%; padding: 8px 12px; } .sidebar .brand { padding: 0; justify-content: start; } .brand img { height: 52px; width: 120px; } .sidebar nav { display: flex; overflow: auto; } .nav-heading, .sidebar-bottom { display: none; } .nav-link { flex: none; font-size: 12px; } .workspace { margin: 0; } .topbar { flex-wrap: wrap; padding: 16px; } .content { padding: 15px; } .top-actions { width: 100%; justify-content: space-between; } .top-actions select { width: 200px; max-width: 58vw; } }

/* HOOPA Phase 2 visual refinements */
.sidebar { width: 205px; }
.workspace { margin-left: 205px; }
.brand img { width: 168px; height: 85px; }
.film-layout { grid-template-columns: minmax(0, 1.65fr) minmax(310px, .95fr); }
@media (max-width: 700px) { .sidebar { width: 100%; } .workspace { margin-left: 0; } }


.profile-library {
    margin-bottom: 18px;
}

.profile-library__content {
    display: grid;
    gap: 10px;
    padding: 16px;
}

.profile-library__row {
    border: 1px solid var(--border);
    border-radius: 10px;
    display: grid;
    gap: 4px;
    padding: 12px;
}

.profile-library__row small {
    color: var(--muted);
}

.register-note {
    font-size: 12px;
}

.login-card a {
    color: var(--orange-dark);
    font-weight: 700;
}
