:root {
    --bg: #000000;
    --bg-soft: #050505;
    --panel: #0c0c0c;
    --panel-hover: #121212;
    --border: #202020;
    --border-light: #303030;
    --text: #f1f1f1;
    --muted: #8a8a8a;
    --muted-2: #5f5f5f;
    --accent: #bdbdbd;
    --accent-hover: #dedede;
    --sidebar-width: 235px;

    --gold: #e7bd45;
    --silver: #bfc5ce;
    --bronze: #b97948;

    --rating-blue: #1769c2;
    --rating-dark-green: #155d35;
    --rating-green: #269447;
    --rating-yellow: #c49b18;
    --rating-orange: #d76d1d;
    --rating-red: #b83232;
    --rating-purple: #6739a8;
    --rating-black: #090909;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100%;
    background: #000000;
    color: var(--text);
    font-family: sans-serif;
    font-size: 14px;
}

button,
input,
select {
    font: inherit;
    font-family: sans-serif;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

img {
    display: block;
    max-width: 100%;
}

.hidden {
    display: none !important;
}


/* =========================
   APP / SIDEBAR
========================= */

.app {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    background: #080808;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
    z-index: 20;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 4px 9px 24px;
}

.brand-title {
    font-size: 14px;
    font-weight: 750;
    letter-spacing: -.2px;
}

.brand-subtitle {
    color: var(--muted);
    font-size: 11px;
    margin-top: 2px;
}

.navigation {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-item {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 11px;
    border-radius: 7px;
    text-align: left;
    transition:
        background .15s ease,
        color .15s ease;
}

.nav-item:hover {
    background: #111111;
    color: var(--text);
}

.nav-item.active {
    background: #181818;
    color: white;
}

.nav-icon {
    width: 18px;
    text-align: center;
    color: inherit;
    font-size: 15px;
}

.sidebar-bottom {
    margin-top: auto;
}

.sync-row {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 9px 12px;
    color: var(--muted);
    font-size: 11px;
}

.sync-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #41bd70;
    box-shadow: 0 0 0 3px rgba(65, 189, 112, .08);
}

.sidebar-action,
.google-button {
    width: 100%;
    min-height: 38px;
    border-radius: 7px;
    margin-top: 6px;
}

.sidebar-action {
    background: #101010;
    color: var(--text);
    border: 1px solid var(--border);
}

.sidebar-action:hover {
    background: #181818;
}

.google-button {
    border: 1px solid var(--border);
    background: #f5f5f5;
    color: #151515;
    font-weight: 650;
}

.google-button:hover {
    background: white;
}

.google-icon {
    display: inline-grid;
    place-items: center;
    width: 22px;
    margin-right: 4px;
    font-weight: 800;
}

.user-account {
    margin-top: 10px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #101010;
}

.account-avatar {
    width: 34px;
    height: 34px;
    object-fit: cover;
    border-radius: 50%;
    float: left;
    margin-right: 9px;
}

.account-details {
    min-height: 34px;
}

.account-name {
    font-weight: 700;
    font-size: 12px;
    padding-top: 2px;
}

.account-email {
    font-size: 10px;
    color: var(--muted);
    margin-top: 2px;
    overflow: visible;
}

.sign-out-button {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    text-align: left;
    padding: 7px 0 0;
}

.sign-out-button:hover {
    color: white;
}


/* =========================
   MAIN
========================= */

.main {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    padding: 34px 42px 55px;
    max-width: 1600px;
    background: #000000;
}

.page {
    display: none;
}

.page.active {
    display: block;
}

.page-header {
    margin-bottom: 26px;
}

.eyebrow {
    color: #bdbdbd;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.page-header h1 {
    margin: 0;
    font-size: 28px;
    letter-spacing: -.8px;
}

.page-header p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
}


/* =========================
   PANELS
========================= */

.panel {
    background: #0c0c0c;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 19px;
    border-bottom: 1px solid var(--border);
}

.panel-header h2,
.section-heading h2 {
    margin: 0;
    font-size: 14px;
    letter-spacing: -.2px;
}

.panel-header p,
.section-heading p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.recent-panel {
    margin-top: 16px;
}

.section-heading {
    margin: 28px 0 13px;
}


/* =========================
   STATS
========================= */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.stat-card {
    background: #0c0c0c;
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 15px 16px;
}

.stat-label {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 750;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -.8px;
    margin-top: 6px;
}

.stat-description {
    color: var(--muted-2);
    font-size: 10px;
    margin-top: 4px;
}


/* =========================
   DASHBOARD DISTRIBUTION
========================= */

.distribution {
    padding: 18px 19px 20px;
}

.distribution-row {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) 48px;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.distribution-label {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.distribution-bar {
    height: 8px;
    background: #1c1c1c;
    border-radius: 20px;
    overflow: hidden;
}

.distribution-fill {
    height: 100%;
    border-radius: inherit;
}

.distribution-count {
    text-align: right;
    font-size: 11px;
    color: var(--muted);
}

.summary-list {
    padding: 7px 0;
}

.summary-row {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 54px;
    align-items: center;
    gap: 11px;
    padding: 11px 18px;
}

.summary-avatar {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--border);
}

.summary-name {
    font-weight: 700;
    font-size: 12px;
}

.summary-meta {
    color: var(--muted);
    font-size: 10px;
    margin-top: 2px;
}

.summary-score {
    text-align: right;
    font-weight: 800;
}


/* =========================
   RATING COLOURS
   THESE REMAIN COLOURED
========================= */

.rating-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 30px;
    padding: 0 8px;
    border-radius: 6px;
    color: white !important;
    font-weight: 850;
    line-height: 1;
    border: 1px solid rgba(255,255,255,.08);
}

.rating-blue {
    background: var(--rating-blue);
}

.rating-dark-green {
    background: var(--rating-dark-green);
}

.rating-green {
    background: var(--rating-green);
}

.rating-yellow {
    background: var(--rating-yellow);
}

.rating-orange {
    background: var(--rating-orange);
}

.rating-red {
    background: var(--rating-red);
}

.rating-purple {
    background: var(--rating-purple);
}

.rating-black {
    background: var(--rating-black);
}


/* =========================
   EPISODES
========================= */

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 17px;
}

.search-input,
.filter-select,
.profile-search,
.form-input,
.pov-ranking-select {
    min-height: 38px;
    background: #0d0d0d;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text);
    outline: none;
}

.search-input,
.profile-search,
.form-input {
    padding: 0 12px;
}

.search-input {
    min-width: 260px;
    flex: 1;
}

.filter-select {
    padding: 0 30px 0 11px;
}

.search-input:focus,
.filter-select:focus,
.profile-search:focus,
.form-input:focus,
.pov-ranking-select:focus {
    border-color: #666666;
    box-shadow: 0 0 0 2px rgba(255,255,255,.05);
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
}

.video-card {
    background: #0c0c0c;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition:
        border-color .15s ease,
        transform .15s ease;
}

.video-card:hover {
    border-color: var(--border-light);
    transform: translateY(-1px);
}

.video-thumbnail {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #0d0d0d;
}

.video-card-content {
    padding: 12px;
}

.video-pov {
    color: #a9a9a9;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.video-title {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 700;
    min-height: 32px;
}

.video-date {
    color: var(--muted);
    font-size: 10px;
    margin-top: 6px;
}

.video-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    margin-top: 12px;
}

.rate-button,
.small-button,
.primary-button,
.danger-button {
    border-radius: 8px;
    min-height: 32px;
    padding: 0 11px;
    border: 1px solid transparent;
    font-size: 11px;
    font-weight: 700;
}

.rate-button,
.small-button {
    background: #151515;
    border-color: #282828;
    color: var(--text);
}

.rate-button:hover,
.small-button:hover {
    background: #1d1d1d;
}

.primary-button {
    background: #d0d0d0;
    border-color: #d0d0d0;
    color: #080808;
}

.primary-button:hover {
    background: #eeeeee;
    border-color: #eeeeee;
}

.danger-button {
    background: rgba(190,48,48,.12);
    border-color: rgba(190,48,48,.35);
    color: #ff7c7c;
}

.danger-button:hover {
    background: rgba(190,48,48,.2);
}

.video-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.no-rating {
    color: var(--muted-2);
    font-size: 10px;
}


/* =========================
   RECENT / RANKED EPISODES
========================= */

.episode-list {
    padding: 5px 0;
}

.episode-row {
    display: grid;
    grid-template-columns: 32px 74px minmax(0, 1fr) 90px 65px;
    align-items: center;
    gap: 12px;
    padding: 9px 17px;
    border-bottom: 1px solid rgba(255,255,255,.035);
}

.episode-row:last-child {
    border-bottom: 0;
}

.episode-row:hover {
    background: rgba(255,255,255,.018);
}

.episode-rank {
    font-weight: 850;
    text-align: center;
    color: white;
}

.episode-rank.rank-gold {
    color: var(--gold);
}

.episode-rank.rank-silver {
    color: var(--silver);
}

.episode-rank.rank-bronze {
    color: var(--bronze);
}

.episode-thumb {
    width: 74px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 5px;
}

.episode-info {

    min-width: 0;
    overflow: visible;

}

.episode-title {

    font-weight: 700;
    font-size: 11px;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    max-width: none;

}

.arc-ranking-name {

    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    max-width: none;

}

.arc-full-name {

    white-space: nowrap;
    overflow: visible;
    text-overflow: unset;
    word-break: normal;

}

.episode-subtitle {
    color: var(--muted);
    font-size: 9px;
    margin-top: 3px;
}

.episode-date {
    color: var(--muted);
    font-size: 9px;
    text-align: right;
}

.episode-score {
    text-align: right;
}

.arc-full-name {

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: normal;

}

#overallArcRankingList {
    transition: .2s ease;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.collapsible-header h2 {
    margin: 0;
}

.collapsible-header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:15px;
}


/* =========================
   RATINGS PAGE
========================= */

.ratings-page {
    max-width: none;
}

.ratings-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.ratings-empty,
.empty-state {
    border: 1px dashed var(--border-light);
    background: #0c0c0c;
    border-radius: 8px;
    padding: 35px;
    text-align: center;
    color: var(--muted);
}

.rating-page-row {
    display: grid;
    grid-template-columns: 34px 74px minmax(0, 1fr) 95px 70px;
    align-items: center;
    gap: 13px;
    padding: 10px 13px;
    background: #0c0c0c;
    border: 1px solid var(--border);
    border-bottom: 0;
}

.rating-page-row:first-of-type {
    border-radius: 8px 8px 0 0;
}

.rating-page-row:last-of-type {
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 8px 8px;
}

.rating-page-rank {
    font-weight: 850;
    text-align: center;
    color: #858585;
}

.rating-page-thumb {
    width: 74px;
    aspect-ratio: 16 / 9;
    border-radius: 5px;
    object-fit: cover;
}

.rating-page-title {
    font-weight: 700;
    font-size: 12px;
}

.rating-page-meta {
    color: var(--muted);
    font-size: 10px;
    margin-top: 3px;
}


/* =========================
   PROFILES
========================= */

.profile-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 18px;
}

.profile-tab {
    background: transparent;
    color: var(--muted);
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
}

.profile-tab:hover {
    color: white;
}

.profile-tab.active {
    color: white;
    border-bottom-color: #888888;
}

.profiles-toolbar {
    display: flex;
    margin-bottom: 14px;
}

.profile-search {
    width: 100%;
    max-width: 420px;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.profile-card {
    width: 100%;
    text-align: left;
    border: 1px solid var(--border);
    background: #0c0c0c;
    border-radius: 11px;
    color: var(--text);
    padding: 12px;
    transition:
        border-color .15s ease,
        background .15s ease;
}

.profile-card:hover {
    background: #121212;
    border-color: #343434;
}

.profile-card-top {
    display: flex;
    align-items: center;
    gap: 9px;
}

.profile-card-avatar {
    width: 38px;
    height: 38px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.profile-card-name {
    font-size: 12px;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.owner-tag {
    display: inline-flex;
    align-items: center;
    height: 17px;
    padding: 0 5px;
    border-radius: 4px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.16);
    color: #bdbdbd;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
    margin-left: 5px;
    vertical-align: 2px;
}

.profile-card-meta {
    color: var(--muted);
    font-size: 10px;
    margin-top: 8px;
}

.profile-detail {
    max-width: 1000px;
}

.profile-detail-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px;
    background: #0c0c0c;
    border: 1px solid var(--border);
    border-radius: 11px;
    margin-bottom: 14px;
}

.profile-detail-avatar {
    width: 58px;
    height: 58px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
}

.profile-detail-name {
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -.4px;
}

.profile-detail-meta {
    color: var(--muted);
    font-size: 11px;
    margin-top: 4px;
}

.profile-favourite-arc {

    margin-top: 6px;

}

.profile-actions {
    margin-left: auto;
    display: flex;
    gap: 7px;
}

.profile-rating-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.profile-rating-row {
    display: grid;
    grid-template-columns: 34px 74px minmax(0, 1fr) 45px;
    gap: 9px;
    align-items: center;
    padding: 8px;
    background: #0c0c0c;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.profile-rating-rank {
    font-weight: 850;
    text-align: center;
    color: #858585;
}

.profile-rating-thumb {
    width: 74px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 5px;
}

.profile-rating-title {
    font-size: 10px;
    font-weight: 700;
}

.profile-rating-meta {
    font-size: 9px;
    color: var(--muted);
    margin-top: 3px;
}

.profile-rating-score {
    text-align: right;
}


/* =========================
   POV RANKING
========================= */

.pov-ranking-card {
    background: #0c0c0c;
    border: 1px solid var(--border);
    border-radius: 11px;
    overflow: hidden;
}

.pov-ranking-list {
    padding: 5px 0;
}

.pov-ranking-item {
    display: grid;
    grid-template-columns: 34px 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border-bottom: 1px solid rgba(255,255,255,.035);
}

.pov-ranking-item:last-child {
    border-bottom: 0;
}

.pov-ranking-position {
    font-weight: 900;
    color: var(--muted);
    text-align: center;
}

.pov-ranking-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.pov-ranking-name {
    font-size: 11px;
    font-weight: 750;
}

.pov-ranking-score {
    font-size: 10px;
    color: var(--muted);
}

.pov-ranking-mode {
    color: var(--muted);
    font-size: 9px;
    padding: 10px 13px;
    border-bottom: 1px solid var(--border);
}

.pov-ranking-editor {
    background: #0c0c0c;
    border: 1px solid var(--border);
    border-radius: 11px;
    overflow: hidden;
    margin-top: 18px;
}

.pov-ranking-editor-header {
    padding: 15px;
    border-bottom: 1px solid var(--border);
}

.pov-ranking-editor-title {
    font-size: 13px;
    font-weight: 800;
}

.pov-ranking-help {
    color: var(--muted);
    font-size: 10px;
    margin-top: 4px;
    line-height: 1.5;
}

.pov-ranking-editor-body {
    padding: 14px;
}

.pov-ranking-editor-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    margin-bottom: 8px;
}

.pov-ranking-editor-row:last-child {
    margin-bottom: 0;
}

.pov-ranking-number {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.pov-ranking-select {
    width: 100%;
    padding: 0 10px;
}

.overall-povs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 24px;
}

.pov-card {
    background: #0c0c0c;
    border: 1px solid var(--border);
    border-radius: 11px;
    overflow: hidden;
}

.pov-card-top {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 14px;
}

.pov-card-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.pov-card-name {
    font-size: 13px;
    font-weight: 800;
}

.pov-card-subs {
    color: var(--muted);
    font-size: 10px;
    margin-top: 3px;
}

.pov-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
}

.pov-card-label {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 750;
}

.pov-card-score {
    font-weight: 850;
}


/* =========================
   PROFILE EDITOR
========================= */

.profile-editor {
    max-width: 1000px;
}

.profile-editor-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 14px;
}

.profile-editor-main {
    min-width: 0;
}

.form-section {
    background: #0c0c0c;
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 17px;
}

.form-section-title {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 15px;
}

.form-label {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 12px;
}

.form-input {
    display: block;
    width: 100%;
    margin-top: 6px;
}

.form-help {
    color: var(--muted-2);
    font-size: 9px;
    margin-top: -4px;
    margin-bottom: 13px;
}

.profile-form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 13px;
}

.profile-status {
    color: var(--muted);
    font-size: 10px;
}

.profile-preview {
    background: #0c0c0c;
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: 15px;
    height: fit-content;
}

.preview-label {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    margin-bottom: 12px;
}

.profile-preview-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px;
    background: #101010;
    border: 1px solid var(--border);
    border-radius: 7px;
}

.profile-preview-avatar {
    width: 42px;
    height: 42px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
}

.profile-preview-name {
    font-size: 12px;
    font-weight: 750;
    overflow-wrap: anywhere;
}


/* =========================
   FOOTER
========================= */

.site-footer {
    text-align: center;
    color: var(--muted-2);
    font-size: 10px;
    padding: 28px 0 4px;
}


/* =========================
   MODAL
========================= */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.82);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 100;
}

.rating-modal {
    position: relative;
    width: min(430px, 100%);
    background: #0d0d0d;
    border: 1px solid #303030;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 25px 80px rgba(0,0,0,.45);
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 10px;
    width: 30px;
    height: 30px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 22px;
}

.modal-close:hover {
    color: white;
}

.rating-modal h2 {
    margin: 0;
    max-width: 340px;
    font-size: 16px;
    line-height: 1.35;
}

.rating-modal-value {
    font-size: 48px;
    font-weight: 900;
    text-align: center;
    letter-spacing: -2px;
    margin: 25px 0 17px;
}

.rating-slider {
    width: 100%;
    accent-color: #999999;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 9px;
    margin-top: 4px;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 25px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1250px) {

    .episodes-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .profiles-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .overall-povs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1050px) {

    .main {
        padding: 30px;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .profile-editor-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 850px) {

    :root {
        --sidebar-width: 0px;
    }

    .sidebar {
        display: none;
    }

    .main {
        margin-left: 0;
        padding: 22px 18px 40px;
    }

    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .episodes-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profiles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-rating-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .main {
        padding: 18px 12px 35px;
    }

    .page-header h1 {
        font-size: 24px;
    }

    .stat-grid {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-value {
        font-size: 20px;
    }

    .episodes-grid {
        grid-template-columns: 1fr;
    }

    .profiles-grid {
        grid-template-columns: 1fr;
    }

    .overall-povs {
        grid-template-columns: 1fr;
    }

    .search-input {
        min-width: 0;
        width: 100%;
    }

    .filters {
        flex-direction: column;
    }

    .filter-select {
        width: 100%;
    }

    .episode-row {
        grid-template-columns: 25px 58px minmax(0, 1fr) 48px;
    }

    .episode-date {
        display: none;
    }

    .episode-thumb {
        width: 58px;
    }

    .profile-detail-header {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .profile-actions {
        width: 100%;
        margin-left: 0;
    }

    .profile-rating-row {
        grid-template-columns: 28px 64px minmax(0, 1fr) 42px;
    }

    .profile-rating-thumb {
        width: 64px;
    }

    .rating-page-row {
        grid-template-columns: 28px 58px minmax(0, 1fr) 50px;
    }

    .rating-page-thumb {
        width: 58px;
    }

    .rating-page-row .rating-page-date {
        display: none;
    }
}

/* =========================
   ARCS PAGE
========================= */

.arcs-page {
    width: 100%;
}


.arc-tabs {

    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--border);

}


.arc-tab {

    background: transparent;
    border: 0;
    color: var(--muted);
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 750;
    border-bottom: 2px solid transparent;

}


.arc-tab:hover {

    color: white;

}


.arc-tab.active {

    color: white;
    border-bottom-color: #888;

}



.arc-section {

    display: none;

}


.arc-section.active {

    display: block;

}



.arc-list {

    background: #0c0c0c;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;

}



.arc-block {

    border-bottom: 1px solid var(--border);

}


.arc-block:last-child {

    border-bottom: 0;

}



.arc-header {

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 16px 18px;

}



.arc-title {

    margin: 0;

    font-size: 15px;
    font-weight: 800;

}



.arc-count {

    color: var(--muted);
    font-size: 11px;

}



.arc-video-list {

    padding: 0 18px 14px;

}



.arc-video {

    display: grid;

    grid-template-columns:
        120px
        minmax(0,1fr);

    gap: 13px;

    align-items: center;

    padding: 10px 0;

    border-top: 1px solid rgba(255,255,255,.04);

}



.arc-video-thumb {

    width: 120px;

    height: 68px;

    object-fit: cover;

    border-radius: 6px;

}



.arc-video-info {

    min-width: 0;

}



.arc-video-title {

    font-size: 13px;

    font-weight: 700;

    line-height: 1.35;

    color: var(--text);

    white-space: normal;

}



.arc-video-pov {

    margin-top: 5px;

    color: var(--muted);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .08em;

}



@media(max-width:700px){

    .arc-video {

        grid-template-columns: 90px minmax(0,1fr);

    }


    .arc-video-thumb {

        width:90px;
        height:50px;

    }

}

/* =========================
   EPISODE PROFILE PAGE
========================= */

.episode-profile {

    background: #0c0c0c;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;

}


.episode-profile-main {

    display: flex;
    gap: 22px;
    padding: 22px;

}


.episode-profile-thumbnail {

    width: 360px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);

}


.episode-profile-info {

    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 15px;

}


.episode-profile-title {

    font-size: 22px;
    font-weight: 850;
    letter-spacing: -.5px;

}



.episode-profile-rating {

    display: flex;
    align-items: center;
    gap: 12px;

}


.episode-rating-score {

    min-width: 60px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #181818;
    border: 1px solid var(--border);

    border-radius: 8px;

    font-size: 22px;
    font-weight: 900;

}


.episode-rating-details {

    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;

}


.episode-your-rating {

    color: var(--muted);
    font-size: 12px;

}


.episode-your-rating span {

    color: var(--text);
    font-weight: 800;

}



/* STATS */

.episode-profile-stats {

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0,1fr));

    border-top: 1px solid var(--border);

}


.episode-stat {

    padding: 16px;

    border-right: 1px solid var(--border);

}


.episode-stat:last-child {

    border-right: 0;

}


.episode-stat-label {

    color: var(--muted);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .1em;

    font-weight: 800;

    margin-bottom: 7px;

}


.episode-stat-value {

    font-size: 13px;

    font-weight: 750;

}



/* MOBILE */

@media(max-width:900px){


    .episode-profile-main {

        flex-direction: column;

    }


    .episode-profile-thumbnail {

        width: 100%;

    }


    .episode-profile-stats {

        grid-template-columns:
            repeat(2,1fr);

    }


}

/* =========================
   FOOTER
========================= */

.site-footer {

    text-align: center;
    color: var(--muted);
    font-size: 11px;
    padding: 35px 20px 15px;
    margin-top: 40px;

}


.footer-text {

    max-width: 700px;
    margin: 0 auto;

}


.footer-text p {

    margin: 8px 0;
    line-height: 1.5;

}


.footer-privacy-button {

    margin-top: 15px;

    background: #101010;
    color: var(--text);

    border: 1px solid var(--border);

    border-radius: 8px;

    padding: 8px 16px;

    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background .15s ease,
        border-color .15s ease;

}


.footer-privacy-button:hover {

    background: #181818;
    border-color: var(--border-light);

}