/* === General Resets & Body === */

* {

    box-sizing: border-box;

    margin: 0;

    padding: 0;

}



body {

    font-family: 'Montserrat', sans-serif;

    line-height: 1.6;

    background-color: #f4f7f6;

    color: #333;

    display: flex;
    padding-bottom: 140px;
    flex-direction: column;
    min-height: 100vh;
    -webkit-tap-highlight-color: transparent;

}



h1,

h2,

h3,

h4,

h5,

h6 {

    color: var(--primary-color);

    margin-bottom: 0.75rem;

}



/* === Layout === */

.container {

    width: 90%;

    max-width: 1200px;

    margin: 0 auto;

}



main.container {

    flex-grow: 1;

    padding: 2rem 0;

}



/* === Header === */

.main-header {

    background-color: var(--header-bg);

    color: var(--header-text-color);

    padding: 1rem 0;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

    position: sticky;

    top: 0;

    z-index: 1000;

}



.main-header .container {

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.main-header .logo {

    display: flex;

    align-items: center;

    text-decoration: none;

    color: var(--header-text-color);

}



.main-header .logo img {

    height: 40px;

    margin-right: 15px;

    object-fit: contain;

}



.main-header .logo h1 {

    font-size: 1.2rem;

    font-weight: 800;
    text-transform: uppercase;

    color: var(--header-text-color);

    margin: 0;

}



.main-header nav a {

    color: var(--header-text-color);

    text-decoration: none;

    margin-left: 20px;

    font-weight: 500;

    transition: opacity 0.2s ease-in-out;

}



.main-header nav a:hover {

    opacity: 0.8;

}



/* === Links & Buttons === */

a {

    color: var(--link-color);

    text-decoration: none;

    transition: color 0.2s ease-in-out;

}



a:hover {

    color: var(--link-hover-color);

}



.btn,

button {

    display: inline-block;

    background-color: var(--button-bg-color);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;

    color: #fff;

    padding: 10px 15px;

    border: none;

    border-radius: 1

    text-decoration: none;

    font-size: 1rem;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

}



.btn-secondary {

    background-color: #6c757d;

    color: #fff;

}



.btn-secondary:hover {

    background-color: #5a6268;

}



.btn:hover,

button:hover {

    background-color: var(--primary-color);

    color: #fff;

}



/* === Cards === */

.card-grid {

    display: grid;

    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));

    gap: 1.5rem;

}



.card {

    background: #fff;

    border-radius: 20px;

    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);

    padding: 1.5rem;


}



.card:hover {

    transform: translateY(-5px);

    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);

}



.card h3 {

    margin: 0;

    color: var(--primary-color);

}



/* === Table Wrapper for Scrolling === */

.table-wrapper {

    overflow-x: auto;

    -webkit-overflow-scrolling: touch;

}



/* === Tables === */

.styled-table {

    width: 100%;

    border-collapse: collapse;

    margin: 25px 0;

    font-size: 0.9em;

    border-radius: 5px 5px 0 0;

    overflow: hidden;

    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);

}



.styled-table thead tr {

    background-color: var(--primary-color);

    color: #ffffff;

    text-align: left;

}



.styled-table th,

.styled-table td {

    padding: 12px 15px;

}



.styled-table tbody tr {

    border-bottom: 1px solid #dddddd;

}



.styled-table tbody tr:nth-of-type(even) {

    background-color: #f3f3f3;

}



.styled-table tbody tr:last-of-type {

    border-bottom: 2px solid var(--primary-color);

}



.styled-table tbody tr.active-row {

    font-weight: bold;

    color: var(--primary-color);

}



/* === Bottom Navigation === */

.bottom-nav {

    position: fixed;

    bottom: 0;

    left: 0;

    right: 0;

    height: 65px;

    background-color: #ffffff;

    display: flex;

    justify-content: space-around;

    align-items: center;

    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);

    z-index: 1001;

}



.bottom-nav a {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    flex-grow: 1;

    text-decoration: none;

    color: #95a5a6;

    /* Muted color for inactive items */

    font-size: 12px;

    height: 100%;

    transition: color 0.2s ease-in-out;

}



.bottom-nav a .fa-solid {

    font-size: 22px;

    margin-bottom: 4px;

}



.bottom-nav a.active {

    color: var(--primary-color);

    /* Use theme color for the active item */

}



/* === Dashboard / Latest View === */

.dashboard-view {

    padding: 1rem 0;

}



.dashboard-section {

    margin-bottom: 1.5rem;

    background-color: #fff;

    border-radius: 8px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);

    overflow: hidden;

}



.dashboard-title {

    font-size: 1.1em;

    padding: 12px 16px;

    margin: 0;

    background-color: #f7f7f7;

    border-bottom: 1px solid #eee;

}



.fixture-list {

    padding: 0;

}



.fixture-item {

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    padding: 16px;

    border-bottom: 1px solid #eee;

    text-decoration: none;

    color: inherit;

}



.fixture-item:last-child {

    border-bottom: none;

}



.fixture-item .team {

    font-weight: 600;

}



.fixture-item .away-team {

    text-align: right;

}



.score-box {

    text-align: center;

    font-size: 1.2em;

    font-weight: bold;

    padding: 4px 12px;

    background-color: #f0f2f5;

    border-radius: 6px;

    min-width: 80px;

}



.score-box.live {

    background-color: #ffebeb;

    color: #dc3545;

}



.score-box.time-box {

    font-size: 1em;

}



.score-box .time,

.score-box .date {

    display: block;

    font-size: 0.8em;

}



.table-wrapper-snapshot {

    padding: 0 16px;

}



.styled-table.mini {

    margin: 15px 0;

    font-size: 0.85em;

}



.styled-table.mini th,

.styled-table.mini td {

    padding: 8px 10px;

    text-align: center;

}



.styled-table.mini .team-name-cell {

    text-align: left;

    display: flex;

    align-items: center;

    gap: 8px;

}



.table-logo {

    width: 20px;

    height: 20px;

}



.view-full-link {

    display: block;

    text-align: center;

    padding: 12px;

    background-color: #f0f2f5;

    text-decoration: none;

    color: var(--primary-color);

    font-weight: bold;

    transition: background-color 0.2s;

}



.view-full-link:hover {

    background-color: #e4e6eb;

}



/* === Stories Section === */

.stories-section {

    background: none;

    box-shadow: none;

}



.stories-container {

    display: flex;

    gap: 15px;

    overflow-x: auto;

    padding: 0 16px 10px 16px;

    /* Hide scrollbar */

    -ms-overflow-style: none;

    /* IE and Edge */

    scrollbar-width: none;

    /* Firefox */

}



.stories-container::-webkit-scrollbar {

    display: none;

    /* Chrome, Safari, Opera */

}



.story-item {

    text-align: center;

    flex-shrink: 0;

}



.story-logo-container {

    width: 64px;

    height: 64px;

    border-radius: 50%;

    border: 2px solid var(--secondary-color);

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 2px;

    background: #fff;

    margin-bottom: 5px;

}



.story-logo {

    width: 45%;

    height: 45%;

    object-fit: contain;

}



.story-label {

    font-size: 11px;

    font-weight: 500;

}



/* === Countdown Timer === */

.countdown-section {

    text-align: center;

    padding: 20px;

}



#countdown-timer {

    display: flex;

    justify-content: center;

    gap: 15px;

    margin-top: 10px;

}



.countdown-item {

    display: flex;

    flex-direction: column;

    align-items: center;

    background-color: var(--primary-color);

    color: #fff;

    padding: 10px;

    border-radius: 8px;

    min-width: 70px;

}



.countdown-item span {

    font-size: 2em;

    font-weight: bold;

}



.no-data-msg {

    padding: 20px;

    text-align: center;

    color: #6c757d;

    font-style: italic;

}



/* === Matches Page Specific === */

.matches-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 1.5rem;

}



.matches-header>h1 {

    margin: 0;

}



.selectors-form {

    display: flex;

    gap: 10px;

}



.selectors-form select {

    padding: 8px 12px;

    border-radius: 5px;

    border: 1px solid #ced4da;

    font-size: 1rem;

}



.gameweek-nav {

    display: flex;

    justify-content: space-between;

    align-items: center;

    margin-bottom: 1.5rem;

}



.gameweek-display {

    font-size: 1.2rem;

    font-weight: bold;

    color: var(--primary-color);

}



/* === Main Tabs === */

.main-tabs {

    display: flex;

    border-bottom: 1px solid #dee2e6;

    margin-bottom: 1.5rem;

}



.tab-link {

    padding: 1rem;

    text-align: center;

    flex-grow: 1;

    text-decoration: none;

    color: #6c757d;

    font-weight: 600;

    border-bottom: 3px solid transparent;

    transition: all 0.2s ease-in-out;

}



.tab-link.active {

    color: var(--primary-color);

    border-bottom-color: var(--primary-color);

}



/* === Sub Tabs (for Table and Stats) === */

.sub-tabs {

    display: flex;

    gap: 10px;

    margin-bottom: 1.5rem;

    overflow-x: auto;

    padding-bottom: 5px;

}



.sub-tab-link {

    padding: 8px 16px;

    border-radius: 20px;

    background-color: #e9ecef;

    color: #495057;

    text-decoration: none;

    font-weight: 600;

    font-size: 0.9em;

    white-space: nowrap;

    transition: all 0.2s ease-in-out;

}



.sub-tab-link.active {

    background-color: var(--primary-color);

    color: #fff;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

}



/* === Form Table Styles === */

.form-header {

    text-align: right !important;

}



.form-cell {

    display: flex;

    gap: 5px;

    justify-content: flex-end;

}



.form-bubble {

    display: inline-flex;

    width: 24px;

    height: 24px;

    border-radius: 50%;

    align-items: center;

    justify-content: center;

    color: white;

    font-weight: bold;

    font-size: 0.8em;

    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.2);

}



.form-w {

    background-color: #28a745;

}



/* Win - Green */

.form-d {

    background-color: #fd7e14;

}



/* Draw - Orange */

.form-l {

    background-color: #dc3545;

}



/* Loss - Red */



/* === Stats View Placeholder === */

.stats-container .stats-section {

    margin-bottom: 1.5rem;

    background: #fff;

    border-radius: 8px;

    padding: 1rem;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);

}



.stats-container .stats-section h3 {

    margin-top: 0;

    font-size: 1.1em;

    border-bottom: 1px solid #eee;

    padding-bottom: 0.5rem;

    margin-bottom: 1rem;

}



.stats-filter-buttons {

    display: flex;

    gap: 10px;

    margin-bottom: 1.5rem;

}



.stats-filter-buttons .btn {

    flex-grow: 1;

}



.stats-row {

    display: grid;

    grid-template-columns: 30px 1fr auto;

    align-items: center;

    gap: 15px;

    padding: 8px 0;

    border-bottom: 1px solid #f0f0f0;

}



.stats-row:last-child {

    border-bottom: none;

}



.stats-row .rank {

    text-align: center;

    color: #888;

    font-weight: 500;

}



.stats-row .player-info {

    display: flex;

    align-items: center;

    gap: 10px;

    font-weight: 600;

}



.stats-row .stat-value {

    font-weight: 700;

    font-size: 1.1em;

}



/* === Responsive Adjustments === */

@media (max-width: 768px) {

    .matches-header {

        flex-direction: column;

        align-items: flex-start;

        gap: 1rem;

    }



    .selectors-form {

        flex-direction: column;

        width: 100%;

    }



    .selectors-form select {

        width: 100%;

    }

}



/* === Match Details Page === */

.match-hero {

    display: grid;

    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 1rem;

    background: var(--primary-color);

    background: var(--hero-gradient);

    color: #fff;

    padding: 20px;

    border-radius: 0 0 25px 25px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);

    margin-bottom: 25px;

}



.hero-team {

    display: flex;

    flex-direction: column;

    gap: 10px;

}



.hero-team.home {

    align-items: flex-start;

}



.hero-team.away {

    align-items: flex-end;

    text-align: right;

}



.hero-logo {

    width: 60px;

    height: 60px;

    background-color: #fff;

    border-radius: 50%;

    padding: 5px;

    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

}



.hero-team-name {

    font-weight: bold;

    font-size: 1.1em;

}



.hero-score {

    text-align: center;

}



.hero-score .score {

    font-size: 2.5em;

    font-weight: bold;

}



.hero-score .match-status {

    font-size: 0.8em;

    background-color: rgba(0, 0, 0, 0.2);

    padding: 2px 8px;

    border-radius: 10px;

    margin-top: 5px;

    text-transform: uppercase;

}



.match-detail-section {

    padding: 1.5rem 0;

}



.timeline-event {

    display: flex;

    align-items: center;

    gap: 15px;

    margin: 1rem 0;

    padding: 10px;

    background: #f9f9f9;

    border-left: 4px solid;

}



.timeline-event.home-event {

    border-left-color: var(--secondary-color);

}



.timeline-event .minute {

    font-weight: bold;

}



.timeline-event .event-icon {

    font-size: 1.2em;

}



.timeline-event .assist-text {

    font-size: 0.85em;

    color: #666;

}



/* === Fantasy Page Styles === */

.fantasy-dashboard {

    background-color: #f0f2f5;

    margin: -2rem 0;

    /* Extend to edges */

    padding: 0;

}



.fantasy-header {

    background: var(--primary-color);

    color: #fff;

    padding: 1.5rem;

    display: flex;

    justify-content: space-between;

    align-items: center;

}



.points-display {

    text-align: left;

}



.points-display .points-value {

    font-size: 2.5em;

    font-weight: bold;

    display: block;

    line-height: 1;

}



.points-display .points-label {

    font-size: 0.9em;

    opacity: 0.8;

}



.team-name-display {

    text-align: right;

}



.team-name-display h4 {

    margin: 0 0 8px 0;

    font-size: 1.2em;

    color: #fff;

}



.fantasy-form-container {

    text-align: center;

    padding: 2rem;

    background: #fff;

    border-radius: 8px;

}



#create-fantasy-team-form {

    display: flex;

    flex-direction: column;

    gap: 1rem;

    max-width: 400px;

    margin: 1rem auto 0 auto;

}



#create-fantasy-team-form input {

    padding: 12px;

    border: 1px solid #ddd;

    border-radius: 6px;

    font-size: 1rem;

}



/* === Account Panel Styles === */

.account-panel-overlay {

    position: fixed;

    top: 0;

    left: 0;

    right: 0;

    bottom: 0;

    background-color: rgba(0, 0, 0, 0.5);

    opacity: 0;

    visibility: hidden;

    z-index: 1002;

    /* Above bottom nav */

    transition: opacity 0.3s, visibility 0.3s;

}



.account-panel-overlay.visible {

    opacity: 1;

    visibility: visible;

}



.account-panel {

    position: fixed;

    bottom: 0;

    left: 0;

    right: 0;

    background-color: #fff;

    padding: 20px;

    padding-bottom: 80px;

    /* Space for nav bar if needed */

    border-top-left-radius: 16px;

    border-top-right-radius: 16px;

    transform: translateY(100%);

    transition: transform 0.3s ease-in-out;

    z-index: 1003;

    /* Above overlay */

    max-height: 70vh;

    overflow-y: auto;

}



.account-panel.visible {

    transform: translateY(0);

}



.account-panel-header {

    display: flex;

    justify-content: space-between;

    align-items: center;

    border-bottom: 1px solid #eee;

    padding-bottom: 10px;

    margin-bottom: 10px;

}



.account-panel-header h3 {

    margin: 0;

}



.account-panel ul {

    list-style: none;

    padding: 0;

    margin: 0;

}



.account-panel li a {

    display: block;

    padding: 14px 0;

    border-bottom: 1px solid #eee;

    text-decoration: none;

    font-weight: 600;

}



.account-panel li:last-child a {

    border-bottom: none;

}



#close-account-panel {

    background: none;

    border: none;

    font-size: 1.8rem;

    cursor: pointer;

    color: #888;

}



/* === Fantasy Squad Pitch === */

.squad-pitch {

    background-image: linear-gradient(to bottom, #008000, #006400);

    background-color: #008000;

    /* Fallback */

    padding: 1rem;

    display: flex;

    flex-direction: column;

    gap: 1rem;

    border: 2px solid #fff;

    margin: 1rem;

    border-radius: 8px;

}



.pitch-row {

    display: flex;

    justify-content: space-around;

    align-items: center;

}



.player-card {

    display: flex;

    flex-direction: column;

    align-items: center;

    text-align: center;

    width: 70px;

}



.player-shirt {

    font-size: 2.5rem;

    color: #fff;

    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);

    margin-bottom: 4px;

}



.player-name {

    background-color: var(--primary-color);

    color: #fff;

    font-size: 11px;

    font-weight: bold;

    padding: 2px 6px;

    border-radius: 3px;

    width: 100%;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;

}



.player-points {

    background-color: rgba(0, 0, 0, 0.5);

    color: #fff;

    font-size: 10px;

    font-weight: bold;

    padding: 1px 5px;

    border-radius: 3px;

    margin-top: 2px;

}



/* === Fantasy Transfers Page === */

.transfers-header {

    margin-bottom: 1.5rem;

}



.transfers-info-bar {

    display: flex;

    justify-content: space-between;

    background-color: #fff;

    padding: 1rem;

    border-radius: 8px;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);

}



.info-item {

    text-align: center;

}



.info-label {

    display: block;

    font-size: 0.8em;

    color: #6c757d;

    margin-bottom: 4px;

}



.info-value {

    font-size: 1.2em;

    font-weight: bold;

    color: var(--primary-color);

}



.player-filters {

    margin-bottom: 1rem;

}



.transfers-table .btn-sm {

    padding: 5px 10px;

    font-size: 0.8em;

    min-width: 70px;

}



.transfers-table .btn-add {

    background-color: #28a745;

}



.transfers-table .btn-add:hover {

    background-color: #218838;

}



.transfers-table .btn-remove {

    background-color: #dc3545;

}



.transfers-table tr.selected {

    background-color: #fffbe6 !important;

}



.transfers-footer-bar {

    position: fixed;

    bottom: 65px;

    /* Height of bottom-nav */

    left: 0;

    right: 0;

    background-color: #fff;

    padding: 10px 15px;

    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);

    display: flex;

    justify-content: space-between;

    align-items: center;

    z-index: 1000;

}



.squad-summary {

    display: flex;

    gap: 15px;

    font-size: 0.9em;

    font-weight: 500;

}



.squad-position-count.limit-reached {

    color: #dc3545;

    font-weight: bold;

}



/* === Player Stats Page === */

.stats-card-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));

    gap: 1rem;

    margin-top: 1.5rem;

}



.stat-card {

    background-color: #fff;

    border-radius: 8px;

    padding: 1.5rem 1rem;

    text-align: center;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);

    transition: transform 0.2s ease-in-out;

}



.stat-card:hover {

    transform: translateY(-5px);

}



.stat-card .stat-value {

    font-size: 2.5em;

    font-weight: 700;

    color: var(--primary-color);

    line-height: 1.1;

}



.stat-card .stat-label {

    font-size: 1em;

    color: #6c757d;

    margin-top: 0.5rem;

}



/* === Authentication Pages (Login/Register) === */

.auth-page.page-content {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-grow: 1;

    padding-top: 0;

    padding-bottom: 0;

}



.auth-container {

    width: 100%;

    max-width: 420px;

    background-color: #fff;

    padding: 2rem 2.5rem;

    border-radius: 12px;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);

}



.auth-header {

    text-align: center;

    margin-bottom: 1.5rem;

}



.auth-logo {

    width: 60px;

    height: 60px;

    margin-bottom: 1rem;

}



.auth-header h1 {

    font-size: 1.8em;

    margin-bottom: 0.5rem;

}



.auth-header p {

    color: #6c757d;

}



.auth-form {

    display: flex;

    flex-direction: column;

    gap: 1.2rem;

}



.form-group {

    display: flex;

    flex-direction: column;

}



.form-group label {

    font-weight: 600;

    margin-bottom: 6px;

    font-size: 0.9em;

}



.auth-form input {

    width: 100%;

    padding: 12px 15px;

    border: 1px solid #ced4da;

    border-radius: 6px;

    font-size: 1rem;

    transition: border-color 0.2s, box-shadow 0.2s;

}



.auth-form input:focus {

    outline: none;

    border-color: var(--primary-color);

    box-shadow: 0 0 0 3px rgba(44, 62, 80, 0.1);

    /* Use primary color with alpha */

}



.auth-form button {

    padding: 14px;

    font-size: 1.1rem;

    font-weight: bold;

    margin-top: 0.5rem;

}



.error-message {

    background-color: #f8d7da;

    color: #721c24;

    border: 1px solid #f5c6cb;

    padding: 1rem;

    border-radius: 6px;

    margin-bottom: 1.5rem;

    text-align: center;

}



.auth-footer {

    margin-top: 1.5rem;

    text-align: center;

    font-size: 0.9em;

    color: #6c757d;

}



.auth-footer a {

    font-weight: 600;

}



.auth-footer span {

    display: block;

    margin-top: 0.5rem;

}



.league-list {

    display: flex;

    flex-wrap: wrap;

    gap: 20px;

}



.league-item {

    background-color: #f9f9f9;

    border: 1px solid #ddd;

    border-radius: 8px;

    padding: 15px;

    width: calc(50% - 20px);

    /* Two items per row minus the gap */

    box-sizing: border-box;

    display: flex;

    flex-direction: column;

    justify-content: space-between;

}



.league-info h4 {

    margin-bottom: 5px;

    font-size: 1.2rem;

}



.league-info small {

    display: block;

    margin-bottom: 3px;

    color: #777;

}



.league-top-teams {

    margin-top: 10px;

    font-size: 0.9rem;

    color: #555;

}



.fantasy-league-actions {

    display: flex;

    gap: 20px;

    margin-bottom: 20px;

}



.league-action-card {

    background-color: #fff;

    border: 1px solid #ddd;

    border-radius: 8px;

    padding: 15px;

    width: calc(50% - 20px);

    /* Two items per row minus the gap */

    box-sizing: border-box;

}



.league-action-card h3 {

    margin-bottom: 10px;

    font-size: 1.1rem;

}



.league-action-card p {

    color: #666;

    font-size: 0.9rem;

    margin-bottom: 15px;

}



/* === Dashboard Hero Specifics === */

.dashboard-hero {

    background: var(--primary-color);

    background: var(--hero-gradient);

    background-color: #2c3e50;

    color: white;

    border-radius: 0 0 20px 20px;

    padding: 20px;

    margin-bottom: 25px;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);

    position: relative;

    z-index: 1;

}



.match-status-badge {

    background: rgba(255, 255, 255, 0.2);

    padding: 4px 10px;

    border-radius: 12px;

}



.match-status-badge.live {

    background: #e90052;

    color: white;

}



.hero-match-content {

    display: flex;

    align-items: center;

    justify-content: space-between;

    text-decoration: none;

    color: white;

}



/* Override generic hero-team for dashboard to center align */

.dashboard-hero .hero-team {

    flex: 1;

    align-items: center;

    text-align: center;

}



.hero-center {

    flex: 0 0 120px;

    text-align: center;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

}



.hero-time {

    font-size: 2rem;

    font-weight: 800;

    line-height: 1;

    margin-bottom: 5px;

}



#hero-countdown {

    font-size: 0.9rem;

    font-weight: 600;

    color: #00ff85;

    background: rgba(0, 0, 0, 0.3);

    padding: 5px 10px;

    border-radius: 15px;

}



.cd-part {

    font-variant-numeric: tabular-nums;

}



.starts-soon {

    color: #00ff85;

    font-weight: bold;

}



/* === Live Timer & Status (Global) === */

.status-label {

    display: block;

    font-size: 0.7rem;

    font-weight: 600;

    color: #666;

    margin-top: 2px;

    text-transform: uppercase;

}



.live-timer {

    font-size: 0.7rem;

    margin-top: 2px;

    font-weight: 700;

    color: #e90052;

    animation: pulse 1.5s infinite;

}



.hero-center .live-timer {

    color: #00ff85;

    font-size: 0.8rem;

    text-transform: uppercase;

    letter-spacing: 0.5px;

}



@keyframes pulse {

    0% {

        opacity: 1;

    }



    50% {

        opacity: 0.6;

    }



    100% {

        opacity: 1;

    }

}



/* === Fixture Item Alignment Updates === */

.fixture-item .team {

    display: flex;

    align-items: center;

    gap: 10px;

}



.fixture-item .home-team {

    justify-content: flex-end;

    text-align: right;

}



.fixture-item .away-team {

    justify-content: flex-start;

    text-align: left;

}



/* Enhanced Mobile View for Fixtures */

@media (max-width: 480px) {

    .fixture-item {

        padding: 12px 8px;

        gap: 8px;

    }



    .fixture-item .team-name {

        display: block;

        font-size: 0.8rem;

        max-width: 80px;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;

    }



    .score-box {

        min-width: 60px;

        padding: 4px 6px;

    }



    .score {

        font-size: 1.1rem;

    }

}

#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.toast {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    animation: slideIn 0.3s ease-out forwards;
    border-left: 4px solid #333;
    min-width: 250px;
    color: #333;
}

.toast.hide {
    animation: slideOut 0.3s ease-in forwards;
}

.toast-success {
    border-left-color: #27ae60;
}

.toast-error {
    border-left-color: #e74c3c;
}

.toast-info {
    border-left-color: #3498db;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Pull to Refresh Visuals */
#ptr-indicator {
    position: fixed;
    top: -60px;
    left: 0;
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    z-index: 10001;
    transition: transform 0.2s ease;
    color: var(--primary-color);
    font-size: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* --- PWA Notification Prompt --- */
.notification-prompt {
    position: fixed;
    bottom: calc(var(--bottom-nav-height, 75px) + 40px);
    left: 20px;
    right: 20px;
    max-width: 460px;
    margin: 0 auto;
    background: var(--card-bg, #fff);
    border: 1px solid var(--border-color, #eee);
    border-radius: 16px;
    padding: 12px 16px;
    display: none;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 999;
    animation: slideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.prompt-icon {
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.prompt-content { flex: 1; cursor: pointer; }
.prompt-content strong { display: block; font-size: 0.9rem; color: var(--text-color); }
.prompt-content p { font-size: 0.75rem; color: #666; margin: 0; line-height: 1.2; }

.btn-prompt-close { background: none; border: none; color: #ccc; cursor: pointer; padding: 5px; font-size: 1.1rem; transition: color 0.2s; }
.btn-prompt-close:hover { color: #888; }