:root {
    --ps-bg: #030914;
    --ps-header: #040e1f;
    --ps-card: #07162f;
    --ps-card-alt: #0c1c33;
    --ps-border: #183b66;

    --ps-blue: #007dff;
    --ps-blue-bright: #149bff;
    --ps-blue-dark: #003d7d;

    --ps-red: #e32637;
    --ps-red-bright: #ff4150;
    --ps-red-dark: #72121e;

    --ps-green: #22d36f;
    --ps-orange: #ffad32;

    --ps-white: #f2f6fc;
    --ps-text: #d9e4f2;
    --ps-muted: #8499b5;

    --ps-radius: 12px;
}


/* ============================================================
   BASE
   ============================================================ */

html {
    background: var(--ps-bg);
}

body {
    background:
        linear-gradient(
            rgba(3, 9, 20, 0.72),
            rgba(3, 9, 20, 0.82)
        ),
        url("/static/poolstream-ui.png")
        center center / cover
        fixed no-repeat,
        var(--ps-bg) !important;

    color: var(--ps-white) !important;
}


/* ============================================================
   HEADERS / BRANDING
   ============================================================ */

header {
    background: var(--ps-header) !important;
    border-bottom: 1px solid var(--ps-border) !important;
    position: relative;
}

header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--ps-blue) 0%,
            var(--ps-blue) 49.8%,
            var(--ps-red) 50.2%,
            var(--ps-red) 100%
        );
}

h1 {
    color: var(--ps-white) !important;
    letter-spacing: 0.2px;
}

header h1::before {
    content: "8";
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 30px;
    height: 30px;

    margin-right: 10px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 35% 30%,
            #39495c 0%,
            #111822 22%,
            #020408 55%
        );

    border: 2px solid var(--ps-blue);

    box-shadow:
        0 0 0 2px rgba(0, 125, 255, 0.15),
        0 0 14px rgba(0, 125, 255, 0.25);

    color: #050505;

    font-size: 13px;
    font-weight: 900;

    text-shadow:
        0 0 0 white;

    vertical-align: middle;

    /* white number circle */
    outline: 6px solid transparent;
}


/* Create the white 8-ball number impression */
header h1::before {
    color: white;
}


/* ============================================================
   CARDS / PANELS
   ============================================================ */

.card {
    background:
        linear-gradient(
            145deg,
            rgba(12, 28, 51, 0.90),
            rgba(5, 18, 38, 0.94)
        ) !important;

    backdrop-filter:
        blur(8px);

    border:
        1px solid var(--ps-border) !important;

    border-radius:
        var(--ps-radius) !important;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.20);
}

.card-head {
    background:
        rgba(4, 14, 31, 0.88) !important;

    border-bottom:
        1px solid var(--ps-border) !important;
}

.card-body {
    color: var(--ps-text);
}

.section {
    border-color:
        rgba(42, 70, 105, 0.8) !important;
}


/* ============================================================
   TEXT
   ============================================================ */

.muted,
.key-state,
.timer {
    color:
        var(--ps-muted) !important;
}

label {
    color:
        var(--ps-text) !important;
}

a {
    color:
        var(--ps-blue-bright);
}


/* ============================================================
   INPUTS
   ============================================================ */

input,
select,
textarea {
    background:
        #071221 !important;

    border:
        1px solid #365272 !important;

    color:
        var(--ps-white) !important;

    border-radius:
        8px !important;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;

    border-color:
        var(--ps-blue) !important;

    box-shadow:
        0 0 0 3px
        rgba(0, 125, 255, 0.16) !important;
}

input::placeholder {
    color:
        #647b98 !important;
}


/* ============================================================
   BUTTONS
   ============================================================ */

button {
    background:
        linear-gradient(
            180deg,
            var(--ps-blue-bright),
            var(--ps-blue)
        ) !important;

    border:
        1px solid rgba(60, 175, 255, 0.45) !important;

    color:
        white !important;

    border-radius:
        8px !important;

    transition:
        filter 0.15s ease,
        transform 0.08s ease,
        box-shadow 0.15s ease;
}

button:hover {
    filter: brightness(1.10);

    box-shadow:
        0 4px 14px rgba(0, 125, 255, 0.20);
}

button:active {
    transform:
        translateY(1px);
}

button.secondary {
    background:
        linear-gradient(
            180deg,
            #405574,
            #30435d
        ) !important;

    border-color:
        #536d91 !important;
}

button.danger,
.remove-destination {
    background:
        linear-gradient(
            180deg,
            var(--ps-red-bright),
            var(--ps-red)
        ) !important;

    border-color:
        rgba(255, 100, 110, 0.45) !important;
}


/* ============================================================
   STATUS
   ============================================================ */

.online {
    background:
        var(--ps-green) !important;
}

.offline {
    background:
        var(--ps-red) !important;
}

.streaming,
.live {
    color:
        var(--ps-blue-bright) !important;
}

.success {
    color:
        #65e69a !important;
}

.error {
    color:
        #ff8992 !important;
}


/* ============================================================
   STREAM DESTINATIONS
   ============================================================ */

.destination {
    background:
        linear-gradient(
            145deg,
            rgba(3, 18, 39, 0.98),
            rgba(8, 25, 48, 0.98)
        ) !important;

    border:
        1px solid #254d79 !important;

    border-radius:
        10px !important;

    position: relative;
    overflow: hidden;
}

.destination::before {
    content: "";
    position: absolute;

    top: 0;
    left: 0;
    bottom: 0;

    width: 4px;

    background:
        var(--ps-blue);
}


/* ============================================================
   PATRON SCORE PAGE
   ============================================================ */

.player:first-child {
    border-top:
        3px solid var(--ps-blue);
}

.player:last-child {
    border-top:
        3px solid var(--ps-red);
}

.score {
    color:
        var(--ps-white) !important;

    text-shadow:
        0 0 15px
        rgba(0, 125, 255, 0.10);
}


/* ============================================================
   SMALL POOLSTREAM ACCENT
   ============================================================ */

.ps-accent-line {
    height: 3px;

    background:
        linear-gradient(
            90deg,
            var(--ps-blue) 0%,
            var(--ps-blue) 50%,
            var(--ps-red) 50%,
            var(--ps-red) 100%
        );
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    header {
        padding:
            14px 16px !important;
    }

    main {
        padding:
            14px !important;
    }

    header h1 {
        font-size:
            21px !important;
    }

    header h1::before {
        width: 26px;
        height: 26px;
    }
}

/* ==========================================================
   WHAT IS POOLSTREAM
   ========================================================== */

.poolstream-about {
    width: min(1180px, calc(100% - 40px));
    margin: 72px auto;
    padding: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 46px;
    align-items: center;
    border: 1px solid rgba(71, 153, 255, 0.24);
    border-radius: 24px;
    background:
        radial-gradient(circle at 10% 0%, rgba(0,132,255,.13), transparent 38%),
        radial-gradient(circle at 100% 100%, rgba(255,46,74,.10), transparent 42%),
        rgba(7, 16, 31, 0.92);
    box-shadow: 0 24px 70px rgba(0,0,0,.30);
}

.poolstream-about-copy h2 {
    margin: 8px 0 18px;
    font-size: clamp(2.1rem, 5vw, 3.7rem);
    line-height: .98;
    letter-spacing: -.04em;
}

.poolstream-about-copy p {
    color: rgba(235,243,255,.80);
    line-height: 1.7;
}

.poolstream-about-lead {
    font-size: 1.08rem;
}

.poolstream-feature-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.poolstream-feature-card {
    padding: 18px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.035);
}

.poolstream-feature-card strong {
    display: block;
    margin-bottom: 7px;
    color: #fff;
}

.poolstream-feature-card span {
    display: block;
    color: rgba(225,235,249,.70);
    font-size: .88rem;
    line-height: 1.5;
}

.poolstream-about-tagline {
    margin-top: 26px;
    padding-left: 18px;
    border-left: 3px solid #168cff;
}

.poolstream-about-tagline strong {
    display: block;
    margin-bottom: 5px;
    color: #fff;
    font-size: 1.15rem;
}

.poolstream-about-tagline span {
    color: rgba(225,235,249,.72);
    line-height: 1.5;
}

.poolstream-about-visual {
    position: relative;
}

.poolstream-about-visual::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 24px;
    background:
        linear-gradient(
            135deg,
            rgba(0,132,255,.28),
            transparent 42%,
            rgba(255,40,65,.24)
        );
    filter: blur(22px);
    opacity: .8;
    z-index: 0;
}

.poolstream-about-visual img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 18px 55px rgba(0,0,0,.48);
}

@media (max-width: 940px) {
    .poolstream-about {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 34px;
    }
}

@media (max-width: 620px) {
    .poolstream-about {
        width: min(100% - 24px, 1180px);
        margin: 42px auto;
        padding: 22px;
        border-radius: 18px;
    }

    .poolstream-feature-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================
   POLISHED ABOUT PAGE V2
   ========================================================== */

body.about-page {
    margin: 0;
    min-height: 100vh;
    color: #f4f8ff;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body.about-page main {
    width: min(1240px, calc(100% - 36px));
    margin: 0 auto;
    padding: 28px 0 72px;
}

body.about-page main > div:first-child {
    width: 100% !important;
    margin: 0 0 26px !important;
}

body.about-page main > div:first-child .public-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    backdrop-filter: blur(12px);
}

body.about-page .poolstream-about {
    width: 100%;
    margin: 0;
    padding: 0;

    display: grid;
    grid-template-columns: 1fr;
    gap: 42px;

    border: 0;
    background: transparent;
    box-shadow: none;
}

body.about-page .poolstream-about-copy {
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
}

body.about-page .public-eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 14px;
    padding: 7px 14px;

    border: 1px solid rgba(34, 151, 255, 0.35);
    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            rgba(0, 133, 255, 0.12),
            rgba(255, 48, 78, 0.10)
        );

    color: #9dcbff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

body.about-page .poolstream-about-copy h2 {
    margin: 0 auto 20px;

    font-size: clamp(2.8rem, 7vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 850;

    color: #ffffff;

    text-shadow:
        0 0 28px rgba(24, 141, 255, 0.12);
}

body.about-page .poolstream-about-copy h2::after {
    content: "";
    display: block;

    width: 92px;
    height: 4px;

    margin: 22px auto 0;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #168cff 0%,
            #168cff 46%,
            #ff334f 54%,
            #ff334f 100%
        );

    box-shadow:
        -18px 0 30px rgba(22, 140, 255, 0.35),
        18px 0 30px rgba(255, 51, 79, 0.25);
}

body.about-page .poolstream-about-lead {
    max-width: 890px;
    margin: 0 auto 14px;

    color: rgba(241, 247, 255, 0.92);

    font-size: clamp(1.08rem, 2vw, 1.28rem);
    line-height: 1.75;
}

body.about-page .poolstream-about-copy > p:not(.poolstream-about-lead) {
    max-width: 820px;
    margin: 0 auto;

    color: rgba(204, 219, 239, 0.73);

    font-size: 1rem;
    line-height: 1.72;
}

body.about-page .poolstream-feature-grid {
    margin-top: 42px;

    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;

    text-align: left;
}

body.about-page .poolstream-feature-card {
    position: relative;

    min-height: 174px;

    padding: 58px 22px 22px;

    overflow: hidden;

    border:
        1px solid rgba(115, 166, 226, 0.14);

    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(16, 34, 59, 0.90),
            rgba(7, 18, 35, 0.92)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 14px 36px rgba(0, 0, 0, 0.18);

    transition:
        transform 160ms ease,
        border-color 160ms ease,
        box-shadow 160ms ease;
}

body.about-page .poolstream-feature-card:hover {
    transform: translateY(-3px);

    border-color:
        rgba(64, 159, 255, 0.35);

    box-shadow:
        0 20px 42px rgba(0, 0, 0, 0.26);
}

body.about-page .poolstream-feature-card::before {
    position: absolute;

    top: 18px;
    left: 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 29px;
    height: 29px;

    border-radius: 9px;

    background:
        linear-gradient(
            135deg,
            #168cff,
            #0560bd
        );

    color: #ffffff;

    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.04em;

    box-shadow:
        0 5px 18px rgba(22, 140, 255, 0.26);
}

body.about-page .poolstream-feature-card:nth-child(1)::before {
    content: "LIVE";
    width: 45px;
}

body.about-page .poolstream-feature-card:nth-child(2)::before {
    content: "01";
}

body.about-page .poolstream-feature-card:nth-child(3)::before {
    content: "APP";
    width: 40px;
}

body.about-page .poolstream-feature-card:nth-child(4)::before {
    content: "HW";
    background:
        linear-gradient(
            135deg,
            #ff3d57,
            #aa1329
        );
}

body.about-page .poolstream-feature-card:nth-child(5)::before {
    content: "WEB";
    width: 42px;
}

body.about-page .poolstream-feature-card:nth-child(6)::before {
    content: "MULTI";
    width: 50px;

    background:
        linear-gradient(
            135deg,
            #ff3d57,
            #aa1329
        );
}

body.about-page .poolstream-feature-card strong {
    display: block;

    margin-bottom: 10px;

    color: #ffffff;

    font-size: 1.06rem;
    font-weight: 760;
    line-height: 1.3;
}

body.about-page .poolstream-feature-card span {
    display: block;

    color: rgba(199, 216, 238, 0.72);

    font-size: 0.91rem;
    line-height: 1.62;
}

body.about-page .poolstream-about-tagline {
    max-width: 740px;

    margin: 40px auto 0;
    padding: 20px 26px;

    border:
        1px solid rgba(92, 156, 229, 0.18);

    border-left:
        3px solid #168cff;

    border-right:
        3px solid #ff334f;

    border-radius: 14px;

    background:
        rgba(9, 23, 42, 0.68);

    text-align: center;
}

body.about-page .poolstream-about-tagline strong {
    display: block;

    margin-bottom: 6px;

    color: #ffffff;

    font-size: 1.32rem;
    font-weight: 800;
}

body.about-page .poolstream-about-tagline span {
    color: rgba(211, 224, 242, 0.73);

    font-size: 0.95rem;
    line-height: 1.55;
}

body.about-page .poolstream-about-visual {
    position: relative;

    width: min(100%, 1040px);

    margin: 4px auto 0;

    padding: 6px;

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            rgba(15, 137, 255, 0.70),
            rgba(255, 255, 255, 0.08) 43%,
            rgba(255, 49, 75, 0.62)
        );

    box-shadow:
        0 35px 80px rgba(0, 0, 0, 0.46);
}

body.about-page .poolstream-about-visual::before {
    content: "";

    position: absolute;
    inset: -24px;

    z-index: -1;

    border-radius: 34px;

    background:
        linear-gradient(
            100deg,
            rgba(0, 120, 255, 0.17),
            transparent 47%,
            rgba(255, 30, 65, 0.13)
        );

    filter: blur(30px);
}

body.about-page .poolstream-about-visual img {
    display: block;

    width: 100%;
    height: auto;

    border: 0;
    border-radius: 19px;

    box-shadow: none;
}

body.about-page .poolstream-about-copy > div:last-child {
    margin-top: 32px !important;
}

body.about-page .poolstream-about-copy > div:last-child .public-button {
    min-width: 180px;
}

@media (max-width: 900px) {

    body.about-page main {
        width: min(100% - 24px, 1240px);
    }

    body.about-page .poolstream-feature-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 620px) {

    body.about-page main {
        padding-top: 18px;
    }

    body.about-page .poolstream-feature-grid {
        grid-template-columns: 1fr;
    }

    body.about-page .poolstream-feature-card {
        min-height: 0;
    }

    body.about-page .poolstream-about-copy h2 {
        font-size: 2.55rem;
    }

    body.about-page .poolstream-about-lead {
        font-size: 1rem;
    }

}
