* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #000;
    color: #fff;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

header {
    background: #1a1a1a;
    padding: 20px;
    border-bottom: 1px solid #333;
    text-align: center;
}

header h1 {
    font-size: 32px;
    margin-bottom: 5px;
}

header p {
    color: #888;
    font-size: 14px;
}

.navbar {
    background: #1b1b1b;
    padding: 10px 0;
    border-bottom: 1px solid #333;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar ul {
    list-style: none;
    display: flex;
}

.navbar ul li {
    margin-right: 30px;
}

.navbar ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.navbar ul li a:hover,
.navbar ul li a.active {
    color: #31641E;
    border-bottom: 2px solid #31641E;
    padding-bottom: 5px;
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    gap: 20px;
}

.predictions-container {
    flex: 1;
}

.hero {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border-radius: 5px;
    margin-bottom: 40px;
}

.hero-content h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.hero-content p {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary {
    background: #31641E;
    color: #fff;
}

.btn-primary:hover {
    background: #285119;
}

.h2221 {
    margin-bottom: 30px;
}

.h2221 h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.predictions-filter {
    margin-bottom: 20px;
}

#team-search {
    width: 100%;
    max-width: 300px;
    padding: 10px;
    background: #262626;
    border: 1px solid #444;
    color: #fff;
    border-radius: 3px;
    font-size: 14px;
}

#team-search::placeholder {
    color: #818181;
}

.timezone-container {
    margin-bottom: 20px;
    font-size: 14px;
    color: #aaa;
}

.timezone-container span:nth-child(1)::after {
    content: "▼";
    margin-left: 5px;
    font-size: 10px;
}

#tennisTable {
    width: 100%;
    border-collapse: collapse;
    background: #000;
}

#tennisTable thead {
    background: #000;
    position: sticky;
    top: 0;
}

#tennisTable th {
    background: #1b1b1b;
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #333;
    font-weight: bold;
    color: #fff;
}

#tennisTable td {
    padding: 15px;
    border-bottom: 1px solid #2f2f2f;
}

#tennisTable tbody tr {
    background: #000;
    transition: background 0.2s;
}

#tennisTable tbody tr:hover {
    background: #1a1a1a;
}

#tennisTable tbody tr.league-row {
    background: #001529;
}

#tennisTable tbody tr.league-row td {
    background: #262627;
    font-weight: bold;
    padding: 10px 15px;
}

#tennisTable tbody tr.date-bar-row {
    background: #0a0a0a;
}

#tennisTable tbody tr.date-bar-row td {
    padding: 5px 15px;
}

.date-bar-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0;
    background: #0a0a0a;
    padding: 5px;
    border-radius: 3px;
}

.arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid #31641E;
    background: #1a1a1a;
    cursor: pointer;
    color: #31641E;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s;
    user-select: none;
    border-radius: 3px;
    flex-shrink: 0;
}

.arrow:hover {
    background: #31641E;
    color: #000;
    box-shadow: 0 0 10px rgba(49, 100, 30, 0.5);
}

.arrow:active {
    transform: scale(0.95);
}

.date-bar {
    flex: 1;
    position: relative;
    background: #1b1b1b;
    border: 1px solid #333;
    border-radius: 3px;
    padding: 10px 15px;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.2s;
}

.date-bar:hover {
    border-color: #31641E;
}

#todayDate {
    color: #31641E;
    font-weight: bold;
    font-size: 14px;
}

.calendar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1b1b1b;
    border: 1px solid #333;
    border-top: none;
    border-radius: 0 0 3px 3px;
    padding: 10px;
    z-index: 1000;
    margin-top: -1px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    display: none;
}

.calendar-header {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    justify-content: center;
}

.calendar-header select {
    background: #262626;
    color: #fff;
    border: 1px solid #333;
    padding: 5px;
    border-radius: 3px;
    cursor: pointer;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 10px;
}

.calendar-day {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #262626;
    border: 1px solid #333;
    border-radius: 3px;
    font-size: 12px;
    color: #888;
    user-select: none;
}

.calendar-day.available {
    background: #1b1b1b;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
}

.calendar-day.available:hover {
    background: #31641E;
    color: #fff;
}

.calendar-day.available.selected {
    background: #31641E;
    color: #fff;
    font-weight: bold;
    border-color: #31641E;
}

.clos {
    text-align: center;
    color: #888;
    cursor: pointer;
    margin: 10px 0 0;
    font-size: 12px;
    transition: color 0.2s;
}

.clos:hover {
    color: #31641E;
}

.match-info {
    display: flex;
    flex-direction: column;
}

.match-teams {
    font-weight: bold;
    margin-bottom: 5px;
}

.match-time {
    font-size: 12px;
    color: #888;
}

.score-prediction {
    font-size: 20px;
    font-weight: bold;
    color: #31641E;
    text-align: center;
}

.prediction-btn {
    background: #1b1b1b;
    border: #747474 1px dashed;
    color: #fff;
    padding: 15px 16px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 13px;
    font-weight: 500;
    min-width: 100px;
    white-space: nowrap;
    overflow: visible;
    height: auto;
    display: inline-block;
}

.prediction-btn:hover {
    background: #31641E;
}

.accordion {
    margin-top: 15px;
}

.accordion-item {
    border: 1px solid #333;
    margin-bottom: 5px;
    background: #1b1b1b;
}

.accordion-title {
    padding: 10px;
    background: #262626;
    cursor: pointer;
    user-select: none;
    font-size: 12px;
}

.accordion-button {
    background: none;
    border: none;
    color: #fff;
    width: 100%;
    text-align: left;
    cursor: pointer;
    padding: 0;
}

.accordion-content {
    padding: 20px;
    background: #1b1b1b;
    display: none;
    min-height: 150px;
}

.accordion-item.active .accordion-content {
    display: block;
}

.accordion-icon {
    display: inline-block;
    margin-right: 5px;
    transition: transform 0.3s;
}

.accordion-button[aria-expanded='true'] .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content p {
    font-size: 13px;
    color: #aaa;
    margin: 8px 0;
    line-height: 1.6;
}

aside {
    width: 250px;
    background: #1b1b1b;
    padding: 0;
    border: 1px solid #333;
    border-radius: 3px;
}

aside ul {
    list-style: none;
    padding: 0;
}

aside ul li {
    padding: 0;
    margin: 0;
}

aside ul li a {
    display: block;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
}

aside ul li a:hover {
    background: #31641E;
}

footer {
    background: #1a1a1a;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid #333;
    color: #888;
    font-size: 12px;
}

/* Stats Section Styles */
section.stats {
    background: transparent;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section.stats h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #fff;
    text-align: center;
}

section.stats h3 {
    color: #31641E;
    margin-top: 20px;
    margin-bottom: 15px;
}

section.stats p {
    line-height: 26px;
    color: #fff;
}

section.stats ul {
    color: #fff;
    margin: 10px 0;
}

section.stats ul li {
    margin-bottom: 8px;
    line-height: 26px;
}

.prediction-explanation {
    margin: 20px 0 !important;
    background-color: #1b1b1b !important;
    border-left: 4px solid #31641E !important;
    padding: 15px !important;
    border-radius: 5px !important;
}

.prediction-explanation h3 {
    color: #31641E;
    margin-top: 0;
}

.prediction-explanation p {
    color: #aaa;
    margin-bottom: 10px;
}

.prediction-explanation ul {
    margin: 10px 0;
    padding-left: 20px;
}

.prediction-explanation ul li {
    color: #aaa;
    margin-bottom: 10px;
}

.prediction-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.prediction-box {
    background: #262626;
    padding: 30px 20px;
    border-radius: 5px;
    border: 1px solid #333;
    text-align: center;
    color: #fff;
}

.prediction-type-title {
    font-size: 28px;
    font-weight: bold;
    color: #31641E;
    margin: 0 0 10px 0;
}

.prediction-accuracy {
    font-size: 14px;
    color: #aaa;
    margin: 0;
}

/* FAQ Container */
.faq-container {
    margin-top: 40px;
    background: transparent;
}

.faq-container h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #fff;
}

.faq-item {
    background: #1b1b1b;
    border: 1px solid #333;
    border-radius: 5px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    background: #262626;
    padding: 15px;
    cursor: pointer;
    font-weight: bold;
    color: #fff;
    user-select: none;
    transition: background 0.3s;
}

.faq-question:hover {
    background: #2a2a2a;
}

.faq-question::before {
    content: "▶ ";
    color: #31641E;
    margin-right: 10px;
    transition: transform 0.3s;
}

.faq-item.open .faq-question::before {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 15px;
    color: #aaa;
    line-height: 26px;
    display: none;
    background: #1a1a1a;
}

.faq-item.open .faq-answer {
    display: block;
}

/* Additional Section */
.additional-section {
    margin-top: 40px;
}

/* Unique Styling */
.uniqe {
    font-size: 14px;
    color: #aaa;
}

.presu {
    background-color: #31641E;
    border: none;
    color: white !important;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.presu:hover {
    background-color: #285119;
}

/* Accordion Styles for Details */
.accordion {
    margin-top: 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 5px;
    overflow: hidden;
}

.accordion-item {
    margin-bottom: 0;
}

.accordion-item:not(:last-child) {
    border-bottom: 1px solid #333;
}

.accordion-title {
    padding: 0;
    margin: 0;
}

.accordion-button {
    width: 100%;
    padding: 12px;
    background: #262626;
    border: none;
    color: #fff;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s;
}

.accordion-button:hover {
    background: #2a2a2a;
}

.accordion-icon {
    display: inline-block;
    margin-right: 8px;
    transition: transform 0.3s;
}

.accordion-button[aria-expanded="true"] .accordion-icon {
    transform: rotate(90deg);
}

.accordion-content {
    padding: 12px;
    background: #1a1a1a;
    color: #aaa;
    line-height: 1.8;
    font-size: 13px;
    display: none;
}

.accordion-content.show {
    display: block;
}

.accordion-content p {
    margin: 8px 0;
    color: #aaa;
}

.accordion-content strong {
    color: #fff;
}

/* Tablet and medium screens */
@media (max-width: 1024px) {
    main {
        flex-direction: column;
        padding: 15px;
    }

    aside {
        width: 100%;
        margin-bottom: 20px;
    }

    .predictions-container {
        flex: 1;
    }

    .navbar ul li {
        margin-right: 20px;
    }

    .navbar ul li a {
        font-size: 13px;
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    header {
        padding: 15px;
    }

    header h1 {
        font-size: 24px;
    }

    header p {
        font-size: 12px;
    }

    .navbar {
        padding: 8px 0;
    }

    .nav-container {
        padding: 0 10px;
    }

    .navbar ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar ul li {
        margin-right: 15px;
        margin-bottom: 8px;
    }

    .navbar ul li a {
        font-size: 12px;
    }

    main {
        flex-direction: column;
        gap: 15px;
        padding: 15px 10px;
        max-width: 100%;
    }

    .predictions-container {
        flex: 1;
    }

    aside {
        width: 100%;
        order: 2;
    }

    .h2221 {
        margin-bottom: 20px;
    }

    .h2221 h1 {
        font-size: 20px;
    }

    /* Date navigation */
    .dateBar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin-bottom: 15px;
        flex-wrap: wrap;
    }

    #todayDate {
        font-size: 14px;
        padding: 8px 12px;
        flex-grow: 1;
        text-align: center;
    }

    .arrow {
        padding: 8px 12px;
        font-size: 16px;
    }

    /* Tables on mobile */
    table {
        font-size: 12px;
    }

    table th,
    table td {
        padding: 8px 4px;
    }

    .match-teams {
        font-size: 11px;
    }

    .match-time {
        font-size: 10px;
    }

    .score-prediction {
        font-size: 12px;
        font-weight: bold;
    }

    .prediction-btn {
        padding: 12px 12px;
        font-size: 11px;
        white-space: nowrap;
        min-width: 90px;
    }

    /* Calendar on mobile */
    #calendar {
        width: 100%;
        left: 0;
        right: 0;
        max-width: 100%;
    }

    .calendar-header select {
        padding: 6px;
        font-size: 12px;
        margin: 4px 2px;
    }

    /* Accordion on mobile */
    .accordion {
        font-size: 12px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .accordion-button {
        padding: 10px;
        font-size: 12px;
        word-break: break-word;
    }

    .accordion-content {
        padding: 18px;
        font-size: 12px;
        min-height: 120px;
    }

    .accordion-content p {
        margin: 6px 0;
        word-break: break-word;
    }

    .prediction-explanation-box {
        font-size: 13px;
        line-height: 1.6;
    }

    /* Buttons on mobile */
    .btn {
        padding: 10px 20px;
        font-size: 13px;
    }

    .hero {
        padding: 30px 15px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .hero-content p {
        font-size: 14px;
    }

    .prediction-container {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 0;
    }

    .prediction-box {
        padding: 20px 15px;
    }

    .faq-question {
        padding: 13px;
        font-size: 14px;
    }

    .faq-answer {
        padding: 13px;
        font-size: 13px;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    header {
        padding: 12px;
    }

    header h1 {
        font-size: 20px;
        margin-bottom: 3px;
    }

    header p {
        font-size: 11px;
    }

    .nav-container {
        padding: 0 8px;
    }

    .navbar ul li {
        margin-right: 10px;
    }

    .navbar ul li a {
        font-size: 11px;
    }

    main {
        padding: 10px;
        gap: 10px;
    }

    .h2221 h1 {
        font-size: 16px;
    }

    table {
        font-size: 11px;
    }

    table th,
    table td {
        padding: 6px 3px;
    }

    .match-teams {
        font-size: 10px;
    }

    .match-time {
        font-size: 9px;
    }

    .score-prediction {
        font-size: 11px;
    }

    .prediction-btn {
        padding: 10px 10px;
        font-size: 10px;
        margin-top: 4px;
        min-width: 80px;
    }

    .predictions-filter {
        margin-bottom: 10px;
    }

    .btn {
        padding: 8px 15px;
        font-size: 12px;
    }

    .hero {
        padding: 20px 10px;
    }

    .hero-content h2 {
        font-size: 20px;
    }

    .hero-content p {
        font-size: 12px;
    }

    .results-btn {
        padding: 8px 6px;
        font-size: 11px;
        margin: 4px 2px;
    }

    footer {
        padding: 15px 10px;
        font-size: 10px;
    }

    /* Accordion improvements for mobile */
    .accordion {
        margin-top: 10px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .accordion-button {
        padding: 10px;
        font-size: 12px;
        word-break: break-word;
    }

    .accordion-content {
        padding: 8px 6px;
        font-size: 10px;
        min-height: auto;
    }

    .accordion-content p {
        margin: 2px 0;
        word-break: break-word;
        font-size: 10px;
        line-height: 1.3;
    }

    .prediction-explanation-box {
        font-size: 12px !important;
        line-height: 1.6 !important;
    }

    .prediction-container {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 20px 0;
    }

    .prediction-box {
        padding: 20px 15px;
    }

    .prediction-type-title {
        font-size: 24px;
    }

    .faq-question {
        padding: 12px;
        font-size: 13px;
    }

    .faq-answer {
        padding: 12px;
        font-size: 12px;
    }
}
