/* ==========================================================
   ORION NEBULA UI
   Premium Media Center Theme
   ========================================================== */


/* ==========================================================
   VARIABLES
   ========================================================== */

:root {
    --nebula-bg: #050816;
    --nebula-panel: rgba(15, 23, 42, .75);
    --nebula-border: rgba(255, 255, 255, .08);

    --nebula-blue: #00d9ff;
    --nebula-purple: #8b5cf6;
    --nebula-green: #00ff88;

    --nebula-text: #f8fafc;
    --nebula-muted: #94a3b8;

    --nebula-cyan-soft: #22d3ee;
    --nebula-yellow: #facc15;
    --nebula-orange: #f59e0b;
    --nebula-gold: #f5c542;
}


/* ==========================================================
   GLOBAL
   ========================================================== */

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    min-height: 100vh;
    overflow-x: hidden;

    background:
        radial-gradient(
            circle at top,
            #101a3a 0%,
            #050816 45%,
            #020617 100%
        );

    color: var(--nebula-text);
}

main {
    width: 100%;
    min-height: calc(100vh - 80px);
    padding-bottom: 40px;
    box-sizing: border-box;
}


/* ==========================================================
   COMMON PANELS
   ========================================================== */

.nb-panel,
.orion-settings-panel {
    background:
        linear-gradient(
            145deg,
            rgba(15, 23, 42, .95),
            rgba(2, 6, 23, .95)
        );

    border: 1px solid var(--nebula-border);
    border-radius: 24px;
    padding: 28px;
    box-sizing: border-box;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, .35);
}


/* ==========================================================
   PANEL HEADER
   ========================================================== */

.nb-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.nb-panel-title {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 2px;
}

.nb-panel-subtitle {
    margin-top: 6px;
    color: var(--nebula-muted);
}


/* ==========================================================
   SYNC STATUS
   ========================================================== */

.nb-sync-status {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--nebula-green);
    font-weight: 700;
}

.nb-sync-dot {
    width: 10px;
    height: 10px;
    flex-shrink: 0;

    background: var(--nebula-green);
    border-radius: 50%;

    box-shadow:
        0 0 15px var(--nebula-green);
}


/* ==========================================================
   STATISTICS
   ========================================================== */

.nb-stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.nb-stat {
    padding: 22px;
    text-align: center;

    background: rgba(255, 255, 255, .04);
    border: 1px solid var(--nebula-border);
    border-radius: 18px;
}

.nb-stat strong {
    display: block;
    color: #fff;
    font-size: 38px;
}

.nb-stat span {
    display: block;
    margin-top: 8px;

    color: var(--nebula-muted);
    font-size: 12px;
    letter-spacing: 2px;
}

.nb-stat-success strong {
    color: var(--nebula-green);
}


/* ==========================================================
   HOME / SECTIONS
   ========================================================== */

.nebula-section,
.recent-content,
.nebula-page {
    box-sizing: border-box;
    padding-left: 24px;
    padding-right: 24px;
}

.nebula-section {
    margin-bottom: 60px;
}

.recent-content {
    margin-top: 35px;
}

.recent-content .nb-panel-header {
    margin-bottom: 10px;
}

.content-section {
    margin-top: 35px;
}

.content-section h3 {
    margin: 0 0 18px;

    color: var(--nebula-text);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
}


/* ==========================================================
   PAGE
   ========================================================== */

.nebula-page {
    padding-top: 20px;
    padding-bottom: 40px;
}


/* ==========================================================
   GENERIC GRID
   ========================================================== */

.cards-grid {
    display: grid;
    grid-template-columns:
        repeat(auto-fill, minmax(160px, 1fr));
    gap: 22px;
}


/* ==========================================================
   ORION CONTENT CARDS
   ========================================================== */

.orion-card {
    position: relative;
    width: 100%;
    box-sizing: border-box;

    background: #0b1120;
    border: 1px solid var(--nebula-border);
    border-radius: 18px;

    overflow: hidden;

    transition:
        transform .3s ease,
        border-color .3s ease,
        box-shadow .3s ease;
}

.orion-card:hover {
    transform: translateY(-6px);

    border-color:
        rgba(0, 217, 255, .35);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, .45);
}


/* ==========================================================
   CARD IMAGE
   ========================================================== */

.orion-card-image {
    position: relative;

    width: 100%;
    aspect-ratio: 2 / 3;

    overflow: hidden;

    background: #080d1b;
}


/* ==========================================================
   POSTER
   ========================================================== */

.orion-card-poster {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .4s ease;
}

.orion-film-card:hover .orion-card-poster,
.orion-series-card:hover .orion-card-poster {
    transform: scale(1.08);
}


/* ==========================================================
   PLACEHOLDER
   ========================================================== */

.orion-card-placeholder {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #172554,
            #020617
        );

    color: var(--nebula-blue);
    text-align: center;
}

.orion-placeholder-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 3px;
}

.orion-placeholder-subtitle {
    margin-top: 7px;

    color: var(--nebula-muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
}


/* ==========================================================
   FILM CARD
   ========================================================== */

.orion-film-card {
    border-color:
        rgba(0, 217, 255, .10);
}

.orion-film-card:hover {
    border-color:
        rgba(0, 217, 255, .35);
}


/* ==========================================================
   SERIE CARD
   ========================================================== */

.orion-series-card {
    border-color:
        rgba(139, 92, 246, .12);
}

.orion-series-card:hover {
    border-color:
        rgba(139, 92, 246, .40);
}


/* ==========================================================
   LIVE CARD
   ========================================================== */

.orion-live-card {
    background: #080d1b;

    border-color:
        rgba(0, 255, 136, .12);
}

.orion-live-card:hover {
    border-color:
        rgba(0, 255, 136, .40);
}


/* ==========================================================
   LIVE LOGO
   ========================================================== */

.orion-live-logo {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;
    box-sizing: border-box;

    overflow: hidden;
}

.orion-live-logo img {
    display: block;

    width: auto;
    height: auto;

    max-width: 68%;
    max-height: 68%;

    object-fit: contain;

    margin: 0;
    padding: 0;

    transform: none;

    transition:
        transform .4s ease;
}

.orion-live-card:hover .orion-live-logo img {
    transform: scale(1.05);
}

.orion-live-no-logo {
    color: var(--nebula-text);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
}


/* ==========================================================
   CARD OVERLAY
   ========================================================== */

.orion-card-overlay {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    background: rgba(0, 0, 0, .48);

    opacity: 0;

    transition:
        opacity .25s ease;
}

.orion-card:hover .orion-card-overlay {
    opacity: 1;
}

.orion-card-overlay-content {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
}


/* ==========================================================
   DETAILS CENTER
   ========================================================== */

.orion-details-center {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ==========================================================
   DETAILS BUTTON
   ========================================================== */

.orion-card-details-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 11px 18px;

    border: 1px solid rgba(103, 232, 249, .9);
    border-radius: 10px;

    background: rgba(6, 182, 212, .92);

    color: #fff;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: .6px;
    line-height: 1;

    text-decoration: none;
    white-space: nowrap;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .45),
        0 0 18px rgba(6, 182, 212, .25);

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.orion-card-details-button:hover {
    transform:
        translateY(-2px) scale(1.03);

    background: #06b6d4;

    color: #fff;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, .55),
        0 0 25px rgba(6, 182, 212, .55);
}

.orion-card-details-button i,
.orion-card-details-button span {
    display: inline-flex;
    align-items: center;

    margin: 0;
    padding: 0;

    line-height: 1;
}


/* ==========================================================
   CARD INFO
   ========================================================== */

.orion-card-info {
    padding: 14px;
    box-sizing: border-box;
}

.orion-card-info h3 {
    margin: 0;

    color: var(--nebula-text);

    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.orion-card-info p {
    margin: 7px 0 0;

    color: var(--nebula-muted);

    font-size: 13px;
    line-height: 1.3;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ==========================================================
   PAGE HEADER
   ========================================================== */

.nebula-page-header {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 24px;

    padding: 25px 20px;
    margin-bottom: 20px;

    text-align: center;
}

.nebula-page-header h1 {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0;

    color: #fff;

    font-size: 28px;
    font-weight: 850;
    letter-spacing: 1px;
    line-height: 1.2;

    white-space: nowrap;
}

.nebula-page-header h1 i {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    border-radius: 12px;

    background:
        rgba(6, 182, 212, .10);

    border:
        1px solid rgba(6, 182, 212, .25);

    color: var(--nebula-blue);

    font-size: 18px;
}

.nebula-page-header p {
    margin: 0;

    color: var(--nebula-muted);
    font-size: 14px;

    white-space: nowrap;
}


/* ==========================================================
   PAGE CATEGORY COLORS
   ========================================================== */

/* FILM */

.films-page .nebula-page-header h1 i,
.films-page .orion-content-icon i {
    color: var(--nebula-blue);

    text-shadow:
        0 0 8px rgba(0, 217, 255, .65),
        0 0 18px rgba(0, 217, 255, .35);
}


/* SERIE */

.series-page .nebula-page-header h1 i,
.series-page .orion-content-icon i {
    color: var(--nebula-purple);

    text-shadow:
        0 0 8px rgba(139, 92, 246, .65),
        0 0 18px rgba(139, 92, 246, .35);
}


/* LIVE */

.live-page .nebula-page-header h1 i,
.live-page .orion-content-icon i {
    color: var(--nebula-green);

    text-shadow:
        0 0 8px rgba(0, 255, 136, .65),
        0 0 18px rgba(0, 255, 136, .35);
}


/* ==========================================================
   PAGE COUNTERS
   ========================================================== */

.nebula-page-header .films-count,
.nebula-page-header .series-count,
.nebula-page-header .live-count {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;

    padding: 8px 16px;

    border-radius: 25px;

    background:
        rgba(255, 255, 255, .045);

    border:
        1px solid rgba(255, 255, 255, .09);

    white-space: nowrap;
}

.nebula-page-header .films-count strong,
.nebula-page-header .series-count strong,
.nebula-page-header .live-count strong {
    color: var(--nebula-cyan-soft);
    font-size: 17px;
    font-weight: 850;
}

.nebula-page-header .films-count span,
.nebula-page-header .series-count span,
.nebula-page-header .live-count span {
    color: #cbd5e1;

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ==========================================================
   FAVORITES
   ========================================================== */

.orion-favorite-button {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 50;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;

    border:
        1px solid rgba(255, 255, 255, .18);

    border-radius: 50%;

    background:
        rgba(8, 12, 22, .78);

    color: var(--nebula-gold);

    cursor: pointer;

    box-sizing: border-box;

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.orion-favorite-button i {
    color: var(--nebula-gold) !important;
    font-size: 16px;
}

.orion-favorite-button:hover {
    background:
        rgba(8, 12, 22, .94);

    border-color:
        rgba(255, 213, 74, .65);

    color: #ffd95a;
}

.orion-favorite-button:hover i {
    color: #ffd95a !important;
}

.orion-favorite-button.is-favorite {
    color: #ffd54a;

    border-color:
        rgba(255, 213, 74, .65);
}

.orion-favorite-button.is-favorite i {
    color: #ffd54a !important;
}


/* ==========================================================
   TOP MENU COLORS
   ========================================================== */

.orion-main-nav a[href*="/films"] i {
    color: var(--nebula-blue) !important;

    text-shadow:
        0 0 8px rgba(0, 217, 255, .65) !important;
}

.orion-main-nav a[href*="/series"] i {
    color: var(--nebula-purple) !important;

    text-shadow:
        0 0 8px rgba(139, 92, 246, .65) !important;
}

.orion-main-nav a[href*="/live"] i {
    color: var(--nebula-green) !important;

    text-shadow:
        0 0 8px rgba(0, 255, 136, .65) !important;
}

.orion-main-nav a[href*="/sync"] i {
    color: var(--nebula-orange) !important;

    text-shadow:
        0 0 8px rgba(245, 158, 11, .65) !important;
}

.orion-main-nav a[href*="/epg"] i {
    color: var(--nebula-yellow) !important;

    text-shadow:
        0 0 8px rgba(250, 204, 21, .65) !important;
}

.orion-main-nav a[href*="/settings"] i {
    color: #ff1493 !important;

    text-shadow:
        0 0 8px rgba(56, 189, 248, .65),
        0 0 18px rgba(56, 189, 248, .30);
}

.orion-main-nav a[href*="/favorites"] i {
    color: var(--nebula-gold) !important;

    text-shadow:
        0 0 8px rgba(245, 197, 66, .65),
        0 0 18px rgba(245, 197, 66, .30) !important;
}

.orion-main-nav a[href*="/favorites"]:hover i {
    color: #ffd95a !important;

    text-shadow:
        0 0 8px rgba(255, 217, 90, .75),
        0 0 18px rgba(255, 217, 90, .35) !important;
}

.orion-main-nav a.orion-guide-menu i {
    color: #b8860b;
}


/* ==========================================================
   DETAILS MODAL
   ========================================================== */

.orion-details-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 30px;
}

.orion-details-modal.is-open {
    display: flex;
}


/* BACKDROP */

.orion-details-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(0, 0, 0, .78);

    backdrop-filter: blur(8px);
}


/* DIALOG */

.orion-details-dialog {
    position: relative;
    z-index: 2;

    display: flex;

    width: min(900px, 95vw);
    min-height: 430px;

    overflow: hidden;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #182235,
            #0b1220
        );

    border:
        1px solid rgba(255, 255, 255, .08);

    box-shadow:
        0 30px 80px rgba(0, 0, 0, .65);

    animation:
        orionDetailsIn .22s ease-out;
}


/* ANIMATION */

@keyframes orionDetailsIn {
    from {
        opacity: 0;
        transform:
            translateY(15px)
            scale(.97);
    }

    to {
        opacity: 1;
        transform:
            translateY(0)
            scale(1);
    }
}


/* CLOSE */

.orion-details-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;

    width: 42px;
    height: 42px;

    border: 0;
    border-radius: 50%;

    background:
        rgba(0, 0, 0, .55);

    color: #fff;

    font-size: 20px;
    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}

.orion-details-close:hover {
    background:
        rgba(255, 255, 255, .15);

    transform:
        rotate(90deg);
}


/* POSTER */

.orion-details-poster {
    width: 310px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
    box-sizing: border-box;

    background:
        rgba(0, 0, 0, .22);
}

.orion-details-poster img {
    display: block;

    width: 100%;
    max-height: 370px;

    object-fit: contain;

    border-radius: 12px;

    box-shadow:
        0 15px 35px rgba(0, 0, 0, .45);
}


/* INFO */

.orion-details-info {
    flex: 1;
    padding: 55px 45px 40px;
}

.orion-details-type {
    margin-bottom: 8px;

    color: var(--nebula-cyan-soft);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.orion-details-info h2 {
    margin: 0 0 15px;

    color: #fff;

    font-size: 32px;
    line-height: 1.15;
}

.orion-details-meta {
    margin-bottom: 22px;

    color: #aeb9ca;
    font-size: 14px;
}

.orion-details-description {
    max-width: 500px;

    color: #d0d7e2;

    font-size: 15px;
    line-height: 1.65;
}


/* ACTIONS */

.orion-details-actions {
    margin-top: 30px;
}

.orion-details-play {
    padding: 13px 24px;

    border: 0;
    border-radius: 10px;

    background: var(--nebula-cyan-soft);

    color: #06111b;

    font-weight: 800;

    cursor: pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.orion-details-play:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 8px 25px rgba(34, 211, 238, .3);
}


/* CATEGORY BUTTON */

.orion-details-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    margin-left: 10px;
    padding: 13px 20px;

    border:
        1px solid rgba(255, 255, 255, .14);

    border-radius: 10px;

    background:
        rgba(255, 255, 255, .06);

    color: #cbd5e1;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease,
        color .2s ease,
        border-color .2s ease,
        box-shadow .2s ease;
}

.orion-details-category:hover {
    transform:
        translateY(-2px);

    background:
        rgba(255, 255, 255, .11);

    color: #fff;

    border-color:
        rgba(34, 211, 238, .35);

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .30);
}

.orion-details-category i {
    font-size: 11px;
}


/* ==========================================================
   FOOTER
   ========================================================== */

footer {
    position: relative;

    margin-top: 70px;
    padding: 35px 20px;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            rgba(0, 217, 255, .04),
            rgba(8, 15, 32, .85) 35%,
            rgba(2, 6, 23, 1)
        );

    border-top:
        1px solid rgba(0, 217, 255, .18);

    box-shadow:
        0 -15px 45px rgba(0, 217, 255, .08),
        inset 0 1px 0 rgba(139, 92, 246, .12);
}

footer::before {
    content: "";

    position: absolute;
    top: -2px;
    left: 50%;

    width: 320px;
    height: 3px;

    transform:
        translateX(-50%);

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--nebula-blue) 20%,
            var(--nebula-purple) 50%,
            var(--nebula-blue) 80%,
            transparent
        );

    box-shadow:
        0 0 8px var(--nebula-blue),
        0 0 22px rgba(0, 217, 255, .65),
        0 0 45px rgba(139, 92, 246, .35);
}

footer::after {
    content: "";

    position: absolute;
    top: -30px;
    left: 50%;

    width: 420px;
    height: 70px;

    transform:
        translateX(-50%);

    background:
        radial-gradient(
            ellipse,
            rgba(0, 217, 255, .16),
            transparent 70%
        );

    pointer-events: none;
}

footer p {
    position: relative;
    z-index: 2;

    margin: 0;

    color: #67e8f9;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 4px;

    text-transform: uppercase;

    text-shadow:
        0 0 8px rgba(0, 217, 255, .55),
        0 0 20px rgba(0, 217, 255, .25);

    transition:
        color .25s ease,
        text-shadow .25s ease;
}

footer:hover p {
    color: #fff;

    text-shadow:
        0 0 8px var(--nebula-blue),
        0 0 18px var(--nebula-blue),
        0 0 35px rgba(139, 92, 246, .8);
}


/* ==========================================================
   SETTINGS PAGE
   ========================================================== */

.orion-settings-page {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
    padding: 35px 30px 60px;

    box-sizing: border-box;
}

.orion-settings-header {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 35px;
}

.orion-settings-header-icon {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 16px;

    background:
        rgba(139, 92, 246, .10);

    border:
        1px solid rgba(139, 92, 246, .30);

    color: #ff1493;

    font-size: 23px;

    box-shadow:
        0 0 25px rgba(139, 92, 246, .10);
}

.orion-settings-header h1 {
    margin: 0;

    color: #fff;

    font-size: 30px;
    font-weight: 850;
    letter-spacing: 1px;
}

.orion-settings-header p {
    margin: 6px 0 0;

    color: var(--nebula-muted);
    font-size: 14px;
}


/* SETTINGS GRID */

.orion-settings-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;

    margin-bottom: 30px;
}

.orion-settings-card {
    display: block;

    padding: 25px;

    box-sizing: border-box;

    text-decoration: none;
    color: inherit;

    background:
        linear-gradient(
            145deg,
            rgba(15, 23, 42, .92),
            rgba(2, 6, 23, .94)
        );

    border:
        1px solid var(--nebula-border);

    border-radius: 20px;

    transition:
        transform .25s ease,
        border-color .25s ease,
        box-shadow .25s ease;
}

.orion-settings-card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(0, 217, 255, .35);

    box-shadow:
        0 18px 45px rgba(0, 0, 0, .40);
}

.orion-settings-card-icon {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 16px;

    border-radius: 14px;

    background:
        rgba(0, 217, 255, .08);

    border:
        1px solid rgba(0, 217, 255, .20);

    color: var(--nebula-blue);

    font-size: 19px;
}

.orion-settings-card h2 {
    margin: 0 0 8px;

    color: #fff;

    font-size: 19px;
    font-weight: 800;
}

.orion-settings-card p {
    margin: 0;

    color: var(--nebula-muted);

    font-size: 13px;
    line-height: 1.55;
}

.orion-settings-card.disabled {
    cursor: default;
    opacity: .55;
}

.orion-settings-card.disabled:hover {
    transform: none;

    border-color:
        var(--nebula-border);

    box-shadow: none;
}


/* SETTINGS PANEL */

.orion-settings-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;
    margin-bottom: 25px;
}

.orion-settings-panel-title h2 {
    margin: 0;

    color: #fff;

    font-size: 21px;
    font-weight: 800;
    letter-spacing: .5px;
}

.orion-settings-panel-title p {
    margin: 6px 0 0;

    color: var(--nebula-muted);
    font-size: 13px;
}


/* ADD */

.orion-settings-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 11px 17px;

    border-radius: 10px;

    background:
        rgba(6, 182, 212, .90);

    border:
        1px solid rgba(103, 232, 249, .80);

    color: #fff;

    text-decoration: none;

    font-size: 12px;
    font-weight: 800;

    white-space: nowrap;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, .30);

    transition:
        transform .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.orion-settings-add:hover {
    transform:
        translateY(-2px);

    background:
        #06b6d4;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .45),
        0 0 20px rgba(6, 182, 212, .25);
}


/* ==========================================================
   PLAYLIST TABLE
   ========================================================== */

.orion-playlist-table-wrapper {
    width: 100%;

    overflow-x: auto;

    border:
        1px solid rgba(255, 255, 255, .06);

    border-radius: 16px;
}

.orion-playlist-table {
    width: 100%;
    min-width: 850px;

    border-collapse: collapse;
}

.orion-playlist-table thead {
    background:
        rgba(255, 255, 255, .045);
}

.orion-playlist-table th {
    padding: 15px 16px;

    color: var(--nebula-muted);

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1px;

    text-align: left;

    border-bottom:
        1px solid rgba(255, 255, 255, .08);
}

.orion-playlist-table td {
    padding: 16px;

    color: #cbd5e1;

    font-size: 13px;

    border-bottom:
        1px solid rgba(255, 255, 255, .055);

    vertical-align: middle;
}

.orion-playlist-table tbody tr {
    transition:
        background .2s ease;
}

.orion-playlist-table tbody tr:hover {
    background:
        rgba(255, 255, 255, .035);
}

.orion-playlist-table tbody tr:last-child td {
    border-bottom: 0;
}

.orion-playlist-id {
    width: 55px;
    color: #64748b !important;
    font-weight: 700;
}

.orion-playlist-name {
    color: #fff !important;
    font-weight: 750;
}

.orion-playlist-url {
    max-width: 350px;

    color: var(--nebula-muted) !important;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* ==========================================================
   PLAYLIST BADGES
   ========================================================== */

.orion-playlist-badge,
.orion-playlist-source {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 20px;

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .7px;
}

.orion-playlist-badge {
    min-width: 55px;
    padding: 5px 10px;

    background:
        rgba(255, 255, 255, .06);

    border:
        1px solid rgba(255, 255, 255, .10);

    color: #cbd5e1;
}

.orion-playlist-badge.m3u {
    color: var(--nebula-cyan-soft);

    border-color:
        rgba(34, 211, 238, .25);

    background:
        rgba(34, 211, 238, .07);
}

.orion-playlist-badge.xtream {
    color: #a78bfa;

    border-color:
        rgba(139, 92, 246, .28);

    background:
        rgba(139, 92, 246, .08);
}

.orion-playlist-badge.local {
    color: var(--nebula-green);

    border-color:
        rgba(0, 255, 136, .25);

    background:
        rgba(0, 255, 136, .07);
}

.orion-playlist-source {
    padding: 5px 10px;
}

.orion-playlist-source.remote {
    color: var(--nebula-yellow);

    background:
        rgba(250, 204, 21, .07);

    border:
        1px solid rgba(250, 204, 21, .22);
}

.orion-playlist-source.local {
    color: var(--nebula-green);

    background:
        rgba(0, 255, 136, .07);

    border:
        1px solid rgba(0, 255, 136, .22);
}


/* ==========================================================
   PLAYLIST ACTIONS
   ========================================================== */

.orion-playlist-actions {
    display: flex;
    align-items: center;

    gap: 8px;

    white-space: nowrap;
}

.orion-playlist-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 8px 11px;

    border:
        1px solid rgba(255, 255, 255, .10);

    border-radius: 8px;

    background:
        rgba(255, 255, 255, .045);

    color: #cbd5e1;

    text-decoration: none;

    font-size: 11px;
    font-weight: 750;

    cursor: pointer;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        transform .2s ease;
}

.orion-playlist-action:hover {
    transform:
        translateY(-1px);

    background:
        rgba(255, 255, 255, .09);

    border-color:
        rgba(255, 255, 255, .20);

    color: #fff;
}

.orion-playlist-action.sync {
    color: var(--nebula-orange);

    border-color:
        rgba(245, 158, 11, .20);
}

.orion-playlist-action.sync:hover {
    color: #fbbf24;

    border-color:
        rgba(245, 158, 11, .45);

    background:
        rgba(245, 158, 11, .07);
}


/* ==========================================================
   SETTINGS FORM
   ========================================================== */

.nebula-settings-form {
    width: 100%;
}

.nebula-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;
}

.nebula-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nebula-field-full {
    grid-column: 1 / -1;
}

.nebula-field label {
    color: var(--nebula-text);

    font-size: 13px;
    font-weight: 600;
    letter-spacing: .4px;
}

.nebula-field input,
.nebula-field select {
    width: 100%;
    min-height: 46px;

    padding: 11px 14px;

    box-sizing: border-box;

    border:
        1px solid var(--nebula-border);

    border-radius: 10px;

    background:
        var(--nebula-bg);

    color:
        var(--nebula-text);

    font-size: 14px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.nebula-field select {
    cursor: pointer;

    background-color: #050816 !important;
    color: #f8fafc !important;

    color-scheme: dark;
}

.nebula-field select option {
    background-color: #050816 !important;
    color: #f8fafc !important;
}


/* FORM ACTIONS */

.nebula-form-actions {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    margin-top: 30px;
    padding-top: 22px;

    border-top:
        1px solid var(--nebula-border);
}

.nebula-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 44px;

    padding: 0 18px;

    border-radius: 10px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform .15s ease,
        opacity .15s ease,
        background .2s ease,
        border-color .2s ease;
}

.nebula-action:hover {
    transform:
        translateY(-1px);
}

.nebula-action.secondary {
    border:
        1px solid var(--nebula-border);

    background:
        transparent;

    color:
        var(--nebula-text);
}

.nebula-action.secondary:hover {
    background:
        var(--nebula-panel);
}

.nebula-action.primary {
    border:
        1px solid transparent;

    background:
        var(--nebula-blue);

    color: #fff;
}

.nebula-action.primary:hover {
    opacity: .9;
}


/* ==========================================================
   BACKUP MANAGER
   ========================================================== */

.orion-backup-actions {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}

.orion-backup-button {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 48px;
    padding: 0 18px;

    box-sizing: border-box;

    border:
        1px solid rgba(0, 217, 255, .25);

    border-radius: 12px;

    background:
        rgba(0, 217, 255, .07);

    color: var(--nebula-cyan-soft);

    font-size: 13px;
    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        color .2s ease;
}

.orion-backup-button:hover {
    transform:
        translateY(-2px);

    background:
        rgba(0, 217, 255, .12);

    border-color:
        rgba(0, 217, 255, .50);

    color: #fff;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, .35),
        0 0 20px rgba(0, 217, 255, .15);
}

.orion-backup-button i {
    font-size: 16px;
}

.orion-backup-button.database {
    color: var(--nebula-cyan-soft);

    border-color:
        rgba(34, 211, 238, .25);

    background:
        rgba(34, 211, 238, .07);
}

.orion-backup-button.database:hover {
    border-color:
        rgba(34, 211, 238, .55);

    background:
        rgba(34, 211, 238, .13);
}

.orion-backup-button.project {
    color: #a78bfa;

    border-color:
        rgba(139, 92, 246, .28);

    background:
        rgba(139, 92, 246, .07);
}

.orion-backup-button.project:hover {
    border-color:
        rgba(139, 92, 246, .55);

    background:
        rgba(139, 92, 246, .13);
}

.orion-backup-button.full {
    color: var(--nebula-green);

    border-color:
        rgba(0, 255, 136, .25);

    background:
        rgba(0, 255, 136, .07);
}

.orion-backup-button.full:hover {
    border-color:
        rgba(0, 255, 136, .55);

    background:
        rgba(0, 255, 136, .13);
}


/* BACKUP STATUS */

.orion-backup-status {
    display: flex;
    align-items: center;

    gap: 12px;

    padding: 16px 18px;
    margin-bottom: 22px;

    border:
        1px solid rgba(255, 255, 255, .08);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, .035);
}

.orion-backup-status-icon {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 12px;

    font-size: 17px;
}

.orion-backup-status.ok .orion-backup-status-icon {
    color: var(--nebula-green);

    background:
        rgba(0, 255, 136, .08);

    border:
        1px solid rgba(0, 255, 136, .20);
}

.orion-backup-status.warning .orion-backup-status-icon {
    color: var(--nebula-yellow);

    background:
        rgba(250, 204, 21, .08);

    border:
        1px solid rgba(250, 204, 21, .20);
}

.orion-backup-status strong {
    display: block;

    color: #fff;
    font-size: 14px;
}

.orion-backup-status span {
    display: block;

    margin-top: 4px;

    color: var(--nebula-muted);
    font-size: 12px;
}


/* BACKUP LIST */

.orion-backup-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.orion-backup-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 16px 18px;

    border:
        1px solid rgba(255, 255, 255, .07);

    border-radius: 14px;

    background:
        rgba(255, 255, 255, .025);

    transition:
        background .2s ease,
        border-color .2s ease;
}

.orion-backup-item:hover {
    background:
        rgba(255, 255, 255, .045);

    border-color:
        rgba(0, 217, 255, .18);
}

.orion-backup-item-info {
    min-width: 0;
}

.orion-backup-item-name {
    color: #fff;

    font-size: 13px;
    font-weight: 800;
}

.orion-backup-item-meta {
    margin-top: 5px;

    color: var(--nebula-muted);

    font-size: 11px;
}

.orion-backup-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    padding: 5px 10px;

    border-radius: 20px;

    color: var(--nebula-green);

    background:
        rgba(0, 255, 136, .07);

    border:
        1px solid rgba(0, 255, 136, .22);

    font-size: 10px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: .7px;
}

.orion-backup-note {
    margin-top: 18px;

    padding: 14px 16px;

    border-left:
        3px solid rgba(0, 217, 255, .45);

    border-radius: 8px;

    background:
        rgba(0, 217, 255, .035);

    color: var(--nebula-muted);

    font-size: 12px;
    line-height: 1.55;
}

.orion-backup-empty {
    padding: 30px 20px;

    text-align: center;

    border:
        1px dashed rgba(255, 255, 255, .10);

    border-radius: 16px;

    background:
        rgba(255, 255, 255, .02);
}

.orion-backup-empty i {
    display: block;

    margin-bottom: 12px;

    color: #64748b;
    font-size: 28px;
}

.orion-backup-empty strong {
    display: block;

    color: #fff;
    font-size: 14px;
}

.orion-backup-empty span {
    display: block;

    margin-top: 6px;

    color: var(--nebula-muted);
    font-size: 12px;
}


/* BACKUP PROGRESS */

.orion-backup-progress-icon {
    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.orion-backup-progress-icon i {
    color: var(--nebula-blue);

    font-size: 26px;

    text-shadow:
        0 0 8px rgba(0, 217, 255, .70),
        0 0 18px rgba(0, 217, 255, .45);
}


/* RESTORE */

.orion-backup-restore-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 34px;

    padding: 0 12px;

    border:
        1px solid rgba(139, 92, 246, .30);

    border-radius: 9px;

    background:
        rgba(139, 92, 246, .07);

    color: #c4b5fd;

    font-size: 11px;
    font-weight: 750;
    letter-spacing: .3px;

    white-space: nowrap;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        transform .2s ease,
        background .2s ease,
        border-color .2s ease,
        color .2s ease,
        box-shadow .2s ease;
}

.orion-backup-restore-button i {
    color: #a78bfa;

    font-size: 12px;

    transition:
        transform .25s ease,
        color .2s ease;
}

.orion-backup-restore-button:hover {
    transform:
        translateY(-1px);

    background:
        rgba(139, 92, 246, .14);

    border-color:
        rgba(139, 92, 246, .55);

    color: #fff;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, .30),
        0 0 14px rgba(139, 92, 246, .12);
}

.orion-backup-restore-button:hover i {
    color: #c4b5fd;

    transform:
        rotate(-12deg);
}

.orion-backup-restore-button:disabled {
    opacity: .45;

    cursor: default;

    transform: none;

    box-shadow: none;
}


/* ==========================================================
   THEME SELECTOR
   ========================================================== */

.orion-theme-setting form {
    display: flex;
    align-items: center;
    gap: 12px;
}

.orion-theme-select {
    min-width: 230px;
    height: 46px;

    padding: 0 42px 0 16px;

    border:
        1px solid rgba(255, 255, 255, .10);

    border-radius: 12px;

    background-color:
        rgba(255, 255, 255, .045);

    color: #f4f7ff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 600;

    outline: none;
    cursor: pointer;

    appearance: none;

    background-image:
        linear-gradient(
            45deg,
            transparent 50%,
            #8ea7ff 50%
        ),
        linear-gradient(
            135deg,
            #8ea7ff 50%,
            transparent 50%
        );

    background-position:
        calc(100% - 19px) 19px,
        calc(100% - 14px) 19px;

    background-size:
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .04),
        0 6px 20px rgba(0, 0, 0, .20);

    transition:
        border-color .2s ease,
        background-color .2s ease,
        box-shadow .2s ease;
}

.orion-theme-select:hover {
    border-color:
        rgba(110, 145, 255, .40);

    background-color:
        rgba(255, 255, 255, .065);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .05),
        0 8px 24px rgba(0, 0, 0, .26);
}

.orion-theme-select:focus {
    border-color:
        rgba(110, 145, 255, .65);

    background-color:
        rgba(255, 255, 255, .065);

    box-shadow:
        0 0 0 3px rgba(90, 120, 255, .12),
        0 8px 26px rgba(0, 0, 0, .28);
}

.orion-theme-select option {
    background: #151922;
    color: #f4f7ff;
}


/* SAVE */

.orion-settings-save {
    height: 46px;

    padding: 0 20px;

    border:
        1px solid rgba(105, 140, 255, .32);

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            rgba(95, 130, 255, .28),
            rgba(130, 90, 255, .22)
        );

    color: #fff;

    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .2px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    cursor: pointer;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .08),
        0 6px 20px rgba(0, 0, 0, .22);

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease;
}

.orion-settings-save i {
    font-size: 13px;
    opacity: .90;
}

.orion-settings-save:hover {
    transform:
        translateY(-1px);

    border-color:
        rgba(125, 155, 255, .65);

    background:
        linear-gradient(
            135deg,
            rgba(105, 145, 255, .40),
            rgba(145, 105, 255, .34)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .10),
        0 10px 28px rgba(70, 90, 180, .22);
}

.orion-settings-save:active {
    transform:
        translateY(0);
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {

    .nebula-page,
    .nebula-section,
    .recent-content {
        padding-left: 15px;
        padding-right: 15px;
    }

    .cards-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 15px;
    }

    .orion-card-details-button {
        padding: 10px 15px;
        font-size: 12px;
    }

    .orion-live-logo {
        padding: 15px;
    }

    .orion-live-logo img {
        max-width: 72%;
        max-height: 72%;
    }

    .orion-settings-page {
        padding: 25px 15px 45px;
    }

    .orion-settings-grid {
        grid-template-columns: 1fr;
    }

    .orion-settings-panel {
        padding: 20px;
    }

    .orion-settings-panel-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .orion-backup-actions {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 800px) {

    .nebula-page-header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .nebula-form-grid {
        grid-template-columns: 1fr;
    }

    .nebula-field-full {
        grid-column: auto;
    }

    .nebula-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .nebula-action {
        width: 100%;
    }
}


@media (max-width: 700px) {

    .orion-details-dialog {
        flex-direction: column;

        max-height: 90vh;

        overflow-y: auto;
    }

    .orion-details-poster {
        width: auto;
        min-height: 250px;
    }

    .orion-details-poster img {
        max-width: 220px;
        max-height: 250px;
    }

    .orion-details-info {
        padding: 25px;
    }

    .orion-details-info h2 {
        font-size: 25px;
    }

    .orion-details-category {
        margin-left: 0;
        margin-top: 10px;
    }

    .orion-theme-setting form {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .orion-theme-select,
    .orion-settings-save {
        width: 100%;
    }
}


@media (max-width: 600px) {

    .orion-settings-header {
        gap: 13px;
    }

    .orion-settings-header-icon {
        width: 48px;
        height: 48px;
        font-size: 19px;
    }

    .orion-settings-header h1 {
        font-size: 24px;
    }

    .orion-settings-header p {
        font-size: 12px;
    }

    .orion-settings-panel {
        padding: 15px;
        border-radius: 18px;
    }

    .orion-card-info {
        padding: 11px;
    }

    .orion-card-info h3 {
        font-size: 14px;
    }

    .orion-card-info p {
        font-size: 12px;
    }

    .orion-card-details-button {
        padding: 9px 12px;
        gap: 7px;
        font-size: 11px;
    }

    .orion-backup-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .orion-backup-restore-button {
        min-height: 36px;
        padding: 0 11px;
        font-size: 11px;
    }
}
