* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --background: #0c1017;
    --background-light: #111823;
    --card: #161e2a;

    --text: #f4f6fa;
    --muted: #919bad;

    --accent: #6d5dfc;
    --accent-hover: #8275ff;

    --green: #29c67a;
    --orange: #ffad3d;

    --border: #253043;
}

body {
    background:
        radial-gradient(
            circle at top,
            #182033 0,
            #0c1017 500px
        );

    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    min-height: 100vh;
}

.container {
    width: min(1150px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(12, 16, 23, 0.82);
    backdrop-filter: blur(14px);
}

.header-content {
    min-height: 82px;

    display: flex;
    align-items: center;
}

.logo {
    font-size: 27px;
    letter-spacing: -1px;
}

.logo span {
    color: var(--accent);
}

.logo-link {
    color: inherit;
    text-decoration: none;
}

.tagline {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.hero {
    padding: 70px 0 50px;
    text-align: center;
}

.hero h2 {
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: -2px;
}

.hero p {
    color: var(--muted);
    margin-top: 14px;
    font-size: 16px;
}

.search-box {
    width: min(600px, 100%);

    margin-top: 32px;

    padding: 16px 20px;

    border-radius: 14px;

    border: 1px solid var(--border);

    background: var(--background-light);

    color: white;

    outline: none;

    font-size: 16px;

    transition: 0.2s;
}

.search-box:focus {
    border-color: var(--accent);

    box-shadow:
        0 0 0 3px rgba(109, 93, 252, 0.15);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 22px;
}

.section-title h2 {
    font-size: 24px;
}

.section-title span {
    color: var(--muted);
    font-size: 14px;
}

.mods-section {
    padding-bottom: 70px;
}

.mods-grid {
    display: grid;

    grid-template-columns:
        repeat(auto-fill, minmax(300px, 1fr));

    gap: 20px;
}

.mod-card {
    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 18px;

    overflow: hidden;

    transition:
        transform 0.2s,
        border-color 0.2s;
}

.mod-card:hover {
    transform: translateY(-4px);
    border-color: #39465d;
}

.mod-image {
    height: 170px;
    background: var(--background-light);
}

.mod-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.image-placeholder {
    width: 100%;
    height: 100%;

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

    font-size: 60px;
    font-weight: 700;

    color: var(--accent);

    background:
        linear-gradient(
            135deg,
            #171d2c,
            #24204c
        );
}

.mod-content {
    padding: 21px;
}

.mod-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 12px;
}

.mod-top h3,
.mod-top h2 {
    font-size: 21px;
}

.status {
    padding: 5px 9px;

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;

    white-space: nowrap;
}

.status-updated {
    color: #62e6a5;
    background: rgba(41, 198, 122, 0.13);
}

.status-outdated {
    color: #ffc46d;
    background: rgba(255, 173, 61, 0.13);
}

.status-unknown {
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
}

.mod-info {
    margin: 20px 0;

    display: grid;

    gap: 8px;
}

.mod-info p {
    display: flex;
    justify-content: space-between;

    font-size: 14px;
}

.mod-info span {
    color: var(--muted);
}

.mod-description {
    color: var(--muted);

    line-height: 1.6;

    font-size: 14px;

    min-height: 45px;
}

.view-button,
.telegram-button {
    display: inline-flex;

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

    text-decoration: none;

    background: var(--accent);
    color: white;

    font-weight: 600;

    border-radius: 11px;

    transition: 0.2s;
}

.view-button {
    width: 100%;

    margin-top: 22px;

    padding: 12px;
}

.telegram-button {
    padding: 14px 22px;
    margin-top: 25px;
}

.view-button:hover,
.telegram-button:hover {
    background: var(--accent-hover);
}

.no-results {
    display: none;

    text-align: center;

    color: var(--muted);

    margin-top: 50px;
}

footer {
    border-top: 1px solid var(--border);

    padding: 25px 0;

    color: var(--muted);

    font-size: 13px;

    text-align: center;
}

.back-link {
    display: inline-block;

    margin: 35px 0 20px;

    color: var(--muted);

    text-decoration: none;
}

.back-link:hover {
    color: white;
}

.detail-card {
    display: grid;

    grid-template-columns: 340px 1fr;

    gap: 35px;

    padding: 30px;

    margin-bottom: 70px;

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: 20px;
}

.detail-image {
    height: 340px;

    overflow: hidden;

    border-radius: 15px;

    background: var(--background-light);
}

.detail-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.image-slider {
    position: relative;

    width: 100%;
    height: 100%;

    overflow: hidden;
    border-radius: 15px;
}

.slider-images {
    position: relative;

    width: 100%;
    height: 100%;
}

.slide {
    display: none;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.slide.active {
    display: block;
}

.slider-btn {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    z-index: 5;

    width: 42px;
    height: 42px;

    border: none;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.55);
    color: white;

    font-size: 22px;

    cursor: pointer;

    transition: 0.2s;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slider-btn.prev {
    left: 12px;
}

.slider-btn.next {
    right: 12px;
}

.detail-placeholder {
    font-size: 110px;
}

.detail-info {
    display: flex;

    gap: 40px;

    margin-top: 28px;
}

.detail-info div {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.detail-info span {
    color: var(--muted);

    font-size: 13px;
}

.detail-info small {
    color: var(--muted);
    font-size: 11px;
}

.detail-description {
    color: var(--muted);

    line-height: 1.7;

    margin-top: 28px;
}

.detail-section {
    margin-top: 30px;
}

.detail-section h3 {
    margin-bottom: 14px;
    font-size: 18px;
}

.feature-list,
.notes-list {
    display: grid;
    gap: 9px;

    padding-left: 20px;

    color: var(--muted);

    line-height: 1.5;
}

.feature-list li::marker {
    color: var(--green);
}

.notes-list li::marker {
    color: var(--orange);
}

@media (max-width: 760px) {

    .hero {
        padding-top: 50px;
    }

    .detail-card {
        grid-template-columns: 1fr;

        padding: 20px;
    }

    .detail-image {
        height: 250px;
    }

}