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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 100vh;
    color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background: linear-gradient(90deg, #020d1f 0%, #0a1628 100%);
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(2, 13, 31, 0.5);
    border-bottom: 2px solid #1e3a5f;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

.logo h1 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo span {
    color: #ffd700;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 25px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: rgba(255,255,255,0.2);
}

.hero {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(2, 13, 31, 0.8) 0%, rgba(30, 58, 95, 0.3) 100%);
    border-radius: 20px;
    margin: 30px 0;
    border: 1px solid #1e3a5f;
}

.hero h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #ffd700;
}

.hero p {
    font-size: 1.1rem;
    color: #ccc;
}

.current-date {
    background: linear-gradient(90deg, #1e3a5f 0%, #2d4a6f 100%);
    padding: 10px 25px;
    border-radius: 30px;
    display: inline-block;
    margin-top: 15px;
    font-weight: 600;
}

.results-section {
    padding: 30px 0;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #ffd700;
    text-transform: uppercase;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.result-card {
    background: linear-gradient(145deg, #0a1628 0%, #020d1f 100%);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    border: 2px solid #1e3a5f;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.5);
}

.game-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1e3a5f;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.result-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    margin: 15px 0;
}

.result-time {
    color: #9ca3af;
    font-size: 0.95rem;
}

.waiting {
    color: #6ee7b7;
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chart-section {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
    text-align: center;
}

.chart-section .results-table-container {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #1e3a5f #111827;
}

.chart-section .results-table-container::-webkit-scrollbar {
    height: 8px;
}

.chart-section .results-table-container::-webkit-scrollbar-track {
    background: #111827;
    border-radius: 4px;
}

.chart-section .results-table-container::-webkit-scrollbar-thumb {
    background: #1e3a5f;
    border-radius: 4px;
}

.chart-table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    margin-top: 20px;
}

.chart-table th,
.chart-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #374151;
}

.chart-table th {
    background: #1e3a5f;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
}

.chart-table tr:nth-child(even) {
    background: rgba(255,255,255,0.05);
}

.chart-table tr:hover {
    background: rgba(233, 69, 96, 0.2);
}

footer {
    background: #111827;
    padding: 30px 0;
    text-align: center;
    margin-top: 40px;
    border-top: 2px solid #1e3a5f;
}

footer p {
    color: #9ca3af;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-links a {
    color: #60a5fa;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffd700;
}

.page-content {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-radius: 15px;
    padding: 40px 30px;
    margin: 30px 0;
}

.page-title {
    color: #ffd700;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

.page-body {
    color: #d1d5db;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
}

.page-updated {
    color: #6b7280;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 30px;
}

.disclaimer {
    background: rgba(233, 69, 96, 0.1);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #1e3a5f;
}

.disclaimer p {
    color: #f87171;
    font-size: 0.9rem;
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.8rem;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 1.8rem;
    }
    
    .mobile-menu {
        display: block;
    }
    
    nav {
        display: none;
        width: 100%;
        margin-top: 15px;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .header-content {
        flex-direction: column;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .result-number {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .chart-table th,
    .chart-table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.4rem;
    }
    
    .hero {
        padding: 25px 15px;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .result-card {
        padding: 20px;
    }
    
    .game-name {
        font-size: 1.2rem;
    }
    
    .result-number {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 10px;
    }
}

.refresh-btn {
    background: linear-gradient(90deg, #1e3a5f 0%, #2d4a6f 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.refresh-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(233, 69, 96, 0.4);
}

.subtitle {
    text-align: center;
    color: #9ca3af;
    margin-top: -20px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.results-table-container {
    overflow-x: auto;
    border-radius: 15px;
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 500px;
}

.results-table th {
    background: #1e3a5f;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    padding: 15px 12px;
    text-align: center;
    border: 1px solid #374151;
}

.results-table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #374151;
    color: #fff;
}

.results-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.03);
}

.results-table tbody tr:hover {
    background: rgba(233, 69, 96, 0.15);
}

.game-name-cell {
    font-weight: 700;
    font-size: 1.1rem;
    color: #1e3a5f;
    text-transform: uppercase;
    text-align: left !important;
    padding-left: 20px !important;
}

.time-cell {
    color: #9ca3af;
    font-size: 0.9rem;
}

.result-cell {
    font-size: 1.3rem;
    font-weight: 700;
    color: #6b7280;
}

.result-cell.has-result {
    color: #ffd700;
}

.result-cell.today-result {
    color: #10b981;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .results-table th,
    .results-table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
    
    .game-name-cell {
        padding-left: 10px !important;
    }
    
    .result-cell {
        font-size: 1.1rem;
    }
    
    .result-cell.today-result {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .results-table {
        min-width: 350px;
    }
    
    .results-table th,
    .results-table td {
        padding: 8px 5px;
        font-size: 0.8rem;
    }
    
    .result-cell {
        font-size: 1rem;
    }
    
    .result-cell.today-result {
        font-size: 1.1rem;
    }
}

.game-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
}

.record-chart-link {
    font-size: 0.75rem;
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.record-chart-link:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.game-time-inline {
    font-size: 0.75rem;
    color: #9ca3af;
}

.chart-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, rgba(233, 69, 96, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    border-radius: 20px;
    margin: 30px 0;
}

.game-chart-title {
    font-size: 2rem;
    color: #1e3a5f;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.chart-subtitle {
    color: #9ca3af;
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.filter-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    color: #9ca3af;
    font-weight: 500;
}

.filter-group select {
    background: #1f2937;
    color: #fff;
    border: 2px solid #374151;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-group select:hover,
.filter-group select:focus {
    border-color: #1e3a5f;
    outline: none;
}

.filter-btn {
    background: linear-gradient(90deg, #1e3a5f 0%, #2d4a6f 100%);
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(233, 69, 96, 0.4);
}

.monthly-chart-section {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}

.monthly-chart-table {
    width: 100%;
    border-collapse: collapse;
}

.monthly-chart-table th {
    background: #1e3a5f;
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    padding: 15px;
    text-align: center;
    border: 1px solid #374151;
}

.monthly-chart-table td {
    padding: 12px 15px;
    text-align: center;
    border: 1px solid #374151;
    color: #fff;
}

.monthly-chart-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.03);
}

.monthly-chart-table tbody tr:hover {
    background: rgba(233, 69, 96, 0.15);
}

.monthly-chart-table .date-cell {
    font-weight: 500;
    color: #9ca3af;
}

.monthly-chart-table .day-cell {
    color: #60a5fa;
    font-weight: 500;
}

.monthly-chart-table .result-cell {
    font-size: 1.5rem;
    font-weight: 700;
    color: #6b7280;
}

.monthly-chart-table .result-cell.has-result {
    color: #ffd700;
}

.monthly-chart-table tr.future-date {
    opacity: 0.5;
}

.chart-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.stat-box {
    background: rgba(233, 69, 96, 0.1);
    padding: 15px 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid #1e3a5f;
}

.stat-label {
    display: block;
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.stat-value {
    display: block;
    color: #ffd700;
    font-size: 1.8rem;
    font-weight: 700;
}

.back-link {
    text-align: center;
    margin: 30px 0;
}

.back-btn {
    display: inline-block;
    background: linear-gradient(90deg, #374151 0%, #4b5563 100%);
    color: #fff;
    text-decoration: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: linear-gradient(90deg, #1e3a5f 0%, #2d4a6f 100%);
    transform: scale(1.05);
}

.seo-intro {
    background: rgba(233, 69, 96, 0.1);
    padding: 20px 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 4px solid #1e3a5f;
}

.seo-intro p {
    color: #d1d5db;
    line-height: 1.8;
    font-size: 0.95rem;
}

.seo-intro strong {
    color: #ffd700;
}

.faq-section {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-radius: 15px;
    padding: 30px;
    margin: 30px 0;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #374151;
}

.faq-question {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.faq-answer {
    color: #9ca3af;
    line-height: 1.7;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .seo-intro {
        padding: 15px 20px;
    }
    
    .seo-intro p {
        font-size: 0.9rem;
    }
    
    .faq-section {
        padding: 20px;
    }
    
    .faq-question {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .game-chart-title {
        font-size: 1.5rem;
    }
    
    .filter-form {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-group select {
        padding: 8px 12px;
    }
    
    .monthly-chart-table th,
    .monthly-chart-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
    
    .monthly-chart-table .result-cell {
        font-size: 1.2rem;
    }
    
    .chart-stats {
        gap: 15px;
    }
    
    .stat-box {
        padding: 12px 20px;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }
}

@media (max-width: 480px) {
    .record-chart-link {
        font-size: 0.65rem;
    }
    
    .game-chart-title {
        font-size: 1.2rem;
    }
    
    .monthly-chart-table th,
    .monthly-chart-table td {
        padding: 8px 5px;
        font-size: 0.8rem;
    }
    
    .monthly-chart-table .result-cell {
        font-size: 1rem;
    }
}

.chart-filter-form {
    flex-wrap: wrap;
    gap: 15px;
}

.chart-filter-form .filter-group select {
    min-width: 140px;
}

.no-game-selected {
    background: linear-gradient(145deg, #1f2937 0%, #111827 100%);
    border-radius: 15px;
    padding: 40px 30px;
    margin: 30px 0;
    text-align: center;
}

.info-box {
    margin-bottom: 30px;
}

.info-box h3 {
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.info-box p {
    color: #9ca3af;
    font-size: 1.1rem;
}

.quick-games h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.game-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.game-link-btn {
    background: linear-gradient(90deg, #1e3a5f 0%, #2d4a6f 100%);
    color: #fff;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.game-link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 58, 95, 0.5);
    background: linear-gradient(90deg, #2d4a6f 0%, #3d5a7f 100%);
}

nav a.active {
    color: #ffd700;
}

@media (max-width: 768px) {
    .chart-filter-form .filter-group {
        width: 100%;
        justify-content: center;
    }
    
    .chart-filter-form .filter-group select {
        flex: 1;
        max-width: 200px;
    }
    
    .game-link-btn {
        padding: 10px 15px;
        font-size: 0.85rem;
    }
}

.game-cards-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 25px auto 10px;
    padding: 10px 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.header-game {
    color: #ffd700;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 200px;
    text-transform: uppercase;
}

.header-results {
    color: #ffd700;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 80px;
    text-align: center;
    text-transform: uppercase;
}

.header-action {
    color: #ffd700;
    font-weight: 700;
    font-size: 0.9rem;
    min-width: 120px;
    text-align: center;
    text-transform: uppercase;
}

.game-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.game-card {
    background: linear-gradient(145deg, #1a1a2e 0%, #0f0f23 100%);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 10px 20px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.2);
}

.game-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 200px;
}

.game-card-name {
    color: #ffd700;
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

.game-card-time {
    background: #000000;
    color: #ffd700;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
}

.game-card-results {
    display: flex;
    gap: 15px;
    align-items: center;
}

.result-box {
    background: rgba(30, 58, 95, 0.3);
    border-radius: 6px;
    padding: 5px 15px;
    text-align: center;
    min-width: 80px;
}

.result-box.today {
    background: rgba(233, 69, 96, 0.15);
    border: 1px solid rgba(233, 69, 96, 0.3);
}

.result-label {
    display: block;
    color: #ffd700;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.result-value {
    display: block;
    font-family: 'Orbitron', monospace;
    font-weight: 900;
    font-size: 18px;
    color: #6b7280;
}

.result-value.has-result {
    background: linear-gradient(135deg, #ffd700 0%, #ff69b4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.result-value.today-result {
    background: linear-gradient(135deg, #ff69b4 0%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(255, 105, 180, 0.5));
}

.game-card-link {
    background: linear-gradient(90deg, #1e3a5f 0%, #2d4a6f 100%);
    color: #fff;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.game-card-link:hover {
    background: linear-gradient(90deg, #ffd700 0%, #ffb700 100%);
    color: #000;
}

@media (max-width: 768px) {
    .game-cards-header {
        display: none;
    }
    
    .game-card {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        padding: 12px 15px;
        gap: 8px 15px;
    }
    
    .game-card-header {
        grid-column: 1 / -1;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }
    
    .game-card-name {
        font-size: 1.1rem;
    }
    
    .game-card-time {
        font-size: 0.6rem;
        padding: 2px 8px;
    }
    
    .game-card-link {
        grid-column: 1;
        grid-row: 2;
        padding: 8px 12px;
        font-size: 0.75rem;
        white-space: nowrap;
        align-self: flex-start;
    }
    
    .game-card-results {
        grid-column: 2;
        grid-row: 2;
        justify-content: flex-end;
        align-items: flex-start;
        gap: 10px;
    }
    
    .result-box {
        padding: 8px 12px;
        min-width: 55px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
    }
    
    .result-label {
        font-size: 0.6rem;
    }
    
    .result-value {
        font-size: 14px;
    }
}
