﻿html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #121212;
    color: #e6e6e6;
}

body {
    margin: 0;
}

a,
.btn-link {
    color: #7ab7ff;
}

    a:hover,
    .btn-link:hover {
        color: #a8d0ff;
    }

.content {
    padding-top: 1.1rem;
    background-color: #121212;
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
}

.btn,
.form-control,
.form-select,
.form-check-input {
    background-color: #1e1e1e;
    color: #e6e6e6;
    border-color: #333;
}

    .btn:hover,
    .form-control:focus,
    .form-select:focus {
        background-color: #252525;
        color: #ffffff;
        border-color: #4b5563;
    }

.btn-primary {
    color: #ffffff;
    background-color: #2563eb;
    border-color: #2563eb;
}

    .btn-primary:hover {
        background-color: #1d4ed8;
        border-color: #1d4ed8;
    }

.btn-secondary {
    color: #e6e6e6;
    background-color: #2a2a2a;
    border-color: #444;
}

    .btn-secondary:hover {
        background-color: #333;
        border-color: #555;
    }

.table {
    --bs-table-color: #e6e6e6;
    --bs-table-bg: #181818;
    --bs-table-border-color: #333;
    --bs-table-striped-bg: #202020;
    --bs-table-striped-color: #e6e6e6;
    --bs-table-hover-bg: #2a2a2a;
    --bs-table-hover-color: #ffffff;
    color: #e6e6e6;
    border-color: #333;
}
 
    .table thead th {
        color: #ffffff;
        background-color: #222;
        border-bottom: 1px solid #3a3a3a;
        font-weight: 600;
    }

    .table td {
        color: #e6e6e6;
        border-color: #333;
    }

.game-table-scroll {
    overflow-x: auto;
    width: 100%;
    border: 1px solid #333;
    border-radius: 10px;
    background-color: #181818;
}

.game-table {
    margin-bottom: 0;
    font-size: 14px;
    min-width: 900px;
}

.card {
    background-color: #181818;
    color: #e6e6e6;
    border-color: #333;
}

input::placeholder {
    color: #888;
}



.scroll-top-btn {
    position: fixed;
    left: 18px;
    bottom: 18px;
    z-index: 9999;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid #444;
    background: #202020;
    color: white;
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
}

    .scroll-top-btn:hover {
        background: #2d2d2d;
        border-color: #666;
        transform: translateY(-1px);
    }

@media (max-width: 700px) {
    .scroll-top-btn {
        left: 12px;
        bottom: 12px;
        width: 42px;
        height: 42px;
        font-size: 1.35rem;
    }
}




.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(122, 183, 255, 0.35);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #ff6b6b;
}

.blazor-error-boundary {
    background-color: #7f1d1d;
    padding: 1rem;
    color: white;
    border-radius: 8px;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}
.poster-cell {
    width: 24px;
    padding: 0.15rem !important;
}



.game-table td.poster-cell {
    width: 1px;
    padding: 0 !important;
    vertical-align: middle;
}

    .game-table td.poster-cell img.game-poster {
        width: 12px !important;
        height: 16px !important;
        min-width: 12px;
        max-width: 12px;
        display: block;
        object-fit: cover;
        margin: 0 auto;
        border-radius: 2px;
    }

.game-table tr {
    height: 20px;
}

.game-table td,
.game-table th {
    padding: 0.1rem 0.35rem !important;
    line-height: 1;
}



.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 60px;
}

.modal-box {
    width: min(900px, 95vw);
    max-height: 85vh;
    overflow-y: auto;
    background: #181818;
    color: white;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1rem;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

    .modal-header h2 {
        margin: 0;
    }

.close-btn {
    background: transparent;
    color: white;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 0.08rem;
    font-size: 1rem;
    line-height: 1;
}

.star {
    position: relative;
    display: inline-block;
}

    .star.filled {
        color: #ffd34d;
    }

    .star.empty {
        color: #3f3f3f;
        opacity: 0.55;
    }

    .star.half {
        color: #3f3f3f;
    }

        .star.half::before {
            content: "★";
            position: absolute;
            inset: 0;
            width: 50%;
            overflow: hidden;
            color: #ffd34d;
            opacity: 1;
        }

html.modal-open,
body.modal-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

.scroll-top-btn {
    transition: opacity .15s ease;
}

body.modal-open .scroll-top-btn {
    opacity: 0;
    pointer-events: none;
}


.mobile-sticky-page-title {
    display: none;
}

@media (max-width: 700px) {
    .mobile-sticky-page-title {
        position: sticky;
        top: 0;
        z-index: 50;
        display: flex;
        align-items: center;
        height: 42px;
        margin: -.25rem 0 .65rem;
        padding: 0 .85rem;
        background: #141414;
        border: 1px solid #2f2f2f;
        border-radius: 0 0 12px 12px;
        color: white;
        font-size: .95rem;
        font-weight: 900;
        letter-spacing: .02em;
    }
}
