﻿        *, :after, :before {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: optimizeLegibility;
        }

        html, body {
            --sb-track-color: #1b1b1b;
            --sb-thumb-color: #cb3c6d;
            --sb-size: 15px;
            scrollbar-color: var(--sb-thumb-color) var(--sb-track-color) !important;
            scrollbar-width: thin;
        }

        ::-webkit-scrollbar { width: var(--sb-size); }
        ::-webkit-scrollbar-thumb { background: var(--sb-thumb-color); border-radius: 4px; }
        ::-webkit-scrollbar-track { background: var(--sb-track-color); border-radius: 4px; }

        body {
            font-family: Poppins, sans-serif;
            font-size: 1rem;
            font-weight: 400;
            line-height: 1.5;
            background-color: #0c0c0c;
            color: #fff;
            min-height: 100vh;
            position: relative;
            display: flex;
            flex-direction: column;
        }

        body::before {
            content: '';
            display: block;
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background-image: url('../../images/site/fond.webp');
            background-size: cover;
            background-repeat: no-repeat;
            background-position: 50%;
            opacity: 0.6;
            z-index: -1;
        }

        a { color: inherit; text-decoration: none; }


        .main-content {
            flex: 1 0 auto;
            max-width: 1400px;
            width: 100%;
            margin: 0 auto;
            padding: 110px 20px 30px;
        }


        .filters {
            display: flex;
            justify-content: flex-end;
            gap: 20px;
            margin-bottom: 15px;
            text-shadow: 0 0 4px #000;
        }
        .filter-group {
            min-width: 150px;
            font-size: 13px;
        }
        .filter-group label {
            display: block;
            margin-bottom: 4px;
            color: #fff;
        }
        .filter-group select {
            width: 100%;
            background-color: #0c0c0c;
            color: #fff;
            padding: 6px 8px;
            border: 1px solid rgba(255,255,255,0.12);
            font-family: Poppins, sans-serif;
            font-size: 13px;
            outline: none;
            cursor: pointer;
        }


        .rooms-wrapper {
            background-color: #0e0e0e;
            border: 1px solid rgba(255,255,255,0.12);
        }

        .rooms-tabs {
            display: flex;
            background: #090909;
            border-bottom: 1px solid #5e5e5e;
            padding: 0 12px;
            overflow-x: auto;
        }
        .rooms-tabs a {
            position: relative;
            padding: 14px 16px;
            font-size: 1.125rem;
            font-weight: 500;
            text-transform: uppercase;
            white-space: nowrap;
            color: #6d6d6d;
            text-decoration: none;
        }
        .rooms-tabs a:hover { color: #fff; }
        .rooms-tabs a.active { color: #fff; }
        .rooms-tabs a.active::after {
            content: '';
            position: absolute;
            left: 0; bottom: 0;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, #f34a53, #cb3c6d);
        }


        .rooms-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 10px;
            padding: 10px;
        }
        @media (max-width: 1024px) { .rooms-grid { grid-template-columns: repeat(2, 1fr); } }
        @media (max-width: 640px)  { .rooms-grid { grid-template-columns: 1fr; } }

        .room-card {
            background-color: rgba(10, 10, 10, 0.78);
            border: 1px solid rgba(255,255,255,0.08);
            padding: 14px;
            cursor: pointer;
            transition: transform 0.15s ease-out, filter 0.3s ease-out, box-shadow 0.3s ease-out;
            display: flex;
            flex-direction: column;
            gap: 8px;
            position: relative;
        }
        .room-card:hover {
            transform: translateY(-4px);
            filter: brightness(1.15);
            box-shadow: 0 6px 12px rgba(0,0,0,0.45);
        }

        .room-title {
            font-size: 16px;
            font-weight: 600;
            color: #fff;
            line-height: 1.2;
        }

        .room-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 6px;
        }
        .room-tag {
            font-family: Poppins, sans-serif;
            background-color: #fff;
            color: #151515;
            padding: 1px 8px;
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            border-radius: 4px;
            line-height: 1.5;
        }

        .room-platforms {
            display: flex;
            gap: 8px;
            color: #cfcfcf;
            align-items: center;
        }
        .room-platforms svg {
            width: 18px;
            height: 18px;
            fill: #cfcfcf;
        }

        .room-status-line {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-top: 4px;
        }
        .room-slots {
            font-size: 12px;
            color: #c8c8c8;
        }
        .room-status {
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
        }
        .room-status.open { color: #62b713; }
        .room-status.full { color: #c0720b; }
        .room-status.closed { color: #9e2c2c; }

        .room-progress {
            width: 100%;
            height: 6px;
            background-color: rgba(255,255,255,.08);
            border-radius: 4px;
            overflow: hidden;
        }
        .room-progress-bar {
            height: 100%;
            background-color: #62b713;
            border-radius: 4px;
            transition: width .3s ease;
        }
        .room-progress-bar.full { background-color: #c0720b; }
        .room-progress-bar.closed { background-color: #9e2c2c; }

        .room-bottom {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-top: 6px;
            gap: 8px;
        }
        .room-countdown {
            display: flex;
            gap: 10px;
            color: rgba(255,255,255,0.75);
            font-size: 13px;
            line-height: 1.1;
        }
        .room-countdown .cd-value { text-align: center; }
        .room-countdown .cd-num { font-weight: 500; }
        .room-countdown .cd-sub { font-size: 10px; font-weight: 200; opacity: 0.8; }
        .room-owner {
            font-size: 11px;
            color: rgba(255,255,255,0.65);
            text-align: right;
        }

        .room-state {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-size: 11px;
            font-weight: 600;
        }
        .room-state.live { color: #e64949; }
        .room-state.ended { color: rgba(255,255,255,0.65); font-weight: 500; }
        .room-state-dot {
            display: inline-block;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: #e64949;
        }


        .footer {
            flex-shrink: 0;
            padding: 20px;
            text-align: center;
            font-size: 11px;
            color: #666;
            margin-top: 20px;
        }
        .footer a { color: #888; text-decoration: none; margin: 0 5px; }
        .footer a:hover { color: #fff; }
        .footer a.active { color: #fff; }
        .footer span { color: #444; }

        @media (max-width: 768px) {
            .nav-links { display: none; }
            .main-content { padding: 90px 10px 20px; }
            .filters { flex-wrap: wrap; justify-content: flex-start; }
        }


.rooms-user-view[hidden] { display: none !important; }
.user-socials {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 22px 0 28px;
}
.user-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 168px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #0d0e10;
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    text-decoration: none;
    font-family: Poppins, sans-serif;
    font-weight: 500;
    font-size: 15px;
    transition: border-color .2s ease, background-color .2s ease;
}
.user-social:hover {
    border-color: rgba(255,255,255,.22);
    background: #131418;
}
.user-social-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    border-radius: 0;
}
.user-social-icon svg {
    width: 20px;
    height: 20px;
}
.user-social-label {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.user-social-ext {
    width: 14px;
    height: 14px;
    opacity: .85;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.user-social-twitter .user-social-icon svg { fill: #fff; }
.user-social-twitch  .user-social-icon svg { fill: #9146ff; }
.rooms-empty {
    margin: 20px 0;
    text-align: center;
    color: #9b9b9b;
    font-family: Poppins, sans-serif;
    font-size: 14px;
}

.rooms-grid[hidden] { display: none !important; }
