* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(180deg, #f4f7fb 0%, #eef3f8 100%);
    color: #1a2332;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.arena-bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(180,200,220,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(180,200,220,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.arena-scan-line {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(62,207,142,0.02) 50%,
        transparent 100%);
    background-size: 100% 200%;
    animation: scanMove 8s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes scanMove {
    0% { background-position: 0 -100%; }
    100% { background-position: 0 100%; }
}

.arena-layout {
    display: grid;
    grid-template-columns: 72px 1fr 220px;
    max-width: 1440px;
    margin: 0 auto;
    min-height: calc(100vh - 60px);
    position: relative;
    z-index: 1;
}

.sports-rail {
    position: sticky;
    top: 60px;
    height: fit-content;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    z-index: 10;
}
.rail-header {
    font-size: 9px;
    font-weight: 700;
    color: rgba(90,106,126,0.55);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}
.rail-btn {
    width: 52px;
    padding: 8px 4px;
    border-radius: 14px;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(200,210,225,0.3);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    transition: all 0.25s ease;
    font-size: 18px;
}
.rail-btn:hover {
    background: rgba(255,255,255,0.9);
    border-color: var(--cat-color, #3498db);
    box-shadow: 0 4px 15px rgba(50,80,120,0.08);
    transform: scale(1.08);
}
.rail-btn:active {
    transform: scale(0.95);
}
.rail-btn.active {
    background: rgba(255,255,255,0.95);
    border-color: var(--cat-color, #3498db);
    box-shadow: 0 0 0 2px var(--cat-color, #3498db), 0 4px 15px rgba(50,80,120,0.08);
}
.rail-label {
    font-size: 8px;
    font-weight: 600;
    color: #5a6a7e;
    letter-spacing: 0.3px;
}

.arena-main {
    padding: 0 20px;
    min-width: 0;
}

.tactical-search {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
}
.tactical-search.search-focus {
    box-shadow: 0 0 0 2px #3ecf8e, 0 8px 30px rgba(62,207,142,0.1);
    border-radius: 16px;
}
.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(200,210,225,0.4);
    border-radius: 14px;
    padding: 4px 6px 4px 14px;
    transition: all 0.3s ease;
}
.search-input-wrap:focus-within {
    border-color: #3ecf8e;
    box-shadow: 0 0 0 3px rgba(62,207,142,0.1);
}
.search-icon {
    font-size: 14px;
    flex-shrink: 0;
}
.search-input-wrap input {
    flex: 1;
    background: none;
    border: none;
    padding: 10px 8px;
    color: #1a2332;
    font-size: 14px;
    outline: none;
    min-width: 0;
}
.search-input-wrap input::placeholder {
    color: rgba(90,106,126,0.55);
}
.search-btn {
    background: rgba(62,207,142,0.1);
    border: 1px solid rgba(62,207,142,0.2);
    color: #3ecf8e;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.search-btn:hover {
    background: rgba(62,207,142,0.18);
}
.search-btn:active {
    transform: scale(0.92);
}
.search-results {
    margin-top: 8px;
    max-height: 200px;
    overflow-y: auto;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    border: 1px solid rgba(200,210,225,0.3);
    padding: 8px;
}
.search-count {
    font-size: 11px;
    color: rgba(90,106,126,0.55);
    margin-bottom: 6px;
    padding: 4px 8px;
}
.search-result-item {
    display: block;
    padding: 8px 10px;
    font-size: 13px;
    color: #1a2332;
    text-decoration: none;
    border-radius: 8px;
    border-left: 3px solid var(--cat-color, #3498db);
    margin-bottom: 4px;
    transition: all 0.2s ease;
}
.search-result-item:hover {
    background: rgba(62,207,142,0.06);
}

.arena-matrix {
    position: relative;
    z-index: 1;
}

.arena-section {
    position: relative;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}
.arena-section.visible {
    opacity: 1;
    transform: translateY(0);
}
.section-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 10px 16px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 14px;
    border-left: 4px solid var(--cat-color, #3498db);
}
.section-icon {
    font-size: 22px;
}
.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1a2332;
    letter-spacing: 0.5px;
}
.section-count {
    font-size: 12px;
    color: rgba(90,106,126,0.55);
    margin-left: auto;
}
.section-random-btn {
    background: rgba(62,207,142,0.08);
    border: 1px solid rgba(62,207,142,0.2);
    color: #3ecf8e;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}
.section-random-btn:hover {
    background: rgba(62,207,142,0.15);
    box-shadow: 0 4px 12px rgba(62,207,142,0.1);
}
.section-random-btn:active {
    transform: scale(0.9);
}

.match-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 16px;
}
@media (min-width: 768px) {
    .match-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}
@media (min-width: 1024px) {
    .match-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

.pulse-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 768px) {
    .pulse-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}
@media (min-width: 1024px) {
    .pulse-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
    }
}

.hero-panel {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 40px rgba(50,80,120,0.08);
}
.hero-panel:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 50px rgba(50,80,120,0.14);
    border-color: var(--cat-color, #3498db);
}
.hero-panel:hover .panel-image {
    transform: scale(1.05);
}
.hero-panel:hover .momentum-pulse {
    opacity: 1;
}

.match-panel {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.9);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 40px rgba(50,80,120,0.08);
}
.match-panel:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 20px 50px rgba(50,80,120,0.14);
    border-color: var(--cat-color, #3498db);
}
.match-panel:hover .panel-image {
    transform: scale(1.05);
}
.match-panel:hover .momentum-pulse {
    opacity: 1;
}

.pulse-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.9);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 40px rgba(50,80,120,0.08);
}
.pulse-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(50,80,120,0.14);
    border-color: var(--cat-color, #3498db);
}
.pulse-card:hover .panel-image {
    transform: scale(1.05);
}

.panel-link {
    text-decoration: none;
    color: #1a2332;
    display: block;
}
.panel-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
}
.hero-panel .panel-image {
    height: 260px;
}
.pulse-card .panel-image {
    height: 140px;
}
.panel-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(26,35,50,0.5) 100%);
    pointer-events: none;
}
.panel-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.3px;
    z-index: 2;
}
.panel-info {
    padding: 12px 16px;
}
.panel-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a2332;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
    letter-spacing: 0.2px;
}
.pulse-card .panel-title {
    font-size: 12px;
}

.live-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255,59,59,0.9);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 2;
    animation: livePulse 2s ease-in-out infinite;
}
.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    animation: liveFlicker 1.5s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,59,59,0.4); }
    50% { box-shadow: 0 0 0 6px rgba(255,59,59,0); }
}
@keyframes liveFlicker {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hot-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(255,159,67,0.9);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 2;
}
.hot-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fff;
    animation: hotPulse 1.8s ease-in-out infinite;
}
@keyframes hotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.momentum-pulse {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--cat-color, #3498db);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: momentumGlow 2s ease-in-out infinite;
}
@keyframes momentumGlow {
    0%, 100% { opacity: 0; box-shadow: 0 0 8px var(--cat-color, #3498db); }
    50% { opacity: 1; box-shadow: 0 0 16px var(--cat-color, #3498db); }
}
.hero-panel:hover .momentum-pulse,
.match-panel:hover .momentum-pulse {
    opacity: 1;
}

.momentum-feed {
    position: sticky;
    top: 60px;
    height: fit-content;
    padding: 16px 12px;
    z-index: 10;
}
.feed-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(200,210,225,0.3);
}
.feed-icon {
    font-size: 16px;
}
.feed-title {
    font-size: 12px;
    font-weight: 700;
    color: #1a2332;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.feed-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.momentum-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(200,210,225,0.3);
    transition: all 0.3s ease;
}
.momentum-item:hover {
    background: rgba(255,255,255,0.95);
    box-shadow: 0 4px 12px rgba(50,80,120,0.06);
}
.momentum-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.momentum-label {
    font-size: 10px;
    font-weight: 600;
    color: #5a6a7e;
    width: 50px;
    flex-shrink: 0;
}
.momentum-bar {
    flex: 1;
    height: 4px;
    background: rgba(200,210,225,0.3);
    border-radius: 2px;
    overflow: hidden;
}
.momentum-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1s ease;
}
.momentum-value {
    font-size: 10px;
    font-weight: 700;
    color: #1a2332;
    min-width: 30px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.ad-slot-wrap {
    margin: 16px 0;
}

.sport-dock {
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(200,210,225,0.4);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(50,80,120,0.1);
}
.dock-btn {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(62,207,142,0.06);
    border: 1px solid rgba(200,210,225,0.3);
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.dock-btn:hover {
    background: rgba(62,207,142,0.12);
    border-color: var(--cat-color, #3498db);
    box-shadow: 0 4px 12px rgba(50,80,120,0.08);
    transform: scale(1.1);
}
.dock-btn:active {
    transform: scale(0.9);
}

.random-game-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
}
.random-game-modal.active {
    pointer-events: auto;
    opacity: 1;
}
.random-game-overlay {
    position: absolute;
    inset: 0;
    background: rgba(244,247,251, 0.85);
    backdrop-filter: blur(6px);
}
.random-game-content {
    position: relative;
    z-index: 1;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(200,210,225,0.4);
    border-radius: 24px;
    padding: 24px;
    max-width: 360px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(50,80,120,0.12);
    transform: scale(0.9);
    transition: all 0.3s ease;
}
.random-game-modal.active .random-game-content {
    transform: scale(1);
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: #5a6a7e;
    font-size: 22px;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}
.modal-close:hover {
    background: rgba(62,207,142,0.08);
}
.modal-close:active {
    transform: scale(0.9);
}
.modal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}
.modal-icon {
    font-size: 20px;
}
.modal-header h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a2332;
}
.random-game-card {
    margin-bottom: 16px;
}
.random-card-link {
    text-decoration: none;
    color: #1a2332;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.random-card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(50,80,120,0.1);
}
.random-card-link:active {
    transform: scale(0.97);
}
.random-card-image {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
}
.random-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
}
.random-card-info {
    padding: 12px;
}
.random-card-info h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #1a2332;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.try-another-btn {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    background: rgba(62,207,142,0.08);
    border: 1px solid rgba(62,207,142,0.2);
    color: #3ecf8e;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}
.try-another-btn:hover {
    background: rgba(62,207,142,0.15);
    box-shadow: 0 4px 15px rgba(62,207,142,0.1);
}
.try-another-btn:active {
    transform: scale(0.97);
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
@media (min-width: 768px) {
    .related-articles-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.related-article {
    background: rgba(255,255,255,0.82);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.9);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(50,80,120,0.08);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.related-article:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px rgba(50,80,120,0.14);
    border-color: var(--cat-color, #3498db);
}
.related-thumb {
    width: 100%;
    height: 100px;
    background-size: cover;
    background-position: center;
    border-bottom: 2px solid var(--cat-color, #3498db);
}
.related-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 12px;
    color: #fff;
}

@media (max-width: 1200px) {
    .arena-layout {
        grid-template-columns: 1fr;
    }
    .sports-rail {
        display: none;
    }
    .momentum-feed {
        display: none;
    }
    .sport-dock {
        display: flex;
    }
}

@media (max-width: 768px) {
    .arena-layout {
        grid-template-columns: 1fr;
    }
    .arena-main {
        padding: 0 12px;
    }
    .hero-zone {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0;
    }
    .hero-panel .panel-image {
        height: 200px;
    }
    .match-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .pulse-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .match-panel .panel-image {
        height: 140px;
    }
    .pulse-card .panel-image {
        height: 100px;
    }
    .panel-title {
        font-size: 12px;
    }
    .pulse-card .panel-title {
        font-size: 11px;
    }
    .section-header {
        padding: 8px 12px;
        gap: 8px;
    }
    .section-icon {
        font-size: 18px;
    }
    .section-title {
        font-size: 15px;
    }
    .section-count {
        font-size: 10px;
    }
    .arena-section {
        margin-bottom: 28px;
    }
    .live-ribbon {
        padding: 8px 12px;
    }
    .ribbon-label {
        font-size: 10px;
    }
    .ribbon-item {
        font-size: 11px;
    }
    .sport-dock {
        bottom: 12px;
        padding: 6px 10px;
        gap: 4px;
        border-radius: 16px;
    }
    .dock-btn {
        width: 34px;
        height: 34px;
        font-size: 16px;
        border-radius: 8px;
    }
    .tactical-search {
        margin-bottom: 14px;
    }
    .search-input-wrap {
        padding: 3px 5px 3px 12px;
    }
    .search-input-wrap input {
        padding: 8px 6px;
        font-size: 13px;
    }
    .search-btn {
        width: 34px;
        height: 34px;
    }
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .related-thumb {
        height: 80px;
    }
}

@media (max-width: 480px) {
    .match-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .pulse-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .hero-panel .panel-image {
        height: 180px;
    }
    .match-panel .panel-image {
        height: 160px;
    }
    .pulse-card .panel-image {
        height: 120px;
    }
    .panel-info {
        padding: 10px 12px;
    }
    .panel-title {
        font-size: 13px;
    }
    .arena-section {
        margin-bottom: 20px;
    }
    .section-header {
        margin-bottom: 12px;
    }
    .sport-dock {
        bottom: 8px;
        padding: 5px 8px;
        gap: 3px;
    }
    .dock-btn {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .related-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
