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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.5;
}

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

/* Tooltip styles */
.tooltip-trigger {
    cursor: pointer;
    display: inline-block;
    min-width: 20px;
    min-height: 20px;
}

.tooltip-icon {
    font-size: 12px;
    color: #64748b;
    opacity: 0.7;
}

.tooltip-trigger:hover .tooltip-icon {
    opacity: 1;
}

.tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    max-width: 300px;
    word-wrap: break-word;
    z-index: 10000;
    pointer-events: none;
    display: none;
    white-space: pre-line;
    line-height: 1.4;
    font-family: inherit;
    box-sizing: border-box;
}

.expected-price-crossed {
    text-decoration: line-through;
    color: #64748b;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 16px;
    padding: 48px 32px;
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
}

.hero .subtitle,
.about-hero .subtitle {
    font-size: 20px;
    color: #64748b;
    margin: 8px auto 32px;
    max-width: 820px;
    text-align: center;
    justify-content: center;
    display: grid;
}

.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-input-container {
    position: relative;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.search-input-container:focus-within {
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    background: transparent;
    outline: none;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 20px;
    z-index: 2;
}

.live-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    background: white;
}

.live-search-input:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
    background: white;
}

/* Autocomplete */
.autocomplete-dropdown,
.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.autocomplete-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: #f0fdf4;
    color: #16a34a;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item .player-name {
    font-weight: 600;
}

.autocomplete-item .deal-count {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 12px;
}

.autocomplete-item:hover .deal-count {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

/* Stats grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stat-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.stat-card:hover {
    border-color: #16a34a;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.1);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.stat-excellent .stat-value { color: #16a34a; }
.stat-good .stat-value { color: #2563eb; }
.stat-total .stat-value { color: #64748b; }

.stat-label {
    color: #64748b;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Sections */
.section {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title {
    font-size: 24px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.section-link {
    color: #16a34a;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.section-link:hover {
    color: #15803d;
}

/* Players grid */
.players-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.player-link {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-decoration: none;
    color: #1e293b;
    text-align: center;
    transition: all 0.2s;
    font-weight: 500;
    display: block;
}

.player-link:hover {
    background: #16a34a;
    color: white;
    text-decoration: none;
    border-color: #16a34a;
    transform: translateY(-1px);
}

.player-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s;
    cursor: pointer;
}

.player-name {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 15px;
}

.player-deals {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.player-card:hover .player-deals,
.player-link:hover .player-deals {
    color: rgba(255, 255, 255, 0.9);
}

.deals-count {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    display: inline-block;
    padding: 4px 8px;
    background: #f1f5f9;
}

.player-controls {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Align filter selects with search input styling */
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 160px; /* Consistent dropdown width */
}


.filter-form {
    border-top: 1px solid #f1f5f9;
    padding-top: 20px;
}

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

.filter-group label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    min-width: 80px; /* Consistent label width */
}

/* Horizontal Filter Layout */
.filter-row {
    display: flex !important;
    align-items: center !important;
    gap: 24px !important;
    flex-wrap: wrap !important;
    padding-top: 16px;
    border-top: 1px solid #f1f5f9;
}

.filter-item {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.filter-item label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
}

.filter-item select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    min-width: 140px;
}

.filter-item select:focus {
    outline: none;
    border-color: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.1);
}

.clear-filters-btn {
    color: #dc2626;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border: 1px solid #dc2626;
    border-radius: 6px;
    transition: all 0.2s;
    margin-left: auto; /* Push to the right */
}

.clear-filters-btn:hover {
    background: #fef2f2;
    text-decoration: none;
}

.clear-btn {
    color: #dc2626;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    transition: background 0.2s;
    border: 1px solid #dc2626;
}

.clear-btn:hover {
    background: #fef2f2;
    text-decoration: none;
}

.results-info {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
}

/* Deal cards */
.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

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

.deal-card-improved {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.deal-card-improved:hover {
    border-color: #16a34a;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.1);
    transform: translateY(-2px);
    z-index: 2;
}

.deal-image-container-fixed {
    width: 100%;
    height: 220px;
    position: relative;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #f1f5f9;
}

.deal-image-full-card {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 8px;
    transition: transform 0.3s ease;
}

.deal-card-improved:hover .deal-image-full-card {
    transform: scale(1.02);
}

.deal-content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.deal-quality {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.deal-excellent {
    background: rgba(220, 252, 231, 0.95);
    color: #15803d;
    border: 1px solid rgba(21, 128, 61, 0.2);
}

.deal-good {
    background: rgba(219, 234, 254, 0.95);
    color: #1d4ed8;
    border: 1px solid rgba(29, 78, 216, 0.2);
}

.deal-fair {
    background: rgba(254, 243, 199, 0.95);
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.deal-poor {
    background: rgba(254, 226, 226, 0.95);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.deal-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1e293b;
    line-height: 1.3;
    min-height: 36px;
    cursor: help;
}

.price-section-clear {
    margin-bottom: 12px;
    flex: 1;
}

.current-price-green {
    font-size: 22px;
    font-weight: 700;
    color: #15803d;
    margin-bottom: 6px;
    line-height: 1;
}

.current-price-red {
    font-size: 22px;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 6px;
    line-height: 1;
}

.savings-badge-animated {
    display: inline-block;
    background: linear-gradient(135deg, #15803d, #16a34a);
    color: white;
    padding: 10px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: help;
    animation: pulse-green 2s infinite;
    box-shadow: 0 2px 4px rgba(21, 128, 61, 0.2);
}

.savings-negative {
    background: red;
}

@keyframes pulse-green {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.9; 
        transform: scale(1.02);
    }
}

.deal-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.seller-info {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.deal-link {
    background: #16a34a;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.deal-link:hover {
    background: #15803d;
    text-decoration: none;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.3);
}

/* Page headers */
.page-header {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.page-subtitle {
    color: #64748b;
    font-size: 18px;
    margin-bottom: 20px;
}

/* Filter tabs */
.filter-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    border: 2px solid #e2e8f0;
    color: #64748b;
}

.filter-tab.active {
    background: #16a34a;
    color: white;
    border-color: #16a34a;
}

.filter-tab:hover {
    border-color: #16a34a;
    color: #16a34a;
}

.filter-tab.active:hover {
    color: white;
}

/* Player Info Components */
.player-info-compact {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.player-info-compact strong {
    font-size: 16px;
}

.player-info-compact small {
    opacity: 0.9;
    font-size: 12px;
}

/* Price Guide Section */
.price-guide-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.price-guide-section h3 {
    color: #856404;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
}

.grade-prices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 10px;
}

.grade-item {
    background: white;
    padding: 12px 8px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #dee2e6;
    transition: all 0.2s;
}

.grade-popular {
    background: #e8f5e8;
    padding: 12px 8px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid #28a745;
    transform: scale(1.02);
}

.grade-item.has-data {
    border-color: #007bff;
    background: #f8f9ff;
}

.grade-label {
    font-weight: 600;
    color: #495057;
    font-size: 12px;
    margin-bottom: 4px;
}

.grade-price {
    color: #28a745;
    font-weight: bold;
    font-size: 14px;
}

/* Variations Section */
.variations-section {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.variations-section h3 {
    color: #495057;
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
}

.variations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.variation-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.variation-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.variation-card h4 {
    margin: 0 0 8px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.rarity-badge {
    background: #007bff;
    color: white;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.variation-description {
    color: #6c757d;
    font-size: 12px;
    margin-bottom: 6px;
    line-height: 1.3;
}

.premium-info {
    color: #28a745;
    font-size: 11px;
    font-weight: 600;
}

/* Utility Classes */
.back-link {
    color: #16a34a;
    text-decoration: none;
    margin-bottom: 20px;
    display: inline-block;
    font-weight: 500;
}

.back-link:hover {
    color: #15803d;
}

.placeholder-card {
    width: 140px;
    height: 180px;
    background: linear-gradient(145deg, #8b5a2b 0%, #d4ac6a 50%, #8b5a2b 100%);
    border-radius: 8px;
    border: 2px solid #6b4423;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
    color: white;
    text-align: center;
    font-family: serif;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.card-text {
    font-size: 14px;
    font-weight: bold;
    background: rgba(255,255,255,0.9);
    color: #8b5a2b;
    padding: 4px 6px;
    border-radius: 3px;
}

.card-player {
    font-size: 10px;
    opacity: 0.9;
}

/* Footer and About */
.about-hero { 
    padding: 48px 0 24px; 
    border-bottom: 1px solid var(--border, #e8e8e8); 
}

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

.section-muted { 
    background: #fafafa; 
    border-top: 1px solid #eee; 
    border-bottom: 1px solid #eee; 
}

.value-pills { 
    display: flex; 
    gap: 8px; 
    flex-wrap: wrap; 
    padding: 0; 
    margin: 12px 0 0; 
    list-style: none; 
}

.value-pills li { 
    background: #f4f6f8; 
    border: 1px solid #e5e8eb; 
    border-radius: 999px; 
    padding: 6px 12px; 
    font-size: .92rem; 
}

.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); 
    gap: 16px; 
}

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

.card-step { 
    border: 1px solid #e5e8eb; 
    border-radius: 10px; 
    padding: 16px; 
    background: #fff; 
}

.well { 
    background: #fffceb; 
    border: 1px solid #ffe08a; 
    border-radius: 10px; 
    padding: 16px; 
}

.ratings-table-wrap { 
    overflow-x: auto; 
    margin-top: 8px; 
}

.ratings-table { 
    width: 100%; 
    border-collapse: collapse; 
    font-size: .95rem; 
}

.ratings-table th, .ratings-table td { 
    border: 1px solid #e5e8eb; 
    padding: 10px 12px; 
    text-align: left; 
}

.ratings-table thead th { 
    background: #f7f9fb; 
}

.grade-excellent { background: #eef9f1; }
.grade-good { background: #f0f7ff; }
.grade-fair { background: #fff7ec; }
.grade-poor { background: #fff0f0; }

.footnote, .muted { 
    color: #69737d; 
    font-size: .9rem; 
}

.checklist { padding-left: 18px; }
.bulleted { padding-left: 18px; }

.faq { 
    border: 1px solid #e5e8eb; 
    border-radius: 10px; 
    padding: 12px 14px; 
    background: #fff; 
    margin-bottom: 10px; 
}

.faq > summary { 
    cursor: pointer; 
    font-weight: 600; 
}

.faq[open] { 
    background: #f9fbfd; 
}

.align-center { text-align: center; }

.btn { 
    display: inline-block; 
    padding: 10px 14px; 
    border-radius: 8px; 
    text-decoration: none; 
    border: 1px solid transparent; 
}

.btn-primary { background: #1b72e8; color: #fff; }
.btn-secondary { background: #fff; border-color: #cfd6df; color: #1b2a41; }
.btn-light { background: #fff; border-color: #f0c040; color: #6a4a00; }
.btn:hover { filter: brightness(0.98); }

.site-footer { 
    margin-top: 40px; 
    border-top: 1px solid var(--border, #e5e8eb); 
    background: #fafafa; 
    color: #1b2a41; 
}

.footer-inner { 
    display: grid; 
    grid-template-columns: 1.2fr 2fr; 
    gap: 24px; 
    padding: 28px 16px; 
}

.footer-brand .brand { 
    font-weight: 700; 
    font-size: 1.15rem; 
    text-decoration: none; 
    color: inherit; 
}

.footer-brand .tagline { 
    margin-top: 6px; 
    color: #5d6b7a; 
}

.footer-nav { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); 
    gap: 16px; 
}

.footer-nav h4 { 
    margin: 0 0 8px; 
    font-size: .95rem; 
    color: #334155; 
}

.footer-nav ul { 
    margin: 0; 
    padding: 0; 
    list-style: none; 
}

.footer-nav a { 
    display: inline-block; 
    padding: 4px 0; 
    color: #334155; 
    text-decoration: none; 
}

.footer-nav a:hover { 
    text-decoration: underline; 
}

.footer-bottom { 
    border-top: 1px solid #e5e8eb; 
    background: #f6f8fa; 
}

.footer-bottom .container { 
    padding: 14px 16px; 
    display: grid; 
    gap: 8px; 
}

.footer-bottom .disclaimer { 
    margin: 0; 
    color: #6b7280; 
    font-size: .9rem; 
}

.footer-bottom .copyright { 
    color: #6b7280; 
    font-size: .9rem; 
}

.affiliate-disclosure {
    font-size: 0.8rem;
    color: #777;
    font-style: italic;
    margin-top: 10px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Prose Content */
.prose {
    max-width: 1200px;
    line-height: 1.7;
    display: flow-root;
}

.prose > * { margin: 0; }
.prose > * + * { margin-top: 1rem; }
.prose h1, .prose h2, .prose h3 { line-height: 1.25; }
.prose h2 { margin-top: 2rem; margin-bottom: .25rem; }
.prose h3 { margin-top: 1.25rem; margin-bottom: .25rem; }

.prose .card {
    background: #fff;
    border: 1px solid #e5e8eb;
    border-radius: 10px;
    padding: 16px;
    margin: 1rem 0;
}

.prose .card > * + * { margin-top: .5rem; }
.prose .muted { color: #6b7280; }
.prose .small { font-size: .9rem; }

/* Mobile Responsiveness - Consolidated */
@media (max-width: 768px) {
    .container { 
        padding: 16px; 
    }
    
    .hero { 
        padding: 32px 24px; 
    }
    
    .hero h1 { 
        font-size: 32px; 
    }
    
    .stats-grid { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .featured-grid { 
        grid-template-columns: 1fr; 
    }
    
    /* Deal cards mobile */
    .deal-image-container-fixed {
        height: 200px;
    }
    
    .deal-title {
        font-size: 13px;
        min-height: 32px;
    }
    
    .current-price-green {
        font-size: 18px;
    }
    
    .deal-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .deal-link {
        text-align: center;
        width: 100%;
        padding: 14px 20px;
        font-size: 16px;
        min-height: 48px;
    }
    
    /* Player page mobile */
    .player-controls { 
        padding: 20px; 
    }
    
    .live-search-input { 
        font-size: 16px; 
        padding: 14px 16px; 
    }
    
     .filter-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    
    .filter-item {
        justify-content: space-between !important;
    }
    
    .filter-item select {
        flex: 1;
        max-width: 200px;
    }
    
    /* Tooltip mobile */
    .tooltip-trigger { 
        min-width: 44px; 
        min-height: 44px; 
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .tooltip { 
        max-width: calc(100vw - 40px); 
        font-size: 13px; 
        padding: 12px 16px;
    }
    
    /* Grade prices mobile */
    .grade-prices {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .variations-grid {
        grid-template-columns: 1fr;
    }
    
    .player-info-compact {
        padding: 12px 16px;
    }
    
    .price-guide-section, .variations-section {
        padding: 16px;
    }
    
    /* Footer mobile */
    .footer-inner { 
        grid-template-columns: 1fr; 
    }
    
    /* Prose mobile */
    .prose > * + * { 
        margin-top: 1.1rem; 
    }
    .prose h2 { 
        margin-top: 2.2rem; 
    }
}

@media (max-width: 780px) {
    .footer-inner { 
        grid-template-columns: 1fr; 
    }
}

@media (min-width: 900px) {
    .prose > * + * { 
        margin-top: 1.1rem; 
    }
    .prose h2 { 
        margin-top: 2.2rem; 
    }
}

.player-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.player-card-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Update the hover effect to work on the link instead of the card */
.player-card-link:hover .player-card {
    background: #16a34a;
    color: white;
    border-color: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2);
}

.player-card-link:hover .player-deals {
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile: Stack filters when screen is narrow */
@media (max-width: 768px) {

    
    .filter-group {
        justify-content: space-between;
    }
    
    .filter-group select {
        flex: 1;
        max-width: 200px;
    }
    
    .clear-filters-btn {
        margin-left: 0;
        text-align: center;
    }
}