* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #000000;
    --bg2: #0b101a;
    --card: #101722;
    --card-hover: #151e2b;
    --text: #ffffff;
    --muted: #8994a5;
    --blue: #2f8cff;
    --blue2: #1769d1;
    --border: rgba(255,255,255,.08);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(0,0,0,.48), rgba(0,0,0,.68)),
        url("assets/galaxy-background.jpg");
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    background-attachment: fixed;
    color: var(--text);
    font-family: "Poppins", sans-serif;
    overflow-x: hidden;
}

button,
input,
select {
    font-family: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1400px, calc(100% - 60px));
    margin: auto;
}

/* ================= MAIN SITE SCROLLBAR ================= */

html {
    scrollbar-width: thin;
    scrollbar-color: #263449 transparent;
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #263449;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2f8cff;
}

/* ================= HEADER ================= */

.header {
    height: 76px;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;

    background: rgba(255, 255, 255, .035);
    -webkit-backdrop-filter: blur(20px) saturate(105%);
    backdrop-filter: blur(20px) saturate(105%);

    border-bottom: 1px solid rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07);
}

.header-inner {
    width: min(1500px, calc(100% - 40px));
    height: 100%;
    margin: auto;

    display: flex;
    align-items: center;
    gap: 28px;
}


/* LOGO */

.logo {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1px;
    white-space: nowrap;
}

.logo span {
    color: #ffffff;
}


/* NAV */

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.desktop-nav > a,
.nav-dropdown > button {
    color: #aeb8c7;
    font-size: 14px;
    background: none;
    border: none;
    transition: .2s;
}

.schedule-header-link {
    margin-left: auto;
    padding: 9px 14px;
    border: 1px solid rgba(138, 184, 255, .24);
    border-radius: 8px;
    color: #d7e7ff;
    background: rgba(47, 140, 255, .11);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s, border-color .2s;
}

.schedule-header-link:hover {
    border-color: rgba(138, 184, 255, .5);
    background: rgba(47, 140, 255, .2);
}

.desktop-nav > a:hover,
.desktop-nav > a.active,
.nav-dropdown > button:hover {
    color: white;
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown > button {
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-dropdown i {
    font-size: 10px;
}

.dropdown-menu {
    position: absolute;
    top: 38px;
    left: -15px;

    width: 420px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    padding: 18px;

    background: rgba(12,18,29,.98);
    border: 1px solid var(--border);
    border-radius: 12px;

    box-shadow: 0 20px 50px rgba(0,0,0,.5);

    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition: .2s;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    padding: 9px;
    color: var(--muted);
    font-size: 13px;
    border-radius: 7px;
}

.dropdown-menu a:hover {
    background: rgba(255,255,255,.06);
    color: white;
}


/* SEARCH */

.header-search {
    position: relative;
    margin-left: auto;

    width: 270px;
}

.header-search > i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);

    color: #697589;
}

.header-search input {
    width: 100%;
    height: 42px;

    background: rgba(255,255,255,.06);

    border: 1px solid transparent;
    border-radius: 9px;

    outline: none;

    color: white;
    padding: 0 40px;

    transition: .2s;
}

.header-search input:focus {
    border-color: rgba(47,140,255,.5);
    background: rgba(255,255,255,.08);
}

#clearSearch {
    position: absolute;
    right: 10px;
    top: 50%;

    transform: translateY(-50%);

    background: none;
    border: none;

    color: #667286;

    display: none;
}

.search-results {
    position: absolute;

    top: 50px;
    left: 0;

    width: 100%;

    background: #101722;

    border: 1px solid var(--border);
    border-radius: 10px;

    overflow: hidden;

    display: none;

    box-shadow: 0 20px 40px rgba(0,0,0,.5);
}

.search-result {
    display: flex;
    gap: 12px;

    padding: 10px;

    cursor: pointer;
}

.search-result:hover {
    background: rgba(255,255,255,.06);
}

.search-result img {
    width: 42px;
    height: 58px;

    object-fit: cover;
    border-radius: 5px;
}

.search-result-info {
    min-width: 0;
}

.search-result-info strong {
    font-size: 12px;

    display: block;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-info span {
    color: var(--muted);
    font-size: 10px;
}


/* MENU */

.menu-btn,
.filter-btn {
    display: none;

    background: none;
    border: none;

    color: white;

    font-size: 19px;
}

.profile-header-link {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    color: white;
    background: rgba(255,255,255,.07);
    font-size: 13px;
    transition: background .2s, border-color .2s;
}

.profile-header-link:hover {
    border-color: rgba(255,255,255,.42);
    background: rgba(255,255,255,.16);
}


/* ================= HERO ================= */

.hero {
    height: 650px;

    position: relative;

    overflow: hidden;

    margin-bottom: 30px;
}

.hero-background {
    position: absolute;
    inset: 0;

    background-color: #09090d;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    filter: brightness(.78);
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            #000000 0%,
            rgba(0,0,0,.88) 25%,
            rgba(0,0,0,.25) 60%,
            rgba(0,0,0,.04) 100%
        ),
        linear-gradient(
            0deg,
            #000000 0%,
            transparent 48%
        );
}

.hero-content {
    position: relative;
    height: 100%;

    display: flex;
    align-items: center;
}

.hero-info {
    max-width: 650px;

    padding-top: 80px;
}

.hero-spotlight-controls {
    position: absolute;
    top: 62%;
    right: 0;
    display: grid;
    gap: 6px;
    transform: translateY(-50%);
}

.hero-spotlight-controls button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 7px;
    color: #8e9aad;
    background: rgba(12,12,14,.9);
    font-size: 17px;
    transition: color .2s, background .2s, transform .2s;
}

.hero-spotlight-controls button:hover {
    color: white;
    background: var(--blue2);
    transform: translateX(-2px);
}

.hero-label {
    color: var(--blue);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 12px;
}

.hero h1 {
    font-size: clamp(30px, 3.2vw, 46px);

    line-height: 1.05;

    margin-bottom: 18px;
}

.hero-meta {
    display: flex;
    gap: 15px;

    color: #c3ccd8;

    font-size: 13px;

    margin-bottom: 20px;
}

.hero-info p {
    color: #a8b1bf;

    font-size: 14px;
    line-height: 1.8;

    max-width: 600px;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;

    overflow: hidden;

    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    gap: 12px;
}

.btn-primary,
.btn-secondary {
    border: none;

    border-radius: 8px;

    height: 45px;

    padding: 0 20px;

    font-size: 13px;
    font-weight: 600;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    transition: .2s;
}

.btn-primary {
    background: var(--blue);
    color: white;
}

.btn-primary:hover {
    background: #469aff;
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255,255,255,.1);
    color: white;

    border: 1px solid rgba(255,255,255,.1);
}

.btn-secondary:hover {
    background: rgba(255,255,255,.17);
}

/* ================= SECTIONS ================= */

.main-content {
    padding-bottom: 100px;
}

.schedule-page-main {
    min-height: calc(100vh - 90px);
    padding-top: 112px;
}

.anime-section {
    margin-bottom: 55px;
}

.section-header {
    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    margin-bottom: 20px;
}

.section-small {
    display: block;

    color: var(--blue);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 4px;
}

.section-header h2 {
    font-size: 23px;
}

.view-all {
    border: none;
    background: none;

    color: #7d899a;

    font-size: 12px;
}

.view-all:hover {
    color: white;
}

/* ================= AIRING SCHEDULE ================= */

#schedule {
    scroll-margin-top: 96px;
}

.schedule-heading {
    align-items: center;
}

.schedule-heading h2 {
    margin-bottom: 3px;
}

.schedule-heading h1 {
    margin: 0 0 3px;
    font-size: 23px;
    font-weight: 600;
}

.schedule-subtitle {
    color: var(--muted);
    font-size: 12px;
}

.schedule-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    padding: 0 2px 3px 16px;
    text-align: right;
}

.schedule-clock-label {
    color: #64738a;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.schedule-clock strong {
    color: #a9ceff;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}

.schedule-clock > span:last-child {
    max-width: 240px;
    color: #71819a;
    font-size: 10px;
}

.schedule-board {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 13px;
    background: rgba(255, 255, 255, .035);
    -webkit-backdrop-filter: blur(20px) saturate(105%);
    backdrop-filter: blur(20px) saturate(105%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 48px rgba(0, 0, 0, .16);
}

.schedule-week-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 14px 0;
}

.schedule-week-control,
.schedule-today-button {
    min-height: 30px;
    border: 1px solid rgba(163, 190, 231, .1);
    border-radius: 7px;
    color: #a7b5c9;
    background: rgba(255, 255, 255, .035);
    transition: color .2s, background .2s, border-color .2s;
}

.schedule-week-control {
    width: 32px;
    font-size: 10px;
}

.schedule-today-button {
    padding: 0 11px;
    font-size: 10px;
}

.schedule-week-control:hover,
.schedule-today-button:hover {
    border-color: rgba(65, 159, 255, .35);
    color: white;
    background: rgba(47, 140, 255, .13);
}

.schedule-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    padding: 5px 12px 0;
}

.schedule-day {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 4px 11px;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 6px 6px 0 0;
    color: #74839a;
    background: transparent;
    transition: color .2s, background .2s, border-color .2s;
}

.schedule-day:hover {
    color: #dce8fb;
    background: rgba(255, 255, 255, .035);
}

.schedule-day.is-selected {
    border-bottom-color: #32aaff;
    color: #eef6ff;
    background: rgba(41, 137, 240, .075);
}

.schedule-day.is-today .schedule-day-date,
.schedule-day.is-today .schedule-day-count {
    color: #54baff;
}

.schedule-day-date {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.schedule-day-name {
    color: #a9b8cd;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
}

.schedule-day-count {
    color: #697991;
    font-size: 9px;
}

.schedule-toolbar {
    min-height: 43px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 14px 10px;
}

.schedule-filters {
    display: flex;
    gap: 6px;
}

.schedule-filter {
    min-height: 26px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #93a6c0;
    background: rgba(31, 47, 68, .72);
    font-size: 10px;
    transition: background .2s, color .2s;
}

.schedule-filter:hover,
.schedule-filter.is-active {
    color: white;
    background: #249fd4;
}

.schedule-day-summary {
    color: #8190a5;
    font-size: 10px;
    text-align: right;
}

.schedule-day-summary strong {
    color: #a8d1ff;
    font-weight: 600;
}

.schedule-list {
    min-height: 110px;
    padding: 7px 0 5px;
}

.schedule-message {
    min-height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 24px;
    color: #91a0b5;
    font-size: 12px;
    text-align: center;
}

.schedule-message strong {
    color: #e5edf9;
}

.schedule-message-copy {
    max-width: 420px;
    line-height: 1.7;
}

.schedule-spinner {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    border: 2px solid rgba(255, 255, 255, .13);
    border-top-color: #45adff;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

.schedule-now-row,
.schedule-entry {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 22px;
    padding-right: 14px;
    padding-left: 0;
}

.schedule-now-row {
    align-items: center;
    min-height: 24px;
    margin-bottom: 4px;
}

.schedule-now-time,
.schedule-entry-time {
    color: #8b9ab0;
    font-size: 11px;
    font-weight: 600;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.schedule-now-time {
    color: #42baff;
    font-size: 10px;
}

.schedule-now-mark {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #48baff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .7px;
}

.schedule-now-mark::before {
    width: 34px;
    height: 1px;
    background: #32aaff;
    content: "";
}

.schedule-entry {
    position: relative;
    align-items: start;
    padding-bottom: 10px;
}

.schedule-entry-fallback {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 0;
}

.schedule-entry-fallback::before {
    display: none;
}

.schedule-entry-fallback .schedule-entry-time {
    display: none;
}

.schedule-entry::before {
    position: absolute;
    top: 15px;
    bottom: -5px;
    left: 92px;
    width: 1px;
    background: rgba(110, 139, 176, .21);
    content: "";
}

.schedule-entry:last-child::before {
    display: none;
}

.schedule-entry-time {
    position: relative;
    padding-top: 15px;
}

.schedule-entry-time::after {
    position: absolute;
    top: 17px;
    right: -17px;
    width: 8px;
    height: 8px;
    border: 2px solid #53657d;
    border-radius: 50%;
    background: #0c131e;
    content: "";
}

.schedule-card {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 15px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 11px;
    color: inherit;
    background: rgba(255, 255, 255, .035);
    -webkit-backdrop-filter: blur(16px) saturate(105%);
    backdrop-filter: blur(16px) saturate(105%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055);
    text-align: left;
    transition: background .2s, border-color .2s, transform .2s;
}

.schedule-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, .24);
    background: rgba(255, 255, 255, .075);
}

.schedule-poster {
    width: 74px;
    height: 101px;
    display: block;
    border-radius: 6px;
    background: #1b2839;
    object-fit: cover;
}

.schedule-card-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 1px 2px 1px 0;
}

.schedule-card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.schedule-card-title {
    overflow: hidden;
    color: #f1f5fc;
    font-size: 13px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-countdown {
    flex: 0 0 auto;
    color: #9cc9ff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.schedule-episode {
    width: fit-content;
    padding: 2px 6px;
    border-radius: 4px;
    color: #69b8ff;
    background: rgba(47, 140, 255, .12);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
}

.schedule-description {
    display: -webkit-box;
    overflow: hidden;
    color: #8193ac;
    font-size: 10px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.schedule-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.schedule-tag {
    padding: 2px 8px;
    border-radius: 999px;
    color: #9baac0;
    background: rgba(37, 51, 71, .8);
    font-size: 9px;
}

.schedule-entry:last-child {
    padding-bottom: 0;
}


/* ================= CARDS ================= */

.anime-row {
    display: grid;

    grid-auto-flow: column;
    grid-auto-columns: 180px;

    overflow-x: auto;

    gap: 16px;

    padding-bottom: 10px;

    scrollbar-width: thin;
    scrollbar-color: var(--blue) rgba(255,255,255,.08);
}

.anime-row::-webkit-scrollbar {
    height: 8px;
}

.anime-row::-webkit-scrollbar-track {
    border-radius: 999px;
    background: rgba(255,255,255,.08);
}

.anime-row::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--blue);
    background-clip: padding-box;
}

.anime-row::-webkit-scrollbar-thumb:hover {
    background: #58a3ff;
    background-clip: padding-box;
}

.anime-grid {
    display: grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap: 22px;
}

.anime-card {
    position: relative;

    cursor: pointer;

    min-width: 0;
}

.card-image {
    position: relative;

    aspect-ratio: 2 / 3;

    overflow: hidden;

    border-radius: 8px;

    background: var(--card);
}

.card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: .35s;
}

.anime-card:hover .card-image img {
    transform: scale(1.07);
}

.card-overlay {
    position: absolute;
    inset: 0;

    background: linear-gradient(
        0deg,
        rgba(0,0,0,.75),
        transparent 55%
    );

    opacity: 0;

    transition: .25s;
}

.anime-card:hover .card-overlay {
    opacity: 1;
}

.play-icon {
    position: absolute;

    top: 50%;
    left: 50%;

    transform: translate(-50%, -40%);

    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: var(--blue);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;

    transition: .25s;
}

.anime-card:hover .play-icon {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.card-score {
    position: absolute;

    top: 8px;
    left: 8px;

    background: rgba(5,8,13,.85);

    padding: 4px 7px;

    border-radius: 5px;

    font-size: 10px;
}

.card-info {
    padding-top: 9px;
}

.card-title {
    font-size: 13px;
    font-weight: 600;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    margin-top: 4px;

    color: var(--muted);

    font-size: 10px;

    display: flex;
    gap: 7px;
}


/* ================= FILTER ================= */

.filter-panel {
    margin-bottom: 50px;

    padding: 18px;

    background: rgba(255,255,255,.035);

    border: 1px solid rgba(255,255,255,.14);

    border-radius: 10px;
    -webkit-backdrop-filter: blur(18px) saturate(105%);
    backdrop-filter: blur(18px) saturate(105%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 18px 48px rgba(0,0,0,.15);
}

.filter-title {
    font-size: 14px;
    font-weight: 600;

    margin-bottom: 15px;

    display: flex;
    gap: 8px;
    align-items: center;
}

.filter-title i {
    color: var(--blue);
}

.filters {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr) 120px;

    gap: 10px;
}

.filters select,
.filters button {
    height: 42px;

    border-radius: 7px;

    border: 1px solid var(--border);

    background: rgba(8,13,21,.78);

    color: #b9c2cf;

    padding: 0 12px;

    outline: none;
}

.filters button {
    background: var(--blue);
    color: white;
    border: none;
    font-weight: 600;
}


/* ================= PAGINATION ================= */

.pagination {
    display: flex;

    justify-content: center;
    align-items: center;

    gap: 15px;

    margin-top: 35px;
}

.pagination button {
    width: 38px;
    height: 38px;

    border: 1px solid var(--border);

    border-radius: 7px;

    background: var(--card);

    color: white;
}

.pagination button:hover {
    background: var(--blue);
}

.pagination span {
    color: #a8b2c1;
}


/* ================= MOBILE MENU ================= */

.mobile-menu {
    position: fixed;

    top: 0;
    left: 0;

    width: 280px;
    height: 100vh;

    background: #0b1019;

    z-index: 2000;

    padding: 20px;

    transform: translateX(-100%);

    transition: .3s;

    overflow-y: auto;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;

    margin-bottom: 25px;
}

.mobile-menu-header button {
    border: none;
    background: none;
    color: white;
    font-size: 20px;
}

.mobile-menu > a {
    display: block;

    padding: 12px 5px;

    color: #9ca8b8;

    font-size: 14px;
}

.mobile-menu > a i {
    width: 25px;
}

.mobile-menu > a:hover {
    color: white;
}

.mobile-section-title {
    color: white;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 1px;

    margin: 25px 0 5px;
}

.menu-overlay {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.6);

    z-index: 1500;

    display: none;
}

.menu-overlay.active {
    display: block;
}


/* ================= MODAL ================= */

.anime-modal {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,.8);

    backdrop-filter: blur(10px);

    z-index: 3000;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.anime-modal.show {
    display: flex;
}

.modal-content {
    width: min(900px, 100%);

    max-height: 90vh;

    overflow-y: auto;
    
    overflow-x: hidden;

    position: relative;

    background: rgba(255, 255, 255, .025);

    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);

    border: 1px solid rgba(255, 255, 255, .12);

    border-radius: 15px;

    box-shadow: inset 0 1px rgba(255, 255, 255, .07), 0 30px 80px rgba(0,0,0,.55);
}

.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: transparent;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #263449;
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #2f8cff;
}

.modal-backdrop {
    height: 230px;

    background-size: cover;
    background-position: center;

    opacity: .45;
}

.modal-info {
    display: grid;

    grid-template-columns: 170px 1fr;

    gap: 25px;

    padding: 25px;
}

.modal-info img {
    width: 170px;

    aspect-ratio: 2/3;

    object-fit: cover;

    border-radius: 8px;
}

.modal-format {
    color: var(--blue);

    font-size: 11px;

    font-weight: 700;
}

.modal-info h2 {
    font-size: 28px;

    margin: 7px 0;
}

.modal-score {
    color: #ffc94d;

    font-size: 13px;

    margin-bottom: 15px;
}

.modal-info p {
    color: #9da8b7;

    font-size: 13px;

    line-height: 1.7;

    margin-bottom: 18px;
}

.modal-genres {
    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-bottom: 20px;
}

.genre-tag {
    background: rgba(47,140,255,.1);

    color: #7db8ff;

    padding: 5px 9px;

    border-radius: 5px;

    font-size: 10px;
}

.modal-close {
    position: absolute;

    right: 15px;
    top: 15px;

    z-index: 10;

    width: 35px;
    height: 35px;

    border: none;

    border-radius: 50%;

    background: rgba(0,0,0,.6);

    color: white;

    font-size: 16px;
}


/* ================= LOADING ================= */

.loading {
    position: fixed;
    inset: 0;

    background: rgba(5,8,13,.7);

    backdrop-filter: blur(5px);

    z-index: 5000;

    display: none;

    align-items: center;
    justify-content: center;
}

.loading.show {
    display: flex;
}

.spinner {
    width: 40px;
    height: 40px;

    border: 3px solid rgba(255,255,255,.15);

    border-top-color: var(--blue);

    border-radius: 50%;

    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* ================= RESPONSIVE ================= */

@media(max-width:1200px) {

    .anime-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
    }

    .desktop-nav {
        gap: 15px;
    }

    .header-search {
        width: 230px;
    }
}


@media(max-width:900px) {

    .desktop-nav {
        display: none;
    }

    .menu-btn,
    .filter-btn {
        display: block;
    }

    .filter-btn {
        margin-left: 0;
    }

    .header-search {
        width: auto;
        flex: 1;
        max-width: 350px;
    }

    .profile-header-link {
        width: 33px;
        height: 33px;
    }

    .anime-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .filters {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .filters button {
        grid-column: span 2;
    }
}


@media(max-width:600px) {

    .container {
        width: calc(100% - 30px);
    }

    .header-inner {
        width: calc(100% - 24px);
        gap: 12px;
    }

    .logo {
        font-size: 18px;
    }

    .header-search {
        max-width: none;
    }

    .profile-header-link {
        width: 30px;
        height: 30px;
        font-size: 11px;
    }

    .hero {
        height: 560px;
    }

    .hero-info {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-info p {
        font-size: 12px;
    }

    .hero-info {
        max-width: calc(100% - 54px);
    }

    .hero-spotlight-controls button {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .anime-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 13px;
    }

    .anime-row {
        grid-auto-columns: 145px;
        gap: 12px;
    }

    .section-header h2 {
        font-size: 19px;
    }

    .schedule-heading h1 {
        font-size: 19px;
    }

    .schedule-heading {
        align-items: flex-start;
    }

    .schedule-clock {
        padding-left: 8px;
    }

    .schedule-clock strong {
        font-size: 18px;
    }

    .schedule-days {
        display: flex;
        overflow-x: auto;
        padding-right: 8px;
        padding-left: 8px;
        scrollbar-width: thin;
        scrollbar-color: #344863 transparent;
    }

    .schedule-days::-webkit-scrollbar {
        height: 4px;
    }

    .schedule-day {
        min-width: 65px;
        flex: 1 0 65px;
    }

    .schedule-day-name {
        font-size: 16px;
    }

    .schedule-toolbar {
        padding-right: 10px;
        padding-left: 10px;
    }

    .schedule-now-row,
    .schedule-entry {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 16px;
        padding-right: 8px;
    }

    .schedule-entry::before {
        left: 74px;
    }

    .schedule-entry-time::after {
        right: -14px;
        width: 7px;
        height: 7px;
    }

    .schedule-card {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 10px;
        padding: 8px;
    }

    .schedule-poster {
        width: 58px;
        height: 82px;
    }

    .schedule-card-title {
        font-size: 11px;
    }

    .schedule-countdown {
        font-size: 9px;
    }

    .schedule-description {
        font-size: 9px;
    }

    .filter-panel {
        padding: 13px;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .filters button {
        grid-column: auto;
    }

    .modal-info {
        grid-template-columns: 100px 1fr;

        gap: 15px;

        padding: 18px;
    }

    .modal-info img {
        width: 100px;
    }

    .modal-info h2 {
        font-size: 19px;
    }

    .modal-info p {
        max-height: 100px;
        overflow: hidden;
    }
}


@media(max-width:420px) {

    .logo {
        font-size: 16px;
    }

    .header-search input {
        font-size: 11px;
    }

    .anime-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .hero {
        height: 530px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .schedule-heading {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .schedule-clock {
        align-items: flex-start;
        padding-left: 0;
        text-align: left;
    }

    .schedule-clock-label {
        display: none;
    }

    .schedule-clock strong {
        font-size: 16px;
    }

    .schedule-week-toolbar {
        padding-right: 8px;
        padding-left: 8px;
    }

    .schedule-card-topline {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }
}

/* ================= GALAXY SITE FOOTER ================= */

.site-footer {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    margin-top: 40px;
    border-top: 1px solid rgba(154, 184, 230, .16);
    background: url("../voidanime_login/background.jpg") center 48% / cover no-repeat;
}

.site-footer-inner {
    width: min(1400px, calc(100% - 60px));
    margin: 0 auto;
    padding: 30px 0 22px;
}

.site-footer-top,
.site-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-footer-brand-block p {
    margin: 9px 0 0;
    color: rgba(205, 216, 235, .58);
    font-size: 12px;
}

.site-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #f4f7fc;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.7px;
}

.site-footer-brand > span:last-child > span { color: #ffffff; }

.site-footer-join {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 17px;
    padding: 0 15px;
    border: 1px solid rgba(175, 202, 244, .24);
    border-radius: 999px;
    color: #f6f8fc;
    background: rgba(11, 18, 30, .74);
    font-size: 12px;
    font-weight: 600;
    transition: border-color .2s, background .2s, transform .2s;
}

.site-footer-join:hover {
    transform: translateY(-1px);
    border-color: rgba(120, 171, 255, .62);
    background: rgba(37, 69, 113, .6);
}

.site-footer-join i { color: #9ec5ff; font-size: 11px; }

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 23px;
}

.site-footer-links a {
    color: rgba(190, 207, 233, .72);
    font-size: 11px;
    transition: color .2s;
}

.site-footer-links a:hover { color: #fff; }

.site-footer-bottom {
    margin-top: 19px;
    padding-top: 13px;
    border-top: 1px solid rgba(190, 207, 233, .11);
    color: rgba(176, 193, 218, .48);
    font-size: 10px;
}

@media (max-width: 600px) {
    .site-footer { margin-top: 28px; }
    .site-footer-inner { width: calc(100% - 30px); padding: 24px 0 18px; }
    .site-footer-top { align-items: flex-start; flex-direction: column; gap: 18px; }
    .site-footer-links { gap: 12px 18px; margin-top: 21px; }
    .site-footer-bottom { align-items: flex-start; flex-direction: column; gap: 6px; }
}
