body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: white;
}

nav {
    background-color: #1d1d1d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
}

nav h2 {
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
    margin-right: 30px;
}

nav a {
    color: white;
    text-decoration: none;
}

nav a:hover {
    color: #00c853;
}

main {
    text-align: center;
    margin-top: 100px;
}

button {
    background-color: #00c853;
    color: white;
    border: none;
    padding: 14px 28px;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
}

button:hover {
    background-color: #00a844;
}
.league-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(250px, 350px));
    gap: 30px;
    max-width: 800px;
    margin: 50px auto;
}

.league-card {
    background: #1f1f1f;
    border-radius: 12px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}
/* Dropdown */

.dropdown{
    position:relative;
}

.dropdown-content{
    display:none;
    position:absolute;

    top: 100%;
    left:0;

    width:260px;

    background:#222;
    border-radius:12px;

    padding:15px;

    box-shadow:0 10px 25px rgba(0,0,0,.4);

    z-index:1000;
}

.dropdown:hover .dropdown-content{
    display:flex;
    flex-direction:column;
}

.dropdown-content input{

    padding:10px;

    border:none;

    border-radius:8px;

    margin-bottom:15px;
}

.dropdown-content a{

    color:white;

    text-decoration:none;

    padding:10px;

    border-radius:8px;
}

.dropdown-content a:hover{

    background:#00c853;
}
.league-card:hover {
    transform: translateY(-5px);
    border: 2px solid #00c853;
    box-shadow: 0 0 20px rgba(0, 200, 83, 0.3);
}

.league-card{
    background:#1f1f1f;
    border-radius:12px;
    padding:30px;
    transition:.25s;
    cursor:pointer;
}

.league-card:hover{
    transform:translateY(-5px);
    background:#292929;
}

.league-card h2{
    margin-bottom:10px;
}

.league-card p{
    color:#cfcfcf;
}
.register-form {
    max-width: 450px;
    margin: 40px auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #555;
}

.register-form button {
    width: 100%;
    padding: 14px;
    font-size: 18px;
    margin-top: 10px;
}
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: none;
    color: white;
    border: none;
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    font-weight: inherit;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background: #222;
    min-width: 170px;
    border-radius: 8px;
    overflow: hidden;
}
.user-dropdown .dropdown-content {
    right: 10px;
}

.dropdown-content a {
    color: white;
    padding: 12px;
    display: block;
    text-decoration: none;
}

.dropdown-content a:hover {
    background: #333;
}

.dropdown:hover .dropdown-content {
    display: block;
}

/* ==========================
   Game Cards
========================== */

.game-card {
    display: block;
    max-width: 650px;
    margin: 20px auto;
    text-decoration: none;
    color: inherit;

    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 12px;

    padding: 20px;

    transition: all .2s ease;
}

.game-card:hover {
    transform: translateY(-4px);
    border-color: #00c853;
    box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

.game-card h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.game-meta {
    color: #bdbdbd;
    font-size: .95rem;
    margin-bottom: 12px;
}

.game-rating {
    margin-top: 12px;
}

.game-review {
    margin-top: 15px;
    font-style: italic;
    color: #ddd;
}

.game-card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    margin-bottom: 15px;
}

.game-card-header h2 {
    margin: 0;
    font-size: 1.4rem;
}

.vs {
    font-size: 1.6rem;
    color: #00c853;
    font-weight: bold;
}

.score {
    font-size: 1.2rem;
    font-weight: bold;
    margin-top: 10px;
}

/* ---------- Profile ---------- */

.profile-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 0 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: #2f855a;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 58px;
    flex-shrink: 0;
}

.profile-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.profile-top-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 12px;
}

.profile-top-row h1 {
    margin: 0;
    font-size: 3rem;
    line-height: 1;
}

.follow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    height: 34px;
    padding: 0 14px;

    background: #00c853;
    color: white;

    border: none;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
}

.follow-btn:hover:not(:disabled) {
    background: #00a844;
}

.follow-btn:disabled {
    background: #666;
    cursor: default;
}

.profile-bio {
    margin: 0 0 18px;
    color: #d0d0d0;
    font-size: 1.1rem;
}

.profile-stats-row {
    display: flex;
    gap: 25px;
    margin-bottom: 18px;
}

.profile-stats-row strong {
    color: #00c853;
}

.favorite-teams {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    color: #d0d0d0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

* {
    box-sizing: border-box;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.08);
}

.stat-card h3 {
    margin: 0;
    font-size: 34px;
    color: #2f855a;
}

.stat-card p {
    margin-top: 10px;
    color: #666;
}

/* ==========================
   Homepage Hero
========================== */

.hero {
    text-align: center;
    padding: 120px 20px 90px;
}

.hero h1 {
    font-size: 4.5rem;
    margin: 0;
    font-weight: 800;
}

.hero h2 {
    margin-top: 18px;
    font-size: 2rem;
    color: #bdbdbd;
    font-weight: 300;
}

.hero-buttons {
    margin-top: 45px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.primary-btn,
.secondary-btn {
    display: inline-block;
    padding: 16px 34px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all .25s ease;
}

.primary-btn {
    background: #00c853;
    color: white;
}

.primary-btn:hover {
    background: #00a844;
    transform: translateY(-2px);
}

.secondary-btn {
    border: 2px solid #00c853;
    color: #00c853;
}

.secondary-btn:hover {
    background: #00c853;
    color: white;
}

/* ==========================
   Homepage League Section
========================== */

.league-section {
    text-align: center;
    margin: 70px auto;
}

.league-section h2 {
    margin-bottom: 40px;
    font-size: 2rem;
}

.league-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: auto;
}

.league-card {
    background: #1f1f1f;
    border-radius: 16px;
    padding: 45px 20px;
    text-decoration: none;
    color: white;
    transition: all .25s ease;
}

.league-card:hover {
    transform: translateY(-8px);
    border: 2px solid #00c853;
    box-shadow: 0 12px 30px rgba(0,200,83,.25);
}

.league-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.league-card h3 {
    font-size: 1.5rem;
    margin: 0;
}

/* ==========================
   Features Section
========================== */

.features-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
    text-align: center;
}

.features-section h2 {
    font-size: 2.2rem;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.feature-card {
    background: #1f1f1f;
    border-radius: 16px;
    padding: 35px 25px;
    transition: all .25s ease;
}

.feature-card:hover {
    transform: translateY(-6px);
    border: 2px solid #00c853;
    box-shadow: 0 12px 30px rgba(0,200,83,.2);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
}

.feature-card p {
    color: #bdbdbd;
    line-height: 1.6;
}

.linescore-container {
    text-align: center;
    margin: 30px 0;
}

.linescore-table {
    margin: 0 auto;
    border-collapse: collapse;
}

.linescore-table th,
.linescore-table td {
    border: 1px solid #555;
    padding: 8px 14px;
}

.linescore-table th {
    background: #222;
}

.linescore-table td:first-child {
    text-align: left;
}

.team-logo {
    width: 28px;
    height: 28px;
    object-fit: contain;
    vertical-align: middle;
    margin-right: 8px;
}

.team-name {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.team-name img.team-logo {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    min-height: 38px;
    max-width: 38px;
    max-height: 38px;
    object-fit: contain;
    display: block;
    flex: 0 0 38px;
}
.team-logo-fallback {
    width: 38px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    flex-shrink: 0;
}

.soccer-card {
    position: relative;
}

.dropdown-btn {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    background: #3b3b3b;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.dropdown-btn:hover {
    background: #4a4a4a;
}

.soccer-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 100%;
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,.4);
    z-index: 1000;
    overflow: hidden;
}

.soccer-menu.show {
    display: block;
}

.soccer-menu a {
    display: block;
    padding: 12px 16px;
    color: white;
    text-decoration: none;
}

.soccer-menu a:hover {
    background: #00c853;
}

.profile-picture {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
}

/* ---------- Game Detail Layout ---------- */

.game-layout{
    display:flex;
    gap:40px;
    align-items:flex-start;
}

.game-main{
    flex:2;
    min-width:0;
}

.discussion-sidebar{
    flex:1;
    min-width:320px;

    background:#1f1f1f;
    border:1px solid #444;

    border-radius:10px;

    padding:20px;

    position:sticky;
    top:20px;
}

.comment-box {
    width: 100%;
    height: 100px;
    box-sizing: border-box;

    resize: none;
    overflow-y: scroll;

    padding: 12px;

    border-radius: 8px;
    border: 1px solid #555;

    background: #121212;
    color: white;

    font-size: 15px;
    line-height: 1.5;
}

.comment{
    padding:15px 0;
}

.comment + .comment{
    border-top:1px solid #333;
}

.comment strong{
    font-size:15px;
}

.comment small{
    color:#999;
}

.comment p{
    margin-top:8px;
    line-height:1.6;
}

/* ==========================
   Mobile Responsive Design
========================== */

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        overflow-y: auto;
        touch-action: pan-y;
        overscroll-behavior-x: none;
    }

    nav {
        padding: 12px 16px;
    }

    nav ul {
        gap: 12px;
    }

    main {
        margin-top: 60px;
        padding: 0 15px;
    }

    .game-layout {
        flex-direction: column;
        gap: 25px;
        width: 100%;
    }

    .game-main {
        width: 100%;
    }

    .discussion-sidebar {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
        position: static;
    }

}

/* ==========================
   Mobile Homepage
========================== */

@media (max-width: 768px) {

    .games-dropdown.mobile-open .dropdown-content {
        display: block;
    }

    .hero {
        padding: 55px 12px 35px;
    }

    .hero h1 {
        font-size: 2.1rem;
        line-height: 1.1;
    }

    .hero h2 {
        font-size: 1rem;
        line-height: 1.4;
        margin-top: 10px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 25px;
    }

    .primary-btn,
    .secondary-btn {
        width: 80%;
        box-sizing: border-box;
        padding: 11px 18px;
        font-size: 14px;
    }

    .league-section {
        margin: 40px auto;
        padding: 0 12px;
    }

    .league-section h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .league-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        width: 100%;
    }

    .league-card {
        padding: 18px 15px;
        border-radius: 12px;
    }

    .league-icon {
        font-size: 2.3rem;
        margin-bottom: 8px;
    }

    .league-card h3 {
        font-size: 1.15rem;
    }

    .features-section {
        margin: 45px auto;
        padding: 0 12px;
    }

    .features-section h2 {
        font-size: 1.4rem;
        margin-bottom: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .feature-card {
        padding: 20px 15px;
    }

}

/* ==========================
   Today's Games
========================== */

.today-games-section {
    max-width: 1200px;
    margin: 80px auto;
    padding: 0 20px;
    text-align: center;
}

.today-games-section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
}

.today-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.today-game-card {
    display: block;
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 25px 20px;
    text-decoration: none;
    color: white;
    transition: all .25s ease;
}

.today-game-card:hover {
    transform: translateY(-6px);
    border-color: #00c853;
    box-shadow: 0 12px 30px rgba(0, 200, 83, .2);
}

.today-game-league {
    color: #00c853;
    font-size: .9rem;
    font-weight: bold;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.today-game-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.today-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.today-team img {
    width: 55px;
    height: 55px;
    object-fit: contain;
}

.today-team span {
    font-weight: 600;
    font-size: .95rem;
    line-height: 1.2;
}

.today-vs {
    color: #00c853;
    font-weight: bold;
    font-size: 1.1rem;
}

.today-game-status {
    margin-top: 20px;
    color: #bdbdbd;
    font-size: .9rem;
}

.today-game-score {
    margin-top: 8px;
    font-size: 1.3rem;
    font-weight: bold;
}

.no-games {
    color: #bdbdbd;
    font-size: 1rem;
}

/* Mobile */

@media (max-width: 768px) {

    .today-games-section {
        margin: 60px auto;
    }

    .today-games-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .today-game-card {
        padding: 22px 18px;
    }

}

/* Today's Games Heading */

.today-games-heading {
    display: inline-block;
    margin: 0 auto 30px;
    padding: 14px 28px;
    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.today-games-heading:hover {
    border-color: #00c853;
    transform: translateY(-2px);
}

.today-games-heading h2 {
    margin: 0;
    font-size: 1.8rem;
}

.today-games-heading h2 a,
.today-games-heading h2 a:visited {
    color: white;
    text-decoration: none;
}

.today-games-heading h2 a:hover,
.today-games-heading h2 a:active {
    color: white;
    text-decoration: none;
}

.today-games-heading h2 {
    margin: 0;
    font-size: 2rem;
    transition: transform 0.2s ease;
}

.today-games-heading h2:hover {
    transform: translateY(-2px);
}

.today-games-heading h2 a,
.today-games-heading h2 a:visited {
    color: white;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.today-games-heading h2 a:hover,
.today-games-heading h2 a:active {
    color: #00c853;
    text-decoration: none;
}

/* Today's Games */

.today-games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 30px auto 60px;
}

.today-game-card {
    display: block;
    text-decoration: none;
    color: white;

    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 12px;

    padding: 18px;

    min-height: 170px;

    transition: transform 0.2s ease, border-color 0.2s ease;
}

.today-game-card:hover {
    transform: translateY(-3px);
    border-color: #00cc66;
}

.today-game-league {
    text-align: center;
    font-size: 14px;
    color: #999;
    margin-bottom: 15px;
}

.today-game-teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.today-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;
    font-weight: 600;

    flex: 1;
    min-width: 0;
}

.today-team img {
    width: 45px;
    height: 45px;

    object-fit: contain;

    margin-bottom: 8px;
}

.today-team span {
    font-size: 15px;
}

.today-vs {
    font-weight: bold;
    color: #00cc66;
    font-size: 18px;
}

.today-game-status {
    text-align: center;
    color: #aaa;
    font-size: 13px;
    margin-top: 15px;
}

.today-game-score {
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    margin-top: 6px;
}


/* Mobile */

@media (max-width: 768px) {

    .today-games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin: 20px auto 40px;
        padding: 0 12px;
    }

    .today-game-card {
        padding: 14px;
        min-height: 145px;
    }

    .today-team img {
        width: 35px;
        height: 35px;
    }

    .today-team span {
        font-size: 13px;
    }

    .today-vs {
        font-size: 15px;
    }

    .today-game-league {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .today-game-status {
        font-size: 12px;
        margin-top: 10px;
    }

    .today-game-score {
        font-size: 16px;
    }
}

/* ==========================
   Today's Games Page
========================== */

.todays-games-page {
    max-width: 1200px;
    margin: 60px auto 100px;
    padding: 0 20px;
}

.todays-games-header {
    text-align: center;
    margin-bottom: 70px;
}

.todays-games-header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.todays-games-header p {
    color: #999;
    font-size: 1.1rem;
}

.todays-league-section {
    margin-bottom: 70px;
}

.todays-league-section h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid #333;
}

.todays-league-section .today-games-grid {
    margin: 0;
    max-width: none;
}

.today-league-empty {
    color: #888;
    font-size: 1rem;
    margin: 10px 0;
}


/* Mobile */

@media (max-width: 768px) {

    .todays-games-page {
        margin: 40px auto 70px;
        padding: 0 15px;
    }

    .todays-games-header {
        margin-bottom: 45px;
    }

    .todays-games-header h1 {
        font-size: 2.2rem;
    }

    .todays-league-section {
        margin-bottom: 50px;
    }

    .todays-league-section h2 {
        font-size: 1.5rem;
    }

}

/* ==========================
   MLB Game Search
========================== */

.game-search-panel {
    width: min(900px, calc(100% - 40px));
    margin: 45px auto 70px;
    padding: 35px 40px 40px;

    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 16px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}


.game-search-title {
    text-align: center;
    margin-bottom: 35px;
}

.game-search-title h2 {
    margin: 0 0 8px;
    font-size: 1.8rem;
}

.game-search-title p {
    margin: 0;
    color: #999;
    font-size: .95rem;
}


.game-search-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}


.search-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}


.date-row {
    grid-template-columns: repeat(4, 1fr);
}


.search-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.search-field label {
    color: #ddd;
    font-size: .9rem;
    font-weight: 600;
}


.search-field input,
.search-field select {
    width: 100%;
    box-sizing: border-box;

    padding: 11px 12px;

    background: #121212;
    color: white;

    border: 1px solid #444;
    border-radius: 8px;

    font-size: .95rem;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


.search-field input::placeholder {
    color: #777;
}


.search-field input:focus,
.search-field select:focus {
    border-color: #00c853;
    box-shadow: 0 0 0 2px rgba(0, 200, 83, .12);
}


.search-section-label {
    color: #00c853;

    font-size: .8rem;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: .08em;

    padding-bottom: 8px;

    border-bottom: 1px solid #333;
}


/* Upcoming Games Checkbox */

.upcoming-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    color: #ddd;

    font-size: .95rem;
    font-weight: 600;

    cursor: pointer;

    user-select: none;
}


.upcoming-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


.custom-checkbox {
    width: 19px;
    height: 19px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: #121212;

    border: 1px solid #555;
    border-radius: 5px;

    transition: all .2s ease;
}


.upcoming-checkbox input:checked + .custom-checkbox {
    background: #00c853;
    border-color: #00c853;
}


.upcoming-checkbox input:checked + .custom-checkbox::after {
    content: "✓";

    color: white;

    font-size: 14px;
    font-weight: bold;
}


.upcoming-checkbox:hover .custom-checkbox {
    border-color: #00c853;
}


/* Search Button */

.search-submit {
    align-self: center;

    margin-top: 5px;

    padding: 13px 35px;

    background: #00c853;
    color: white;

    border: none;
    border-radius: 9px;

    font-size: 1rem;
    font-weight: 700;

    cursor: pointer;

    transition: all .2s ease;
}


.search-submit:hover {
    background: #00a844;
    transform: translateY(-2px);
}


/* Mobile */

@media (max-width: 768px) {

    .game-search-panel {
        width: calc(100% - 30px);

        padding: 25px 20px 30px;

        margin: 35px auto 50px;
    }




    .search-row,
    .date-row {
        grid-template-columns: 1fr;
    }


    .game-search-title h2 {
        font-size: 1.5rem;
    }


    .search-submit {
        width: 100%;
    }

}

/* ==========================
   Mobile Profile
========================== */

@media (max-width: 768px) {

    .profile-container {
        width: 100%;
        max-width: none;
        margin: 30px auto 60px;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .profile-header {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        margin-bottom: 35px;
        text-align: center;
    }

    .profile-avatar {
        width: 90px;
        height: 90px;
        font-size: 44px;
    }

    .profile-details {
        width: 100%;
        align-items: center;
    }

    .profile-top-row {
        justify-content: center;
        gap: 12px;
        margin-bottom: 12px;
        flex-wrap: wrap;
    }

    .profile-top-row h1 {
        font-size: 2rem;
        line-height: 1.1;
    }

    .follow-btn {
        height: 32px;
        padding: 0 12px;
        font-size: 13px;
    }

    .profile-bio {
        max-width: 100%;
        margin: 0 0 16px;
        font-size: 1rem;
        line-height: 1.4;
    }

    .profile-stats-row {
        justify-content: center;
        gap: 18px;
        flex-wrap: wrap;
        margin-bottom: 18px;
    }

    .favorite-teams {
        justify-content: center;
        gap: 12px 18px;
        width: 100%;
    }

    .stats-grid {
        width: 100%;
        max-width: none;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-card {
        padding: 15px 10px;
    }

    .stat-card h3 {
        font-size: 28px;
    }

    .stat-card p {
        margin-top: 7px;
        font-size: 0.9rem;
    }

}

/* ==========================
   Mobile Navigation
========================== */

@media (max-width: 768px) {

    nav {
    padding: 9px 12px;
    min-height: 44px;
    box-sizing: border-box;
    gap: 20px;
}

    nav h2 {
        font-size: 1.25rem;
        white-space: nowrap;
    }

    nav ul {
    gap: 9px;
    align-items: center;
    margin-left: auto;
}



    nav ul li {
        white-space: nowrap;
    }

    nav a,
    nav .dropbtn {
        font-size: 0.9rem;
    }

}

.date-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.date-nav-btn {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;

    background: #1f1f1f;
    border: 1px solid #333;
    border-radius: 8px;

    color: white;
    text-decoration: none;
    font-size: 22px;
    font-weight: bold;

    transition: all .2s ease;
}

.date-nav-btn:hover {
    background: #00c853;
    border-color: #00c853;
}

.date-picker-form {
    margin: 0;
}

.date-picker-form input {
    padding: 10px 14px;

    background: #1f1f1f;
    color: white;

    border: 1px solid #333;
    border-radius: 8px;

    font-size: 16px;
    font-family: inherit;

    cursor: pointer;
}

@media (max-width: 768px) {
    .date-navigation {
        gap: 10px;
    }

    .date-nav-btn {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .date-picker-form input {
        font-size: 14px;
        padding: 9px 10px;
    }
}

/* =========================
   EDIT LOG PAGE
   ========================= */

.edit-log-page {
    max-width: 820px;
    margin: 45px auto 70px;
    padding: 0 20px;
}

.edit-log-card {
    background: #181818;
    border: 1px solid #303030;
    border-radius: 16px;
    padding: 42px 55px 50px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}


/* =========================
   HEADER
   ========================= */

.edit-log-header {
    text-align: center;
    margin-bottom: 38px;
}

.edit-log-header h1 {
    font-size: 34px;
    margin: 0 0 18px;
}

.edit-log-header h2 {
    font-size: 24px;
    margin: 0;
}

.edit-log-header h2 span {
    color: #00d95f;
    padding: 0 8px;
}

.edit-log-header p {
    color: #999;
    margin: 12px 0 0;
    font-size: 15px;
}


/* =========================
   FORM
   ========================= */

.edit-log-form {
    max-width: 620px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-group > label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 9px;
}


/* =========================
   SELECTS
   ========================= */

.edit-log-form select {
    width: 100%;
    height: 42px;

    padding: 0 12px;

    border-radius: 8px;
    border: 1px solid #444;

    background: #101010;
    color: white;

    font-size: 15px;

    cursor: pointer;
}

.edit-log-form select:focus {
    outline: none;
    border-color: #00d95f;
}


/* =========================
   RATING ROW
   ========================= */

.rating-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}


/* =========================
   FAVORITE
   ========================= */

.favorite-option {
    background: #111;
    border: 1px solid #303030;
    border-radius: 9px;

    padding: 14px 16px;

    margin: 28px 0;
}

.favorite-option label {
    display: flex;
    align-items: center;
    gap: 9px;

    cursor: pointer;
    font-weight: 600;
}

.favorite-option input {
    width: 17px;
    height: 17px;
}


/* =========================
   WATCHED WITH
   ========================= */

.watched-with-group {
    margin-top: 28px;
}

.watched-with-list {
    background: #111;
    border: 1px solid #303030;
    border-radius: 10px;

    padding: 16px 18px;
}


/*
   Django's CheckboxSelectMultiple
   creates a <ul>.
*/

.watched-with-list ul {
    list-style: none;

    margin: 0;
    padding: 0;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.watched-with-list li {
    margin: 0;
    padding: 0;
}

.watched-with-list li label {
    display: flex;
    align-items: center;

    gap: 8px;

    padding: 9px 10px;

    border-radius: 7px;

    cursor: pointer;

    color: #ddd;

    transition: background 0.15s;
}

.watched-with-list li label:hover {
    background: #202020;
}

.watched-with-list input[type="checkbox"] {
    width: 16px;
    height: 16px;
}


/* =========================
   REVIEW
   ========================= */

.review-group {
    margin-top: 30px;
}

.review-group textarea {
    display: block;

    width: 100%;
    min-height: 170px;

    box-sizing: border-box;

    padding: 14px;

    border-radius: 9px;
    border: 1px solid #444;

    background: #101010;
    color: white;

    font-family: inherit;
    font-size: 15px;

    resize: vertical;
}

.review-group textarea:focus {
    outline: none;
    border-color: #00d95f;
}


/* =========================
   SAVE
   ========================= */

.save-log-button {
    display: block;

    width: 100%;

    margin-top: 32px;

    padding: 14px;

    border: none;
    border-radius: 9px;

    background: #00d95f;
    color: white;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition: all 0.15s ease;
}

.save-log-button:hover {
    background: #00bd52;
    transform: translateY(-1px);
}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 700px) {

    .edit-log-page {
        margin-top: 25px;
        padding: 0 12px 45px;
    }

    .edit-log-card {
        padding: 30px 20px 35px;
    }

    .edit-log-header h1 {
        font-size: 28px;
    }

    .edit-log-header h2 {
        font-size: 19px;
    }

    .rating-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .watched-with-list ul {
        grid-template-columns: 1fr 1fr;
    }

}

/* =========================
   EDIT LOG IMPROVEMENTS
   ========================= */

.edit-log-page {
    max-width: 850px;
    margin: 50px auto;
    padding: 0 20px;
}

.edit-log-card {
    background: #181818;
    border: 1px solid #333;
    border-radius: 16px;
    padding: 40px 50px;
}

.edit-log-header {
    text-align: center;
    margin-bottom: 35px;
}

.edit-log-header h1 {
    margin-bottom: 15px;
}

.edit-log-header h2 {
    margin: 0;
}

.edit-log-header h2 span {
    color: #00d95f;
    padding: 0 8px;
}

.edit-log-header p {
    color: #aaa;
}


/* FORM */

.edit-log-form {
    max-width: 650px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group > label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}


/* WATCH TYPE */

.edit-log-form select {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    background: #101010;
    color: white;
    border: 1px solid #444;
    border-radius: 7px;
}


/* RATINGS */

.rating-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 20px;
}

.rating-row .form-group {
    margin-bottom: 0;
}


/* FAVORITE */

.favorite-option {
    background: #101010;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 14px;
    margin: 25px 0;
}

.favorite-option label {
    display: flex;
    align-items: center;
    gap: 8px;
}


/* WATCHED WITH */

.watched-with-group {
    margin-top: 25px;
}

.watched-with-list {
    background: #101010;
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px;
}

.watched-with-list ul {
    list-style: none;
    padding: 0;
    margin: 0;

    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px;
}

.watched-with-list li {
    list-style: none;
}

.watched-with-list li label {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px;
    border-radius: 6px;
}

.watched-with-list li label:hover {
    background: #202020;
}


/* REVIEW */

.review-group textarea {
    width: 100%;
    box-sizing: border-box;
    min-height: 160px;
    padding: 12px;

    background: #101010;
    color: white;

    border: 1px solid #444;
    border-radius: 8px;

    font-family: inherit;
    resize: vertical;
}


/* SAVE */

.save-log-button {
    width: 100%;
    padding: 14px;

    margin-top: 25px;

    background: #00d95f;
    color: white;

    border: none;
    border-radius: 8px;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
}

.save-log-button:hover {
    background: #00bd52;
}


/* MOBILE */

@media (max-width: 700px) {

    .edit-log-card {
        padding: 30px 20px;
    }

    .rating-row {
        grid-template-columns: 1fr !important;
    }

    .watched-with-list ul {
        grid-template-columns: 1fr 1fr !important;
    }

}







/* Username dropdown */
.user-dropdown {
    margin-left: 8px;
}

.user-dropdown .dropbtn {
    font-size: 22px !important;
    font-weight: 600 !important;
    padding: 0;
}







/* Desktop navbar positioning */
@media (min-width: 769px) {
    nav > ul {
        position: relative;
        left: 0;
    }
}

/* Mobile navbar */
@media (max-width: 768px) {
    nav {
        padding: 10px 15px;
        height: auto;
    }

    nav h2 {
        font-size: 18px;
        margin: 0;
    }

    nav ul {
        position: static !important;
        left: auto !important;
        margin: 0 !important;
        padding: 0;
        gap: 10px;
    }

    nav ul li a,
    nav .dropbtn {
        font-size: 14px !important;
    }

    .user-dropdown .dropbtn {
        font-size: 16px !important;
    }
}

.user-dropdown .dropdown-content {
    width: 170px !important;
    min-width: 170px !important;
    left: auto !important;
    right: 0 !important;
    transform: none !important;
    box-sizing: border-box !important;
}

.user-dropdown .dropdown-button {
    width: 100% !important;
    box-sizing: border-box !important;
}





