/* North Forsyth Flag Football League - Styles */

:root {
    --primary-color: #1E3A8A;
    --secondary-color: #FBBF24;
    --accent-color: #DC2626;
    --text-dark: #1F2937;
    --text-light: #6B7280;
    --bg-light: #F9FAFB;
    --bg-white: #FFFFFF;
    --border-color: #E5E7EB;
    --success-color: #059669;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light); /* now black */
}

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

/* Header */
.main-header {
    background: #000000; /* black header bar */
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 64px;
    padding: 0.4rem 0;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    text-decoration: none;
}

.logo img {
    height: 48px;
    width: auto;
    display: block;
}

.logo h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-color);
}

.logo span {
    color: var(--secondary-color);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
}

/* (removed site-logo customizations) */

.main-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

.nav-primary,
.nav-more-menu,
.nav-actions {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
}

.main-nav a,
.nav-more-btn {
    text-decoration: none;
    color: #F8FAFC;
    font-weight: 600;
    font-size: 0.95rem;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
    line-height: 1.2;
}

.main-nav a:hover,
.nav-more-btn:hover,
.main-nav a.is-active {
    color: #111827;
    background: var(--secondary-color);
}

.nav-more {
    position: relative;
}

.nav-more-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    min-width: 180px;
    flex-direction: column;
    align-items: stretch;
    background: #111827;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.35rem;
    box-shadow: var(--shadow-lg);
    z-index: 20;
}

.nav-more:hover .nav-more-menu,
.nav-more:focus-within .nav-more-menu,
.nav-more.is-open .nav-more-menu {
    display: flex;
}

.nav-actions {
    gap: 0.4rem;
    margin-left: 0.35rem;
}

.main-nav a.nav-btn {
    border: 1px solid var(--secondary-color);
    color: #111827;
    background: var(--secondary-color);
}

.main-nav a.nav-btn-ghost {
    background: transparent;
    color: var(--secondary-color);
}

.main-nav a.nav-btn-ghost:hover,
.main-nav a.nav-btn:hover {
    background: #F59E0B;
    color: #111827;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 10px;
    margin-left: auto;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color); /* gold hamburger icon */
    transition: all 0.3s;
}

/* Hero Section */
.hero-section {
    position: relative;
    color: white;
    padding: 5rem 0;
    text-align: center;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    align-items: center;
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    z-index: 1;
    -webkit-transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
    -moz-transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
    -o-transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.45) 0%, rgba(59, 130, 246, 0.4) 100%);
    z-index: 2;
}

.hero-section .container {
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary {
    background: var(--secondary-color);
    color: var(--text-dark);
}

.btn-primary:hover {
    background: #F59E0B;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h1,
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* (removed section-title-brand and section-logo styles) */

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: var(--bg-white);
}

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

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.feature-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.feature-link:hover {
    text-decoration: underline;
}

/* Standings Section */
.standings-section {
    padding: 5rem 0;
    background: var(--bg-light);
}

#current-standings,
#stats-of-the-week {
    scroll-margin-top: 4.5rem;
}

.standings-table {
    overflow-x: auto;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

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

.standings-table th {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.standings-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.standings-table tr:hover {
    background: var(--bg-light);
}

.team-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.team-link:hover {
    text-decoration: underline;
}

/* Teams Section */
.teams-section {
    padding: 1.75rem 0 2.5rem;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.teams-section .teams-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.7rem;
}

.team-tile {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 109px;
    padding: 1rem 0.85rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

.team-tile:hover {
    border-color: #c7d2fe;
    box-shadow: 0 8px 18px rgba(30, 58, 138, 0.08);
}

.team-tile-logo,
.team-tile-mark {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex: 0 0 auto;
    background: var(--bg-light);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.team-tile-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-tile-mark {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
}

.team-tile-body {
    min-width: 0;
    flex: 1;
}

.team-tile-name {
    display: block;
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.2;
}

.team-tile-owner {
    display: block;
    margin-top: 0.12rem;
    color: var(--text-light);
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.team-tile-record {
    flex: 0 0 auto;
    padding: 0.22rem 0.5rem;
    border-radius: 999px;
    background: #eef2ff;
    color: var(--primary-color);
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.team-list {
    list-style: none;
    margin: 0;
    padding: 0;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.team-list li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.team-list li:last-child {
    border-bottom: 0;
}

.team-list img,
.team-list-mark {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

.team-list-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
}

.team-list-name {
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.team-list-seasons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
    margin-top: 0.15rem;
}

.team-list-seasons a {
    font-size: 0.85rem;
    font-weight: 600;
}

/* Player cards can use larger grid */
.player-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.team-card.player-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden; /* Ensure photo extends to edges */
    padding: 0; /* Remove default padding */
    border: 1px solid white;
    border-radius: 16px;
    background: #000000; /* Black background to prevent white showing through */
}

/* Card Flip Container - 3D Perspective */
.player-card-flip-container {
    perspective: 1000px;
    width: 100%;
    height: 100%;
    min-height: 500px; /* Ensure consistent height */
}

/* Inner Card Wrapper - Handles Rotation */
.player-card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    transition: transform 0.6s ease-in-out;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Flipped State */
.player-card-flip-inner.flipped {
    transform: rotateY(180deg);
}

/* Front and Back Sides */
.player-card-front,
.player-card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 500px;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}

/* Back Side - Initially Hidden (Rotated 180deg) */
.player-card-back {
    transform: rotateY(180deg);
    background: #FFFFFF; /* White background as requested */
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

/* Prevent flip when clicking on links - links should work normally */
.player-card-flip-inner a {
    cursor: pointer;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.team-card.player-card > a {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: none;
    outline: none;
}

.player-card .photo-header {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px 12px 0 0; /* Match card top border radius */
}

/* Card Flip Container - 3D Perspective */
.player-card-flip-container {
    perspective: 1000px;
    width: 100%;
    height: 100%;
    min-height: 500px; /* Ensure consistent height */
}

/* Inner Card Wrapper - Handles Rotation */
.player-card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    cursor: pointer;
}

/* Flipped State */
.player-card-flip-inner.flipped {
    transform: rotateY(180deg);
}

/* Front and Back Sides */
.player-card-front,
.player-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
}

.player-card-front {
    transform: rotateY(0deg);
    -webkit-transform: rotateY(0deg);
}

/* Back Side - Initially Hidden (Rotated 180deg) */
.player-card-back {
    transform: rotateY(180deg);
    background: #FFFFFF; /* White background as requested */
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

/* Don't flip when clicking on links */
.player-card-flip-inner a {
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Disable hover transform on flip cards to avoid conflicts */
.player-card-flip-container .team-card:hover {
    transform: none;
}

.team-card a {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 2rem;
    text-align: center;
}

.team-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    overflow: hidden;
    background-color: var(--bg-light);
}

.team-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    padding: 5px;
}

.team-logo-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    overflow: hidden;
    background-color: var(--bg-light);
}

.team-logo-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    padding: 8px;
}

.team-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.team-coach {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.team-record {
    font-weight: 600;
    color: var(--primary-color);
}

/* Team Detail */
.team-detail-section {
    padding: 3rem 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

.team-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.team-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.team-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.team-players,
.team-games {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.team-players h2,
.team-games h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

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

.players-table th {
    background: var(--bg-light);
    padding: 0.75rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.players-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.games-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-item {
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
}

.game-date {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.game-teams {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.game-teams .winner {
    color: var(--success-color);
}

.game-location {
    font-size: 0.875rem;
    color: var(--text-light);
}

.game-location:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Schedule Section */
.schedule-section {
    padding: 3rem 0;
}

.schedule-filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.schedule-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.schedule-date-group {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.date-header {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.games-for-date {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.schedule-game-card {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.game-time {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.game-matchup {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.game-team {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-white);
    border-radius: 6px;
}

.game-team.winner {
    background: #D1FAE5;
    font-weight: 700;
}

.game-team.tie {
    background: #FEF3C7;
    font-weight: 600;
}

.game-vs {
    font-weight: 600;
    color: var(--text-light);
}

.team-score {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.game-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.game-status {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.75rem;
}

.view-game-stats-btn {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.3s;
}

.view-game-stats-btn:hover {
    background: #1E40AF;
    color: white;
}

.status-scheduled {
    background: #DBEAFE;
    color: #1E40AF;
}

.status-completed {
    background: #D1FAE5;
    color: #065F46;
}

.status-cancelled {
    background: #FEE2E2;
    color: #991B1B;
}

/* Game referees and Ref this game */
.game-info {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.game-referees {
    width: 100%;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
    color: var(--text-dark);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.game-referees strong {
    width: 100%;
    margin-bottom: 0.25rem;
}

.game-ref-action {
    width: 100%;
    margin-top: 0.5rem;
}

.btn-ref-this-game {
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem;
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.btn-ref-this-game:hover {
    background: var(--primary-color);
    color: white;
}

.btn-ref-this-game.ref-btn-covered,
.btn-ref-this-game:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    color: #6b7280 !important;
    border-color: #9ca3af !important;
    background: #f3f4f6 !important;
    pointer-events: none !important;
}

.btn-ref-this-game.ref-btn-covered:hover,
.btn-ref-this-game.ref-btn-covered:focus,
.btn-ref-this-game:disabled:hover,
.btn-ref-this-game:disabled:focus {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    border-color: #9ca3af !important;
}

/* Referee sign-up modal */
.ref-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ref-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.ref-modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
}

.ref-modal-content h2 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.ref-modal-content .form-group {
    margin-bottom: 1rem;
}

.ref-modal-content label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text-dark);
}

.ref-modal-content .form-control {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
}

.ref-modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.ref-modal-actions .btn-secondary {
    background: var(--bg-light);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.ref-modal-actions .btn-secondary:hover {
    background: #e5e7eb;
}

/* Stats Section */
.stats-section {
    padding: 3rem 0;
}

.stats-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 0.75rem 2rem;
    border: 2px solid var(--border-color);
    background: var(--bg-white);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.stats-table-wrapper {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow-x: auto;
    overflow-y: visible;
    max-height: none;
    position: relative;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.stats-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.stats-table th {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.stats-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.stats-table tr:hover {
    background: var(--bg-light);
}

.jersey-number {
    color: var(--text-light);
    font-weight: normal;
    margin-left: 0.5rem;
}

.team-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
}

.team-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.team-stat-card {
    background: var(--bg-white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.team-stat-header {
    padding: 1.5rem;
    color: white;
}

.team-stat-header h3 {
    font-size: 1.5rem;
}

.team-stat-body {
    padding: 1.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.stat-label {
    color: var(--text-light);
}

.stat-value {
    font-weight: 600;
    color: var(--text-dark);
}

.view-team-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.view-team-link:hover {
    text-decoration: underline;
}

/* Photos Section */
.photos-section {
    padding: 3rem 0;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.photo-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.photo-link {
    display: block;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.photo-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: var(--bg-light);
}

.photo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo-card:hover .photo-image img {
    transform: scale(1.1);
}

.photo-overlay {
    padding: 1.5rem;
    background: var(--bg-white);
}

.photo-overlay h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.photo-team {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
}

/* Videos Section */
.videos-section {
    padding: 3rem 0;
}

.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.video-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-info {
    padding: 1.5rem;
}

.video-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.video-info p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.video-team {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color);
    color: white;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Footer */
.main-footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive Design */
@media (max-width: 980px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .main-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        position: fixed;
        top: 0;
        right: 0;
        width: min(100%, 320px);
        height: 100dvh;
        margin: 0;
        padding: calc(4.5rem + env(safe-area-inset-top)) 1rem calc(1.5rem + env(safe-area-inset-bottom));
        background: #0B1220;
        box-shadow: -12px 0 40px rgba(0, 0, 0, 0.35);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        transform: translateX(105%);
        transition: transform 0.22s ease;
        z-index: 1100;
    }

    .main-nav.active {
        transform: translateX(0);
    }

    body.nav-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 1050;
    }

    .nav-primary,
    .nav-more-menu,
    .nav-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0.15rem;
    }

    .nav-more-btn {
        display: none;
    }

    .nav-more-menu {
        display: flex;
        position: static;
        min-width: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0;
    }

    .main-nav a,
    .nav-btn,
    .nav-btn-ghost {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 0.7rem 0.85rem;
        border-radius: 10px;
        color: #F8FAFC !important;
        background: transparent;
        border-color: transparent;
    }

    .main-nav a.is-active,
    .main-nav a:hover {
        background: rgba(251, 191, 36, 0.16);
        color: var(--secondary-color) !important;
    }

    .nav-actions {
        margin: 0.75rem 0 0;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .logo img {
        height: 42px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }

    /* (removed site-logo and section-logo mobile overrides) */

    .team-content-grid {
        grid-template-columns: 1fr;
    }
    
    .team-header {
        flex-direction: column;
        text-align: center;
    }
    
    .videos-grid {
        grid-template-columns: 1fr;
    }
    
    .game-matchup {
        flex-direction: column;
        gap: 0.75rem; /* Add spacing between teams in mobile view */
    }
    
    .game-vs {
        margin: 0.25rem 0; /* Add vertical spacing around VS separator */
    }
    
    /* Schedule page mobile styles */
    .schedule-section {
        padding: 2rem 0;
    }
    
    .schedule-date-group {
        padding: 1.25rem;
    }
    
    .date-header {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .schedule-game-card {
        padding: 1rem;
    }
    
    .game-time {
        font-size: 0.875rem;
        margin-bottom: 0.75rem;
    }
    
    .game-team {
        padding: 0.5rem;
        font-size: 0.875rem;
        gap: 0.75rem; /* Add spacing between team name and score */
    }
    
    .team-name {
        flex: 1; /* Allow team name to take available space */
    }
    
    .team-score {
        font-size: 1rem;
        margin-left: 0.5rem; /* Additional spacing before score */
        white-space: nowrap; /* Prevent score from wrapping */
    }
    
    .game-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        font-size: 0.8rem;
    }
    
    .view-game-stats-btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.6rem;
    }
    
    .game-location {
        word-break: break-word;
    }
    
    /* Venues section mobile */
    .venues-section {
        margin-top: 2rem;
    }
    
    .venues-section > div[style*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .venues-section > div[style*="grid"] > div {
        padding: 1.25rem !important;
    }
    
    /* Stats page mobile styles */
    .stats-section {
        padding: 2rem 0;
    }
    
    .stats-tabs {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .stats-table-wrapper {
        padding: 1rem;
        overflow-x: auto;
        overflow-y: visible;
        max-height: none;
        -webkit-overflow-scrolling: touch;
    }
    
    .stats-table {
        font-size: 0.875rem;
        min-width: 600px; /* Reduced from 800px but still allows horizontal scroll */
    }
    
    .stats-table th,
    .stats-table td {
        padding: 0.5rem;
    }
    
    /* Section headers mobile */
    .section-header {
        margin-bottom: 2rem;
    }
    
    .section-header h1,
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    /* Container padding mobile */
    .container {
        padding: 0 1rem;
    }
    
    /* Features grid mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Teams grid mobile */
    .teams-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Team stats grid mobile */
    .team-stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Photos grid mobile */
    .photos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Videos grid mobile - reduce min-width */
    .videos-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Schedule filters mobile */
    .schedule-filters {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Hero buttons mobile */
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
}

.no-games {
    text-align: center;
    padding: 3rem;
    color: var(--text-light);
}

/* Player Profile Cards */
.player-card {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.player-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.player-card a {
    display: flex;
    flex-direction: column;
    padding: 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s;
    min-height: 350px;
    height: 100%;
    overflow: hidden;
}

.player-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.player-card img {
    transition: transform 0.3s;
}

.player-card:hover img {
    transform: scale(1.05);
}

/* Cleaner shell: navigation, spacing, and phone layout */
.main-header {
    background: #0B1220;
    border-bottom: 3px solid var(--secondary-color);
    z-index: 1300;
    padding-top: env(safe-area-inset-top);
}

.main-footer {
    margin-top: 2.5rem;
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
    background: #0B1220;
}

.footer-bottom a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.hero-section {
    min-height: 0;
    padding: 4.5rem 0;
}

.season-banner {
    background: #111827;
    color: #F8FAFC;
    padding: 0.9rem 0;
}

.season-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.season-banner p {
    margin: 0;
    font-size: 0.98rem;
}

.season-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.season-switcher a,
.week-switcher a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    background: #fff;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.season-switcher a.is-active,
.week-switcher a.is-active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.sotw-filters {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin: -0.4rem 0 1rem;
}

.sotw-filters .season-switcher {
    justify-content: flex-start;
    margin-top: 0;
}

.sotw-filters .season-switcher a {
    padding: 0.4rem 0.8rem;
    font-size: 0.9rem;
}

.week-switcher {
    display: flex;
    gap: 0.4rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
}

.week-switcher a {
    flex: 0 0 auto;
    font-size: 0.88rem;
}

.week-select {
    display: none;
}

#stats-of-the-week.is-loading {
    opacity: 0.55;
    pointer-events: none;
}

.home-shortcut-section {
    display: none;
}

.home-shortcut {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: #000;
    color: #fff;
    border-radius: 16px;
    padding: 0.9rem;
}

.home-shortcut img {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 14px;
    background: #000;
}

.home-shortcut strong {
    display: block;
    font-size: 1rem;
    line-height: 1.3;
}

.home-shortcut p {
    margin: 0.25rem 0 0;
    color: #e5e7eb;
    font-size: 0.88rem;
    line-height: 1.35;
}

.home-shortcut button {
    margin-left: auto;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
}

.sotw-empty {
    margin: 0;
    color: var(--text-light);
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.1rem 1rem;
}

.player-focus .section-header {
    text-align: center;
}

.player-focus .teams-grid {
    width: min(420px, 100%);
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: 1fr;
}

.sotw-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-bottom: 0.85rem;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    background: #fff;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    text-decoration: none;
    font-weight: 700;
}

.invite-card,
.invite-roster {
    max-width: 520px;
    margin: 0 auto 1rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.1rem 1rem 1.2rem;
}

.invite-card h2,
.invite-roster h2 {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
}

.invite-note {
    margin: 0 0 0.9rem;
    color: var(--text-light);
}

.invite-error {
    margin-bottom: 0.8rem;
    padding: 0.75rem 0.8rem;
    border-radius: 8px;
    background: #fee;
    color: #991b1b;
}

.invite-card label {
    display: block;
    margin: 0.7rem 0 0.3rem;
    font-weight: 700;
}

.invite-card input,
.invite-url {
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
}

.invite-card button {
    margin-top: 1rem;
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    background: var(--primary-color);
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
}

.invite-roster ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.invite-roster li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-top: 1px solid var(--border-color);
}

.invite-roster img,
.invite-roster-empty {
    width: 52px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    background: #1f2937;
    flex: 0 0 52px;
}

.invite-roster-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    font-size: 0.65rem;
    text-align: center;
}

.invite-roster small {
    display: block;
    color: var(--text-light);
}
    margin: 0.15rem 0 0.35rem;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
}

.season-banner a {
    flex: 0 0 auto;
    color: #111827;
    background: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.features-section,
.standings-section,
.stats-section,
.stats-of-week-section,
.top-players-section {
    padding: 2.5rem 0;
}

.week-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.7rem;
}

.week-stat {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.75rem;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
}

a.week-stat {
    text-decoration: none;
    color: inherit;
}

a.week-stat:active {
    transform: scale(0.99);
}

.week-stat-photo {
    width: 76px;
    height: 92px;
    flex: 0 0 76px;
    border-radius: 12px;
    overflow: hidden;
    background: #1f2937;
}

.week-stat-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.week-stat-photo.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
}

.week-stat-body {
    min-width: 0;
    flex: 1;
}

.week-stat-headline {
    color: var(--primary-color);
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.week-stat-name {
    margin-top: 0.35rem;
    font-weight: 700;
    line-height: 1.2;
}

.week-stat-name span {
    color: var(--text-light);
    font-weight: 600;
}

.week-stat-team {
    margin-top: 0.1rem;
    color: var(--text-light);
    font-size: 0.82rem;
}

.week-stat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.65rem;
}

.week-stat-chips span {
    background: #eef2ff;
    color: #1e3a8a;
    border-radius: 999px;
    padding: 0.16rem 0.48rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.section-header {
    margin-bottom: 1.5rem;
}

.section-header h1,
.section-header h2 {
    font-size: 1.85rem;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.features-grid a.feature-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
    min-height: 112px;
    padding: 1.1rem 1.15rem;
    text-align: left;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--primary-color);
    box-shadow: none;
}

.features-grid a.feature-card h3 {
    margin: 0;
    font-size: 1.15rem;
}

.features-grid a.feature-card p {
    margin: 0;
    font-size: 0.92rem;
}

.features-grid a.feature-card:hover {
    transform: none;
    border-left-color: var(--secondary-color);
    box-shadow: var(--shadow);
}

.pow-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.mobile-menu-toggle {
    position: relative;
    z-index: 2;
}

.mobile-menu-toggle span {
    display: block;
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

@media (max-width: 900px) {
    .pow-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero-section {
        padding: 2.75rem 0;
    }

    .hero-content h1 {
        font-size: 1.7rem;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }

    .season-banner .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .season-banner a {
        width: 100%;
        justify-content: center;
    }

    .pow-grid {
        grid-template-columns: 1fr;
    }

    .section-header h1,
    .section-header h2 {
        font-size: 1.5rem;
    }
}

.admin-page {
    padding-top: 1.25rem;
}

.admin-page .section-header {
    margin-bottom: 0.75rem;
}

.admin-nav {
    margin-bottom: 1.25rem;
}

.admin-jump {
    display: none;
}

.admin-nav-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
}

.admin-nav-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.admin-nav-label {
    width: 100%;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
}

.admin-page .tab-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 999px;
    border-width: 1px;
}

@media (max-width: 760px) {
    .admin-jump {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        margin-bottom: 0.25rem;
        font-weight: 600;
    }

    .admin-jump select {
        flex: 1;
        min-height: 44px;
        font-size: 1rem;
        padding: 0.4rem 0.6rem;
        border: 1px solid var(--border-color);
        border-radius: 8px;
        background: var(--bg-white);
    }

    .admin-nav-groups {
        display: none;
    }

    .admin-page form[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .week-switcher {
        display: none;
    }

    .week-select {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        font-weight: 700;
    }

    .week-select select {
        flex: 1;
        min-height: 48px;
        font-size: 1rem;
        font-weight: 700;
        padding: 0.45rem 0.75rem;
        border: 1px solid var(--border-color);
        border-radius: 12px;
        background: var(--bg-white);
        color: var(--text-dark);
    }

    .home-shortcut-section {
        display: block;
        padding: 0.75rem 0 0;
    }
}

