:root {
    --mercury-main: #d980fa;
    --mercury-second: #0edd98;
    --mercury-dark-bg: #033954;
    --mercury-top-bg: #014c6b;
    --mercury-star: #ffd32a;
    --mercury-gray-bg: #f1f3f4;
    --mercury-text: #34495e;
    --mercury-heading: #151515;
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8fafc;
    color: #4a5568;
    line-height: 1.6;
}

a {
    color: var(--mercury-second);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--mercury-main);
}

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.box-100 { width: 100%; display: block; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }
.clearfix::after { content: ""; clear: both; display: table; }

/* Header */
.space-header-2-height {
    background-color: var(--mercury-dark-bg);
    width: 100%;
    z-index: 100;
}

.space-header-2-top-ins {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid var(--mercury-top-bg);
}

.space-header-2-top-soc a {
    color: #2f7694;
    display: inline-block;
    width: 32px;
    height: 32px;
    line-height: 30px;
    text-align: center;
    border: 1px solid #2f7694;
    border-radius: 50%;
    margin-right: 5px;
    font-size: 13px;
}

.space-header-2-top-soc a:hover {
    color: #ffffff;
    border-color: #ffffff;
    background-color: rgba(255,255,255,0.1);
}

.space-header-2-top-logo a {
    color: #ffffff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.logo-badge {
    background: linear-gradient(135deg, var(--mercury-main), var(--mercury-second));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 900;
}

.space-header-search {
    color: #2f7694;
    font-size: 18px;
    cursor: pointer;
}

.space-header-search:hover {
    color: #ffffff;
}

.space-mobile-menu-icon {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    flex-direction: column;
    justify-content: space-between;
}

.space-mobile-menu-icon div {
    height: 3px;
    background-color: #2f7694;
    border-radius: 2px;
}

.space-header-2-nav {
    background-color: var(--mercury-dark-bg);
    border-bottom: 2px solid var(--mercury-top-bg);
}

.space-header-2-nav-ins {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

ul.main-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

ul.main-menu > li {
    position: relative;
}

ul.main-menu > li > a {
    display: block;
    padding: 15px 18px;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border-bottom: 2px solid transparent;
}

ul.main-menu > li > a:hover,
ul.main-menu > li.current-menu-item > a {
    color: var(--mercury-second);
    border-bottom-color: var(--mercury-second);
}

ul.main-menu > li.top > a::before {
    content: "Top";
    color: #ffc312;
    background-color: var(--mercury-dark-bg);
    font-size: 9px;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 5px;
    text-transform: uppercase;
}

/* Search Overlay */
.space-header-search-block {
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 57, 84, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.space-header-search-block.active {
    display: flex;
}

.space-default-search-form input {
    width: 320px;
    max-width: 90vw;
    padding: 15px 20px;
    font-size: 16px;
    border: 2px solid var(--mercury-second);
    border-radius: 30px;
    outline: none;
    background: #fff;
}

.space-close-icon {
    cursor: pointer;
    width: 40px;
    height: 40px;
    top: 30px;
    right: 30px;
}

.space-close-icon .to-right,
.space-close-icon .to-left {
    width: 30px;
    height: 3px;
    background: #fff;
    top: 18px;
    left: 5px;
    position: absolute;
}
.space-close-icon .to-right { transform: rotate(45deg); }
.space-close-icon .to-left { transform: rotate(-45deg); }

/* Page Layout */
.space-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

.code-block-banner {
    margin: 15px 0;
    text-align: center;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 10px;
}

.code-block-banner a {
    display: block;
    background: linear-gradient(135deg, #014c6b 0%, #033954 100%);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid rgba(14, 221, 152, 0.3);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.code-block-banner a:hover {
    border-color: var(--mercury-second);
    transform: translateY(-2px);
}

/* Ranking Cards */
.space-organizations-3-archive-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.space-organizations-3-archive-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.space-organizations-3-archive-item:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-color: var(--mercury-second);
}

.space-organizations-3-archive-item-ins {
    display: grid;
    grid-template-columns: 2fr 4fr 2fr 3fr;
    align-items: center;
    gap: 15px;
}

.space-organizations-3-logo-box {
    position: relative;
    display: inline-block;
}

.bookmaker-logo-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: #1a202c;
    color: #fff;
    font-weight: 900;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border: 2px solid var(--mercury-second);
    overflow: hidden;
}

.bookmaker-logo-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.space-organizations-3-archive-item-count-2 {
    top: -8px;
    left: -8px;
    background-color: var(--mercury-second);
    color: #ffffff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-weight: 900;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    position: absolute;
}

.space-organizations-3-archive-item:first-child .space-organizations-3-archive-item-count-2 {
    background-color: #ff4757;
}

.space-organizations-3-title-box a {
    font-size: 18px;
    font-weight: 900;
    color: var(--mercury-heading);
    margin-top: 5px;
    display: block;
}

.space-organizations-3-archive-item-terms-ins {
    font-size: 13px;
    color: #4a5568;
    background: #f8fafc;
    padding: 12px;
    border-radius: 8px;
    border-left: 3px solid var(--mercury-second);
}

.space-organizations-3-archive-item-terms-ins strong {
    color: var(--mercury-dark-bg);
    font-size: 14px;
}

.star-rating {
    color: var(--mercury-star);
    font-size: 14px;
    margin-bottom: 4px;
}

.space-organizations-3-archive-item-rating-box span {
    font-size: 20px;
    font-weight: 900;
    color: var(--mercury-heading);
}

.space-organizations-archive-item-button-notice p {
    font-size: 11px;
    color: #a0aec0;
}

.space-organizations-3-archive-item-button-ins {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.space-organizations-3-archive-item-button-ins a {
    display: block;
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-play-now {
    color: #ffffff !important;
    background-color: var(--mercury-second) !important;
    box-shadow: 0px 4px 15px rgba(14,221,152, 0.4) !important;
}

.btn-play-now:hover {
    box-shadow: 0px 6px 20px rgba(14,221,152, 0.7) !important;
    transform: translateY(-1px);
}

.btn-read-review {
    color: #ffffff !important;
    background-color: #b2bec3 !important;
}

.btn-read-review:hover {
    background-color: #636e72 !important;
}

/* Article Content */
.article-content {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.article-content h1 {
    font-size: 26px;
    color: var(--mercury-heading);
    margin-bottom: 20px;
    line-height: 1.3;
}

.article-content h2 {
    font-size: 22px;
    color: var(--mercury-dark-bg);
    margin: 25px 0 15px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--mercury-gray-bg);
}

.article-content h3 {
    font-size: 18px;
    color: var(--mercury-heading);
    margin: 20px 0 10px 0;
}

.article-content p {
    margin-bottom: 15px;
    font-size: 15px;
    color: #4a5568;
}

.article-content ul {
    margin: 15px 0 20px 20px;
}

.article-content ul li {
    margin-bottom: 8px;
    font-weight: 500;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}

.article-content table th,
.article-content table td {
    border: 1px solid #e2e8f0;
    padding: 10px 12px;
    text-align: left;
}

.article-content table th {
    background: var(--mercury-dark-bg);
    color: #fff;
}

.article-content table tr:nth-child(even) {
    background: #f8fafc;
}

dl {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin: 20px 0;
}

dt {
    font-weight: 700;
    color: var(--mercury-dark-bg);
    font-size: 16px;
    margin-top: 10px;
}

dd {
    margin-left: 0;
    margin-bottom: 15px;
    color: #718096;
    font-size: 14px;
}

/* Brand Detail Hero */
.brand-hero {
    background: linear-gradient(135deg, var(--mercury-dark-bg), #0f172a);
    color: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.brand-hero-logo {
    width: 120px;
    height: 120px;
    background: #1a202c;
    border-radius: 16px;
    border: 3px solid var(--mercury-second);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    overflow: hidden;
}

.brand-hero-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-hero-info h1 {
    font-size: 32px;
    margin-bottom: 8px;
    color: #fff;
}

.brand-hero-info .rating {
    font-size: 22px;
    color: var(--mercury-star);
    margin-bottom: 10px;
}

.brand-hero-cta {
    margin-top: 15px;
}

.brand-hero-cta a {
    display: inline-block;
    background: var(--mercury-second);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 6px 20px rgba(14,221,152,0.4);
}

.brand-hero-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(14,221,152,0.6);
}

/* Pros Cons */
.pros-cons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 25px 0;
}

.pros, .cons {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.pros h3 { color: #0edd98; }
.cons h3 { color: #ff4757; }

.pros ul, .cons ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pros li::before { content: "✓ "; color: #0edd98; font-weight: bold; }
.cons li::before { content: "✗ "; color: #ff4757; font-weight: bold; }

/* News Grid */
.space-news-3-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.space-news-3-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border: 1px solid #edf2f7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.space-news-3-item-ins {
    padding: 18px;
}

.space-news-3-item-img-category a {
    background-color: var(--mercury-second);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 3px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.space-news-3-item-title a {
    font-size: 15px;
    font-weight: 700;
    color: var(--mercury-heading);
    margin: 10px 0;
    display: block;
    line-height: 1.4;
}

.space-news-3-item-excerpt {
    font-size: 13px;
    color: #718096;
    margin-bottom: 15px;
}

.space-news-3-item-meta {
    font-size: 11px;
    color: #a0aec0;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f7fafc;
    padding-top: 10px;
}

/* Footer */
.space-footer {
    background-color: var(--mercury-dark-bg);
    color: #a0aec0;
    margin-top: 40px;
    padding-top: 40px;
}

.space-footer-ins {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.space-block-title span {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
    display: inline-block;
}

.space-block-title span::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--mercury-main);
}

.space-footer-copy {
    background-color: var(--mercury-top-bg);
    padding: 20px 0;
    margin-top: 30px;
    font-size: 13px;
}

.space-footer-copy-left a {
    color: var(--mercury-second);
    font-weight: 700;
}

.space-footer-menu {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.space-footer-menu a {
    color: #cbd5e0;
}

/* Floating */
.space-to-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99;
}

#scrolltop {
    background-color: var(--mercury-second);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    cursor: pointer;
}

.ds-popup {
    position: fixed;
    bottom: 15px;
    right: 15px;
    width: 320px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    z-index: 999;
    padding: 15px;
    border: 2px solid var(--mercury-second);
    display: block;
}

.ds-popup-close {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4757;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.ds-popup-content a {
    display: block;
    background: linear-gradient(135deg, var(--mercury-dark-bg), #0f172a);
    color: #fff;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

/* Mobile */
.space-mobile-menu {
    display: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
}

.space-mobile-menu.active {
    display: block;
}

.space-mobile-menu-block {
    width: 280px;
    height: 100%;
    background-color: var(--mercury-dark-bg);
    padding: 20px;
    color: #fff;
}

.mobile-menu {
    list-style: none;
    margin-top: 30px;
}

.mobile-menu li a {
    display: block;
    padding: 12px 0;
    color: #fff;
    font-weight: 700;
    border-bottom: 1px solid var(--mercury-top-bg);
}

@media (max-width: 991px) {
    .space-organizations-3-archive-item-ins {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .space-organizations-3-logo-title-box {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    ul.main-menu { display: none; }
    .space-mobile-menu-icon { display: flex; }
    .space-footer-menu { justify-content: center; margin-top: 10px; }
    .space-footer-copy-left { text-align: center; }
    .pros-cons { grid-template-columns: 1fr; }
    .brand-hero { flex-direction: column; text-align: center; }
}

/* Full ranking table */
.full-ranking-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.full-ranking-table th {
    background: var(--mercury-dark-bg);
    color: #fff;
    padding: 12px 10px;
    text-align: left;
}

.full-ranking-table td {
    padding: 12px 10px;
    border-bottom: 1px solid #edf2f7;
}

.full-ranking-table tr:hover {
    background: #f0fdf4;
}

.full-ranking-table a {
    font-weight: 700;
}
