/**
 * Universal Items Component Styles
 * Provides consistent styling for inventory item displays across all pages
 */

/* Component Container */
.wowplatter-items-component {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

/* Main content wrapper - filter is now overlay on all screen sizes */
.main-content-with-filter {
    margin-left: 0;
    transition: margin-left 0.3s ease-in-out;
    min-height: 100vh;
    padding: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .main-content-with-filter {
        padding: 10px;
    }
}

/* Filter styles removed - now handled by standalone filter.css */

/* Vinyl Card Styles - Perfect Card View */
.vinyl-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    /* 6 cards per row on maximum browser width */
    gap: 20px;
    margin-top: 20px;
    width: 100%;
    max-width: 100%;
}

.vinyl-card {
    background: #ffffff;
    /* Pure white background */
    border-radius: 8px;
    /* Less rounded for cleaner look */
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    /* Stronger shadow for better definition */
    border: 1px solid #dee2e6;
    /* Add border for better contrast */
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 580px;
    /* Increased minimum height to fit all content rows */
    position: relative;
}

.vinyl-card:hover {
    transform: translateY(-2px);
    /* Subtle lift */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    /* Enhanced shadow on hover */
    border-color: #007cba;
    /* Brand color border on hover */
}

.vinyl-cover {
    position: relative;
    width: 100%;
    aspect-ratio: 1 !important;
    height: auto !important;
    overflow: hidden;
}

.vinyl-cover img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.3s ease;
}

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

/* NO OBI Overlay - Circle Shape */
.no-obi-overlay {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 44px;
    height: 44px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.no-obi-text {
    font-weight: bold;
    font-size: 10px;
    line-height: 1;
}

.no-image-card {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    /* Light grey background */
    color: #6c757d;
    /* Higher contrast grey */
    font-size: 48px;
    font-weight: 300;
    border: 2px dashed #dee2e6;
    /* Dashed border for no-image state */
}

/* Remove price badge from cover since we now show it in vinyl-essential */
.price-badge {
    display: none;
}

/* Promotion Bubble - top right corner of cover */
.promo-bubble {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #8b5cf6;
    /* purple default */
    color: #fff;
    padding: 6px 10px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 10;
    pointer-events: none;
}

.vinyl-info {
    padding: 15px;
    flex: 1 1 auto;
    /* Allow proper flex behavior */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    /* Prevent content overflow */
}

/* Primary Content - Always Visible */
.vinyl-primary {
    z-index: 2;
    background: white;
    transition: all 0.3s ease;
}

.vinyl-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000;
    /* Maximum contrast for titles */
    margin: 0 0 5px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vinyl-title a {
    color: #000000;
    /* High contrast for links */
    text-decoration: none;
}

.vinyl-title a:hover {
    color: #007cba;
    /* Brand color on hover */
    text-decoration: underline;
}

.vinyl-artist {
    color: #007cba;
    /* Brand color for artist names */
    font-weight: 600;
    margin: 0 0 8px 0;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vinyl-artist a {
    color: #007cba;
    /* Brand color for artist links */
    text-decoration: none;
}

.vinyl-artist a:hover {
    color: #005a87;
    /* Darker shade on hover */
    text-decoration: underline;
}

/* Essential Info (Condition & Price) */
.vinyl-essential {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    gap: 8px;
    flex-wrap: wrap;
}

.condition-tag {
    background: #d4edda;
    /* Slightly darker green background */
    color: #155724;
    /* Darker green for better contrast */
    border: 1px solid #c3e6cb;
    padding: 3px 8px;
    border-radius: 4px;
    /* Less rounded */
    font-size: 0.75rem;
    font-weight: 600;
    flex-grow: 1;
    text-align: center;
}

.price-tag {
    background: #e2e3f1;
    /* Lighter purple background */
    color: #4a148c;
    /* Darker purple for better contrast */
    border: 1px solid #d1d2e8;
    padding: 3px 8px;
    border-radius: 4px;
    /* Less rounded */
    font-size: 0.75rem;
    font-weight: 700;
    flex-grow: 0;
    min-width: 50px;
    text-align: center;
}

/* Secondary Content - Hover to Reveal */
.vinyl-secondary {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    /* Keep high opacity for readability */
    border: 1px solid #dee2e6;
    /* Add border for definition */
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 1;
}

.vinyl-card:hover .vinyl-secondary {
    opacity: 1;
    visibility: visible;
}

.vinyl-meta {
    font-size: 0.8rem;
    color: #495057;
    /* Higher contrast grey for metadata */
}

.meta-row {
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
}

.meta-label {
    color: #333;
    font-weight: 600;
    min-width: 60px;
    margin-right: 4px;
}

.meta-value {
    flex: 1;
}

.vinyl-meta a {
    color: #667eea;
    text-decoration: none;
}

.vinyl-meta a:hover {
    color: #764ba2;
    text-decoration: underline;
}

.wantlist-btn {
    background: #6f42c1;
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: auto;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(111, 66, 193, 0.2);
    min-width: fit-content;
    max-width: fit-content;
}

.wantlist-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
    background: #5a2d91;
}

.wantlist-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(111, 66, 193, 0.3);
}

.wantlist-btn i {
    font-size: 12px;
}

/* Compact Wantlist Button for Row View */
.btn-add-to-wantlist.btn-compact {
    background: #6f42c1;
    border: none;
    color: white;
    padding: 6px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    box-shadow: 0 1px 3px rgba(111, 66, 193, 0.3);
}

.btn-add-to-wantlist.btn-compact:hover {
    background: #5a2d91;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(111, 66, 193, 0.4);
}

.btn-add-to-wantlist.btn-compact:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(111, 66, 193, 0.3);
}

.btn-add-to-wantlist.btn-compact i {
    font-size: 10px;
    margin: 0;
}

/* Success state for compact wantlist button */
.btn-add-to-wantlist.btn-compact.btn-success {
    background: #28a745;
    box-shadow: 0 1px 3px rgba(40, 167, 69, 0.3);
}

.btn-add-to-wantlist.btn-compact.btn-success:hover {
    background: #218838;
    box-shadow: 0 2px 6px rgba(40, 167, 69, 0.4);
}

/* New Card Layout Styles */
.vinyl-title-artist {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.vinyl-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
    line-height: 1.3;
}

.vinyl-title a {
    color: #000000;
    text-decoration: none;
}

.vinyl-title a:hover {
    color: #007cba;
    text-decoration: underline;
}

.title-separator {
    color: #666;
    margin: 0 4px;
    font-weight: normal;
}

.vinyl-artist-inline {
    color: #007cba;
    font-weight: 600;
    font-size: 0.95rem;
}

.vinyl-artist-inline a {
    color: #007cba;
    text-decoration: none;
}

.vinyl-artist-inline a:hover {
    color: #005a87;
    text-decoration: underline;
}

.vinyl-genre {
    margin-bottom: 4px;
    font-size: 0.85rem;
    line-height: 1.2;
}

.vinyl-genre a {
    color: #8e44ad;
    text-decoration: none;
    font-weight: 500;
}

.vinyl-genre a:hover {
    color: #6c3483;
    text-decoration: underline;
}

.vinyl-style {
    margin-bottom: 4px;
    font-size: 0.85rem;
    line-height: 1.2;
}

.vinyl-style a {
    color: #8e44ad;
    text-decoration: none;
    font-weight: 500;
}

.vinyl-style a:hover {
    color: #6c3483;
    text-decoration: underline;
}

.vinyl-year-label {
    display: flex;
    align-items: baseline;
    margin-bottom: 4px;
    font-size: 0.85rem;
    line-height: 1.2;
}

.vinyl-year {
    color: #2c3e50;
    font-weight: 600;
}

.year-label-separator {
    color: #666;
    margin: 0 4px;
}

.vinyl-labels a {
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
}

.vinyl-labels a:hover {
    color: #c0392b;
    text-decoration: underline;
}

.vinyl-condition {
    margin-bottom: 4px;
    font-size: 0.8rem;
    color: #27ae60;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    line-height: 1.2;
}

.vinyl-format {
    font-size: 0.8rem;
    color: #3498db;
    font-weight: 600;
}

/* Combined condition and format row */
.vinyl-condition-format {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 4px;
    font-size: 0.8rem;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.vinyl-condition-format .vinyl-condition {
    margin-bottom: 0;
}

.vinyl-condition-format .vinyl-format {
    margin-bottom: 0;
}

.condition-format-separator {
    color: #666;
    margin: 0 4px;
    font-weight: normal;
}

/* Enhanced Mobile Responsive Grid */
@media (max-width: 1800px) {
    .vinyl-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
    }
}

@media (max-width: 1400px) {
    .vinyl-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

@media (max-width: 1200px) {
    .vinyl-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 900px) {
    .vinyl-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    /* Ensure text doesn't get cropped on medium screens */
    .vinyl-condition,
    .vinyl-format,
    .vinyl-condition-format {
        overflow: visible;
        white-space: normal;
        word-break: break-word;
        font-size: 0.75rem;
    }

    .vinyl-info {
        overflow: visible;
    }
}

@media (max-width: 600px) {
    .vinyl-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Mobile-optimized card layout */
    .vinyl-card {
        margin-bottom: 10px;
        min-height: auto;
    }

    .vinyl-cover {
        aspect-ratio: 1 !important;
        /* Square aspect ratio for better mobile layout */
        height: auto !important;
    }

    .vinyl-info {
        padding: 12px;
        overflow: visible;
    }

    .vinyl-title {
        font-size: 1rem;
        line-height: 1.2;
    }

    .vinyl-artist {
        font-size: 0.9rem;
    }

    /* Ensure condition and format text is always visible */
    .vinyl-condition,
    .vinyl-format {
        font-size: 0.75rem;
        margin-bottom: 3px;
        overflow: visible;
        white-space: normal;
        word-break: break-word;
    }

    .vinyl-condition-format {
        font-size: 0.75rem;
        margin-bottom: 3px;
        overflow: visible;
        white-space: normal;
        word-break: break-word;
    }

    /* Improve touch targets for mobile */
    .vinyl-essential {
        gap: 6px;
    }

    .condition-tag,
    .price-tag {
        padding: 4px 10px;
        font-size: 0.8rem;
        min-height: 28px;
        /* Better touch target */
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Card view text visibility and equal-height prep */
.view-cards .vinyl-title {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
}

.view-cards .vinyl-info {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

/* Hide default page title on plugin pages */
.page .entry-title,
.page .page-title,
.page h1.wp-block-post-title {
    display: none !important;
}

/* Mobile mode text visibility and equal-height prep */
.mode-mobile .vinyl-title {
    display: block !important;
    -webkit-line-clamp: unset !important;
    line-clamp: unset !important;
    -webkit-box-orient: unset !important;
    overflow: visible !important;
}

.mode-mobile .vinyl-info {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
}

/* Info Panel Styles */
.wowplatter-info-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 12px;
    margin: 0 -20px 30px -20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: calc(100% + 40px);
    box-sizing: border-box;
}

/* Artist-specific styles moved to artist.css for better separation of concerns */

/* Label Info Panel Styles */
.label-info-panel .label-header {
    text-align: center;
    margin-bottom: 30px;
}

.label-info-panel .label-header h1 {
    font-size: 3em;
    margin: 0 0 10px 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.label-info-panel .label-meta {
    font-size: 1.2em;
    opacity: 0.9;
    margin: 0 0 20px 0;
    font-style: italic;
}

.label-info-panel .label-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.6;
    opacity: 0.95;
    text-align: center;
}

.label-info-panel .label-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.label-info-panel .label-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.label-meta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.meta-item i {
    font-size: 1.1em;
}

/* Shop filter sections removed - now handled by standalone filter.css */

/* Enhanced Sort Controls */
.sort-controls {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.sort-controls select {
    border: 1px solid #dee2e6;
    border-radius: 18px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    height: 36px;
    min-width: 120px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sort-controls select:focus {
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
    outline: none;
}

.search-btn {
    background: #007cba;
    border: none;
    border-radius: 18px;
    color: white;
    padding: 8px 20px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.2);
}

.search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 124, 186, 0.3);
    background: #005a87;
}

.search-btn:before {
    content: '🔍';
    font-size: 11px;
}

/* Active filters and entity filter buttons removed - now handled by standalone filter.css */

/* View Controls */
.view-controls-section,
.items-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

/* Mobile View Controls */
@media (max-width: 768px) {

    .view-controls-section,
    .items-controls {
        flex-direction: column;
        gap: 15px;
        padding: 12px;
    }

    .view-toggle {
        width: 100%;
        justify-content: center;
    }

    .sort-controls {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .sort-controls select {
        min-width: 140px;
        font-size: 14px;
    }

    .search-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}

.view-toggle {
    display: flex;
    gap: 8px;
}

.view-toggle-buttons {
    display: flex;
    gap: 8px;
}

/* Enhanced View Buttons - Tag Style with Purpose-Based Colors */
.results-container .view-btn,
.wowplatter-items-component .view-btn {
    background: #6c757d !important;
    border: none !important;
    color: white !important;
    padding: 8px 14px !important;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease !important;
    border-radius: 20px !important;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
    transform: none !important;
    white-space: nowrap;
}

/* Mobile View Button Optimizations */
@media (max-width: 768px) {

    .results-container .view-btn,
    .wowplatter-items-component .view-btn {
        padding: 10px 16px !important;
        font-size: 14px !important;
        min-height: 44px !important;
        /* Better touch target */
        border-radius: 8px !important;
        /* Less rounded for mobile */
    }

    .view-toggle-buttons {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }
}

.results-container .view-btn:hover,
.wowplatter-items-component .view-btn:hover {
    background: #5a6268 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

.results-container .view-btn.active,
.wowplatter-items-component .view-btn.active {
    background: #007cba !important;
    color: white !important;
    box-shadow: 0 3px 6px rgba(0, 124, 186, 0.3) !important;
    transform: translateY(-1px) !important;
}

.results-container .view-btn.active:hover,
.wowplatter-items-component .view-btn.active:hover {
    background: #005a87 !important;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 20px;
}

.per-page-selector select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
}

.results-info {
    font-size: 14px;
    color: #6c757d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.results-info .sort-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.results-info .sort-controls label {
    font-size: 14px;
    color: #6c757d;
    white-space: nowrap;
}

.results-info .sort-controls select {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    font-size: 14px;
    min-width: 150px;
}

/* Hide mobile filter toggle for screens 770px and wider */
@media (min-width: 770px) {
    .mobile-filter-toggle {
        display: none !important;
    }
}

/* Results Container */
.results-container,
#wowplatter-results {
    position: relative;
    width: 100% !important;
    max-width: none !important;
}

/* View Mode Display Control */
.results-container .view-cards,

.results-container .view-text,
.results-container .view-wall,
#wowplatter-results .view-cards,

#wowplatter-results .view-text,
#wowplatter-results .view-wall {
    display: none;
    width: 100%;
}

/* Show cards view by default */
.results-container .view-cards,
#wowplatter-results .view-cards {
    display: block;
}

/* View Mode Display Controls */
.results-container.mode-cards .view-cards,
#wowplatter-results.mode-cards .view-cards {
    display: block;
}


.results-container.mode-cards .view-text,
.results-container.mode-cards .view-wall,
.results-container.mode-cards .view-mobile,

#wowplatter-results.mode-cards .view-text,
#wowplatter-results.mode-cards .view-wall,
#wowplatter-results.mode-cards .view-mobile {
    display: none;
}



.results-container.mode-text .view-text,
#wowplatter-results.mode-text .view-text {
    display: block;
}

.results-container.mode-text .view-cards,

.results-container.mode-text .view-wall,
.results-container.mode-text .view-mobile,

#wowplatter-results.mode-text .view-cards,

#wowplatter-results.mode-text .view-wall,
#wowplatter-results.mode-text .view-mobile {
    display: none;
}



.results-container.mode-wall .view-wall,
#wowplatter-results.mode-wall .view-wall {
    display: block;
}

.results-container.mode-wall .view-cards,

.results-container.mode-wall .view-text,
.results-container.mode-wall .view-mobile,

#wowplatter-results.mode-wall .view-cards,

#wowplatter-results.mode-wall .view-text,
#wowplatter-results.mode-wall .view-mobile {
    display: none;
}

/* Mobile Mode Display Controls */
.results-container.mode-mobile .view-cards,
#wowplatter-results.mode-mobile .view-cards {
    display: block;
}

.results-container.mode-mobile .view-text,
.results-container.mode-mobile .view-wall,
#wowplatter-results.mode-mobile .view-text,
#wowplatter-results.mode-mobile .view-wall {
    display: none;
}

/* Ensure view controls are visible in mobile mode */
.results-container.mode-mobile .view-controls,
.results-container.mode-mobile .view-toggle,
.results-container.mode-mobile .view-toggle-buttons,
#wowplatter-results.mode-mobile .view-controls,
#wowplatter-results.mode-mobile .view-toggle,
#wowplatter-results.mode-mobile .view-toggle-buttons {
    display: flex !important;
}

/* Card View Styles - Updated to match style.css */
.vinyl-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 20px;
    padding: 0;
    width: 100% !important;
    max-width: none !important;
}

/* Alternative grid for auto-fill layout */
.vinyl-grid.auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.vinyl-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vinyl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007cba;
}

.vinyl-cover {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f8f9fa;
}

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

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

.vinyl-cover .no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #8e9aaf;
    font-weight: 300;
}

/* Enhanced Price Badge - Plain Black Text */
.price-badge {
    background: transparent;
    color: #000000;
    padding: 6px 12px;
    border-radius: 0;
    font-weight: 800;
    font-size: 16px;
    box-shadow: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s ease;
    border: none;
}

/* Price badge when positioned absolutely (for other views) */
.vinyl-cover .price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}



.price-badge:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
    color: #333333;
}

.vinyl-info {
    padding: 20px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.vinyl-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #2c3e50;
    line-height: 1.3;
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vinyl-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vinyl-title a:hover {
    color: #007cba;
}

.vinyl-artist {
    font-size: 15px;
    color: #6c757d;
    margin: 0 0 16px 0;
    font-weight: 500;
    min-height: 20px;
}

.vinyl-artist a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.vinyl-artist a:hover {
    color: #007cba;
    text-decoration: underline;
}

.vinyl-details {
    margin-bottom: 16px;
}

.vinyl-meta {
    font-size: 13px;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 12px;
}

.vinyl-meta div {
    margin-bottom: 4px;
}

.vinyl-meta strong {
    color: #343a40;
    font-weight: 600;
    min-width: 60px;
    display: inline-block;
}

.vinyl-meta a {
    color: #007cba;
    text-decoration: none;
    transition: all 0.2s ease;
}

.vinyl-meta a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* Enhanced Condition Badge - Green for Quality/Condition */
.condition-badge {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 10px;
    border: none;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
    transition: all 0.3s ease;
}

.condition-badge:before {
    content: '🎧';
    font-size: 10px;
}

.condition-badge:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(40, 167, 69, 0.3);
}

.card-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Card Bottom Actions Section */
.card-bottom-actions {
    /* Using flexbox - card-bottom-actions is a sibling to vinyl-info */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #f0f0f0;
    gap: 10px;
    margin-top: auto;
    /* Push to bottom as last flex child */
    flex-shrink: 0;
    /* Never shrink - maintain full height */
    min-height: 56px;
    /* Ensure consistent height */
}

/* Enhanced Button System - Tag Style with Purpose-Based Colors */
.wantlist-btn {
    padding: 4px 8px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 11px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    background: #6f42c1;
    color: white;
    box-shadow: 0 1px 3px rgba(111, 66, 193, 0.2);
    white-space: nowrap;
    width: auto;
    justify-content: center;
    min-width: fit-content;
    max-width: fit-content;
}

.wantlist-btn:hover {
    background: #5a2d91;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(111, 66, 193, 0.3);
}

.wantlist-btn i {
    font-size: 10px;
    margin: 0;
}

/* Multiple SKUs Container */
.multiple-skus-container {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

/* Additional SKU buttons */
.wantlist-btn.additional-sku {
    background: #8e44ad;
    font-size: 10px;
    padding: 6px 8px;
    border-radius: 10px;
    min-width: 50px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.wantlist-btn.additional-sku:hover {
    background: #7d3c98;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(142, 68, 173, 0.3);
}

/* Primary SKU button (first one) */
.wantlist-btn.primary-sku {
    background: #6f42c1;
    padding: 6px 8px;
    min-width: 50px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.wantlist-btn.primary-sku:hover {
    background: #5a2d91;
}

/* SKU price display within heart buttons */
.sku-price {
    font-size: 9px;
    font-weight: 600;
    color: white !important;
    line-height: 1;
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 10;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Auto-fit font sizes for card view based on price length */
.sku-price:not([data-length]) {
    font-size: 9px;
}

/* 1-2 digits: $1, $99 */
.sku-price[data-length="1"],
.sku-price[data-length="2"] {
    font-size: 10px;
}

/* 3 digits: $100-$999 */
.sku-price[data-length="3"] {
    font-size: 9px;
}

/* 4+ digits: $1000+ */
.sku-price[data-length="4"],
.sku-price[data-length="5"] {
    font-size: 8px;
}

/* Multiple SKUs for Text View */
.multiple-skus-text-container {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-add-to-wantlist.additional-sku {
    background: #8e44ad;
    font-size: 9px;
    padding: 4px 6px;
    border-radius: 8px;
    min-width: 45px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.btn-add-to-wantlist.additional-sku:hover {
    background: #7d3c98;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(142, 68, 173, 0.3);
}

.btn-add-to-wantlist.primary-sku {
    background: #6f42c1;
    padding: 4px 6px;
    min-width: 45px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.btn-add-to-wantlist.primary-sku:hover {
    background: #5a2d91;
}

.sku-price-text {
    font-size: 8px;
    font-weight: 600;
    color: white;
    line-height: 1;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Auto-fit font sizes based on price length */
.sku-price-text:not([data-length]) {
    font-size: 8px;
}

/* 1-2 digits: $1, $99 */
.sku-price-text[data-length="1"],
.sku-price-text[data-length="2"] {
    font-size: 9px;
}

/* 3 digits: $100-$999 */
.sku-price-text[data-length="3"] {
    font-size: 8px;
}

/* 4+ digits: $1000+ */
.sku-price-text[data-length="4"],
.sku-price-text[data-length="5"] {
    font-size: 7px;
}

/* Responsive adjustments for multiple SKUs */
@media (max-width: 768px) {
    .multiple-skus-container {
        gap: 4px;
    }

    .wantlist-btn.additional-sku,
    .wantlist-btn.primary-sku {
        font-size: 9px;
        padding: 4px 6px;
        min-width: 42px;
        height: 28px;
    }

    .sku-price {
        font-size: 9px;
    }

    .multiple-skus-text-container {
        gap: 3px;
    }

    .btn-add-to-wantlist.additional-sku,
    .btn-add-to-wantlist.primary-sku {
        font-size: 8px;
        padding: 3px 5px;
        min-width: 38px;
        height: 24px;
    }

    .sku-price-text {
        font-size: 8px;
    }
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 18px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: #007cba;
    color: white;
    flex: 1;
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 124, 186, 0.3);
    background: #005a87;
}

/* Format Badge - Blue for Format/Information */
.format-badge {
    background: #17a2b8;
    color: white;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 2px;
    border: none;
    box-shadow: 0 1px 3px rgba(23, 162, 184, 0.2);
    transition: all 0.3s ease;
}

.format-badge:before {
    content: '💿';
    font-size: 9px;
}

.format-badge:hover {
    background: #138496;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(23, 162, 184, 0.3);
}

/* Metadata Badge - Grey for Secondary Information */
.meta-badge {
    background: #6c757d;
    color: white;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin: 2px;
    border: none;
    box-shadow: 0 1px 3px rgba(108, 117, 125, 0.2);
    transition: all 0.3s ease;
}

.meta-badge:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.3);
}

/* Meta Badges Container */
.meta-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

/* Row View Styles - Enhanced for UI Consistency */
.vinyl-table-container {
    overflow-x: auto;
    width: 100%;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.table-container {
    overflow-x: auto;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.vinyl-table {
    width: 100%;
    min-width: 1000px;
    /* Minimum width to ensure proper layout */
    border-collapse: collapse;
    margin: 0;
}

.vinyl-table th {
    background: #f8f9fa;
    color: #212529;
    font-weight: 700;
    padding: 18px 16px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-size: 14px;
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    border-top: 1px solid #dee2e6;
}

/* Sortable table headers */
.vinyl-table th.header-sortable {
    cursor: pointer;
    user-select: none;
    padding-right: 25px;
}

.vinyl-table th.header-sortable:hover {
    background: #e9ecef;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Non-sortable headers hover effect */
.vinyl-table th:not(.header-sortable):hover {
    background: #e9ecef;
}

/* Sort indicators */
.sort-indicator {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    opacity: 0.7;
}

.vinyl-table th.header-sortable.sort-asc .sort-indicator::after {
    content: '▲';
    opacity: 1;
}

.vinyl-table th.header-sortable.sort-desc .sort-indicator::after {
    content: '▼';
    opacity: 1;
}

.vinyl-table th.header-sortable:not(.sort-asc):not(.sort-desc) .sort-indicator::after {
    content: '⇅';
    opacity: 0.5;
}

/* Enhanced table rows */
.vinyl-table td {
    padding: 15px 12px;
    border-bottom: 1px solid #000000;
    font-size: 14px;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.vinyl-table tr {
    transition: all 0.3s ease;
}

.vinyl-table tr:hover {
    background: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Cover image styling */
.vinyl-table .cover-cell {
    width: 60px;
    padding: 10px;
}

.vinyl-table .cover-image {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.vinyl-table tr:hover .cover-image {
    transform: scale(1.05);
}

.vinyl-table .no-cover {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: #adb5bd;
    font-size: 12px;
    text-align: center;
}

/* Primary content cells - Title and Artist */
.vinyl-table .title-cell {
    font-weight: 600;
    min-width: 200px;
}

.vinyl-table .title-cell a {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.vinyl-table .title-cell a:hover {
    color: #667eea;
    text-decoration: underline;
}

.vinyl-table .artist-cell {
    font-weight: 500;
    min-width: 150px;
}

.vinyl-table .artist-cell a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.vinyl-table .artist-cell a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Secondary content cells - Metadata */
.vinyl-table .genre-cell,
.vinyl-table .style-cell,
.vinyl-table .label-cell,
.vinyl-table .year-cell,
.vinyl-table .country-cell,
.vinyl-table .format-cell {
    color: #666;
    font-size: 13px;
}

.vinyl-table .genre-cell a,
.vinyl-table .style-cell a,
.vinyl-table .label-cell a,
.vinyl-table .year-cell a,
.vinyl-table .country-cell a {
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
}

.vinyl-table .genre-cell a:hover,
.vinyl-table .style-cell a:hover,
.vinyl-table .label-cell a:hover,
.vinyl-table .year-cell a:hover,
.vinyl-table .country-cell a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Essential info cells - Condition and Price */
.vinyl-table .condition-cell {
    background: #e9f7ef;
    color: #27ae60;
    font-weight: 600;
    font-size: 12px;
    text-align: center;
    border-radius: 4px;
    margin: 2px;
}

.vinyl-table .price-cell {
    font-weight: 700;
    color: #8e44ad;
    background: #f0e6fa;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
}

.vinyl-table .comment-cell {
    color: #999;
    font-style: italic;
    font-size: 12px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Actions cell */
.vinyl-table .actions-cell {
    width: 60px;
    text-align: center;
}

.vinyl-table .btn-add-to-wantlist {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.vinyl-table .btn-add-to-wantlist:hover {
    background: #218838;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

/* Text view specific styles for compact layout */
.view-text .wantlist-btn {
    padding: 3px 6px;
    font-size: 0.65rem;
    min-width: auto;
}

.view-text .wantlist-btn i {
    font-size: 0.6rem;
}

/* Text View Styles - Compact table format for purists */
.vinyl-text-table-container {
    overflow-x: auto;
    width: 100%;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.vinyl-text-table {
    width: 100%;
    min-width: 1200px;
    /* Minimum width to ensure all columns fit */
    border-collapse: collapse;
    margin: 0;
    font-size: 12px;
    /* Smaller font size for better fit */
    line-height: 1.3;
    white-space: nowrap;
}



.vinyl-text-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
    padding: 8px 6px;
    text-align: left;
    border-bottom: 2px solid #dee2e6;
    font-size: 11px;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vinyl-text-table th:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
}

.vinyl-text-table th.header-sortable {
    user-select: none;
}

.vinyl-text-table th .sort-indicator {
    margin-left: 3px;
    opacity: 0.7;
    font-size: 9px;
}

.vinyl-text-table th.sorted-asc .sort-indicator:after {
    content: '▲';
}

.vinyl-text-table th.sorted-desc .sort-indicator:after {
    content: '▼';
}

.vinyl-text-table td {
    padding: 6px 4px;
    border-bottom: 1px solid #000000;
    font-size: 12px;
    vertical-align: top;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 0;
    /* Force text truncation */
}

/* Text view column widths for better layout */
.vinyl-text-table th:nth-child(4),
/* Title */
.vinyl-text-table td:nth-child(4) {
    width: 25%;
    min-width: 200px;
}

.vinyl-text-table th:nth-child(5),
/* Artist */
.vinyl-text-table td:nth-child(5) {
    width: 20%;
    min-width: 150px;
}

.vinyl-text-table th:nth-child(6),
/* Genre */
.vinyl-text-table td:nth-child(6) {
    width: 10%;
    min-width: 80px;
}

.vinyl-text-table th:nth-child(7),
/* Style */
.vinyl-text-table td:nth-child(7) {
    width: 10%;
    min-width: 80px;
}

.vinyl-text-table th:nth-child(8),
/* Label */
.vinyl-text-table td:nth-child(8) {
    width: 12%;
    min-width: 100px;
}

.vinyl-text-table th:nth-child(9),
/* Year */
.vinyl-text-table td:nth-child(9) {
    width: 6%;
    min-width: 50px;
}

.vinyl-text-table th:nth-child(10),
/* Country */
.vinyl-text-table td:nth-child(10) {
    width: 8%;
    min-width: 60px;
}

.vinyl-text-table th:nth-child(11),
/* Format */
.vinyl-text-table td:nth-child(11) {
    width: 8%;
    min-width: 60px;
}

.vinyl-text-table th:nth-child(12),
/* Condition */
.vinyl-text-table td:nth-child(12) {
    width: 6%;
    min-width: 50px;
}

.vinyl-text-table th:nth-child(13),
/* Comment */
.vinyl-text-table td:nth-child(13) {
    width: 8%;
    min-width: 60px;
}

.vinyl-text-table th:nth-child(1),
/* Want */
.vinyl-text-table td:nth-child(1) {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    text-align: center;
    padding: 8px 4px;
}

.vinyl-text-table th:nth-child(2),
/* Price */
.vinyl-text-table td:nth-child(2) {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    text-align: center;
    padding: 8px 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.vinyl-text-table th:nth-child(3),
/* Thumbnail */
.vinyl-text-table td:nth-child(3) {
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    text-align: center;
    padding: 4px 2px;
}

.vinyl-text-table .text-cover-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.vinyl-text-table .text-cover-image:hover {
    transform: scale(1.1);
}

.vinyl-text-table .text-no-cover {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    color: #adb5bd;
    font-size: 8px;
    text-align: center;
    line-height: 1;
}

.vinyl-text-table tr:hover {
    background: #f8f9fa;
}

/* Text view specific cell styles */
.vinyl-text-table .text-title-cell a,
.vinyl-text-table .title-link {
    color: #212529;
    text-decoration: none;
    font-weight: 500;
}

.vinyl-text-table .text-title-cell a:hover,
.vinyl-text-table .title-link:hover {
    color: #007cba;
    text-decoration: underline;
}

.vinyl-text-table .text-artist-cell a,
.vinyl-text-table .text-genre-cell a,
.vinyl-text-table .text-style-cell a,
.vinyl-text-table .text-label-cell a,
.vinyl-text-table .text-year-cell a,
.vinyl-text-table .text-country-cell a,
.vinyl-text-table .artist-link,
.vinyl-text-table .genre-link,
.vinyl-text-table .style-link,
.vinyl-text-table .label-link,
.vinyl-text-table .year-link,
.vinyl-text-table .country-link {
    color: #007cba;
    text-decoration: none;
}

.vinyl-text-table .text-artist-cell a:hover,
.vinyl-text-table .text-genre-cell a:hover,
.vinyl-text-table .text-style-cell a:hover,
.vinyl-text-table .text-label-cell a:hover,
.vinyl-text-table .text-year-cell a:hover,
.vinyl-text-table .text-country-cell a:hover,
.vinyl-text-table .artist-link:hover,
.vinyl-text-table .genre-link:hover,
.vinyl-text-table .style-link:hover,
.vinyl-text-table .label-link:hover,
.vinyl-text-table .year-link:hover,
.vinyl-text-table .country-link:hover {
    text-decoration: underline;
}

.vinyl-text-table .text-price-cell .price {
    font-weight: 600;
    color: #28a745;
}

.vinyl-text-table .text-actions-cell {
    width: 60px;
    text-align: center;
}

.vinyl-text-table .btn-text-compact {
    background: #007cba;
    border: none;
    color: white;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.vinyl-text-table .btn-text-compact:hover {
    background: #005a87;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 124, 186, 0.3);
}

.vinyl-text-table .btn-text-compact:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.vinyl-text-table .text-comment-cell {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Ensure text rows are tightly packed */
.vinyl-text-table .text-row {
    height: auto;
    min-height: 0;
}

/* Text View Options Styling */
.text-view-options {
    align-items: center;
    gap: 15px;
    margin-left: 15px;
    padding: 8px 0;
}

.text-overlay-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.text-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #333;
    user-select: none;
}

.text-checkbox input[type="checkbox"] {
    display: none;
}

.text-checkbox .checkmark {
    width: 18px;
    height: 18px;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 3px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.text-checkbox input[type="checkbox"]:checked+.checkmark {
    background-color: #007cba;
    border-color: #007cba;
}

.text-checkbox input[type="checkbox"]:checked+.checkmark:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.text-checkbox:hover .checkmark {
    border-color: #007cba;
    box-shadow: 0 0 5px rgba(0, 124, 186, 0.3);
}

/* Hide thumbnail column when toggle is off */
.vinyl-text-table.hide-thumbnails .text-thumbnail-header,
.vinyl-text-table.hide-thumbnails .text-thumbnail-cell {
    display: none;
}

/* Legacy compatibility for existing text view styles */
.vinyl-text-table .text-title a {
    color: #212529;
    text-decoration: none;
    font-weight: 500;
}

.vinyl-text-table .text-title a:hover {
    color: #007cba;
    text-decoration: underline;
}

.vinyl-text-table .text-artist a,
.vinyl-text-table .text-genre a,
.vinyl-text-table .text-style a,
.vinyl-text-table .text-label a {
    color: #007cba;
    text-decoration: none;
}

.vinyl-text-table .text-artist a:hover,
.vinyl-text-table .text-genre a:hover,
.vinyl-text-table .text-style a:hover,
.vinyl-text-table .text-label a:hover {
    text-decoration: underline;
}

.vinyl-text-table .text-price {
    font-weight: 600;
    color: #28a745;
}

.vinyl-text-table .text-action .wantlist-btn {
    width: auto;
    padding: 4px 8px;
    font-size: 11px;
}

.vinyl-text-table .text-comment {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    color: #6c757d;
}

.no-results h3 {
    margin: 0 0 10px 0;
    color: #495057;
}

.no-results p {
    margin: 0;
    font-size: 16px;
}

/* Vinyl Card Styles (from shop.css) */
.vinyl-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.vinyl-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.vinyl-cover {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

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

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

/* Price badge styles moved to main definition around line 795 */

.vinyl-info {
    padding: 15px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.vinyl-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vinyl-artist {
    color: #667eea;
    font-weight: 600;
    margin: 0 0 8px 0;
    font-size: 0.95rem;
}

.vinyl-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 10px 0;
    flex: 1;
}

.vinyl-meta {
    font-size: 0.8rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .vinyl-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .vinyl-grid.auto-fill {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

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

@media (max-width: 768px) {
    .wowplatter-items-component {
        padding: 15px;
    }

    .wowplatter-info-panel {
        margin: 0 -10px 20px -10px;
        padding: 20px;
        width: calc(100% + 20px);
        border-radius: 8px;
    }

    .items-controls {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .items-controls .view-toggle {
        flex-direction: row;
        justify-content: center;
        align-items: center;
    }

    .results-container {
        margin-top: 15px;
    }

    .view-controls-section {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .pagination-controls {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    /* Filter controls removed - now handled by standalone filter.css */

    .vinyl-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .view-toggle-buttons {
        justify-content: center;
    }

    /* Role and entity filter buttons removed - now handled by standalone filter.css */

    .card-details {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .card-actions {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .vinyl-grid {
        grid-template-columns: 1fr;
    }

    .view-btn {
        flex: 1;
        justify-content: center;
    }

    .card-detail {
        flex-direction: column;
        gap: 2px;
    }

    .card-detail-value {
        text-align: left;
    }
}

/* Filter state classes removed - now handled by standalone filter.css */

/* Loading State */
.wowplatter-items-component.loading {
    opacity: 0.6;
    pointer-events: none;
}

.wowplatter-items-component.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1000;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Test Page Specific Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background: #f8f9fa;
    line-height: 1.6;
}

.wowplatter-main-content {
    min-height: calc(100vh - 200px);
}

.wowplatter-page-header {
    background: #ffffff;
    border-bottom: 1px solid #e1e5e9;
    padding: 40px 0;
    margin-bottom: 30px;
}

.wowplatter-page-header .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.wowplatter-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.wowplatter-page-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin: 0;
}

.wowplatter-page-meta {
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #ecf0f1;
}

.wowplatter-page-meta-item {
    display: inline-block;
    margin-right: 30px;
    color: #34495e;
    font-size: 0.95rem;
}

.wowplatter-page-meta-item i {
    margin-right: 8px;
    color: #3498db;
}

.wowplatter-test-page {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.test-navigation {
    margin: 30px 0;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e1e5e9;
}

.test-navigation h3 {
    margin: 0 0 20px 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.test-navigation a {
    display: inline-block;
    padding: 12px 24px;
    margin: 8px 8px 8px 0;
    background: #3498db;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.test-navigation a:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

.test-navigation a.active {
    background: #27ae60;
}

.test-navigation a.active:hover {
    background: #229954;
}

.test-description {
    margin: 30px 0;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    border: 1px solid #e1e5e9;
}

.test-description h3 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.3rem;
}

.test-description ul {
    margin: 15px 0;
    padding-left: 0;
    list-style: none;
}

.test-description li {
    margin: 12px 0;
    padding: 8px 0;
    border-bottom: 1px solid #ecf0f1;
}

.test-description li:last-child {
    border-bottom: none;
}

.test-description strong {
    color: #2c3e50;
    font-weight: 600;
}

.wowplatter-footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 40px 0 20px 0;
    margin-top: 60px;
}

.wowplatter-footer .container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

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

.wowplatter-footer-section h4 {
    color: #3498db;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.wowplatter-footer-section p,
.wowplatter-footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    line-height: 1.6;
}

.wowplatter-footer-section a:hover {
    color: #3498db;
}

.wowplatter-footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #95a5a6;
}

/* Artist-specific responsive styles moved to artist.css */

/* Chatbot placeholder styles */
.wowplatter-chatbot-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.wowplatter-chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Wall View Styles */
.results-container.mode-wall .view-wall,
#wowplatter-results.mode-wall .view-wall {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    /* 5 columns filling width */
    gap: 0 !important;
    /* No gaps between images */
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Hide load more button in wall view (pagination now visible) */
.view-wall-active .wall-load-more-container {
    display: none !important;
}

/* Infinite Scroll Loader for Wall View */
.wall-infinite-loader {
    text-align: center;
    padding: 15px;
    font-size: 14px;
    color: #666;
    background: rgba(248, 249, 250, 0.9);
    border: none;
    border-radius: 6px;
    margin: 15px auto;
    max-width: 200px;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(2px);
    animation: fadeInLoader 0.3s ease-in;
}

.wall-infinite-loader::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-top: 2px solid #666;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInLoader {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wall-item {
    display: block !important;
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 100% !important;
    /* Creates square aspect ratio */
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
    transition: transform 0.2s ease, z-index 0.2s ease;
    position: relative !important;
    text-decoration: none !important;
    box-sizing: border-box;
}

.wall-item:hover {
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Enhanced Wall View Options */
.wall-view-options {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 20px;
    padding: 10px 0;
}

.wall-overlay-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.wall-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #495057;
    cursor: pointer;
    user-select: none;
    background: white;
    padding: 6px 12px;
    border-radius: 16px;
    border: 1px solid #dee2e6;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wall-checkbox:hover {
    border-color: #007cba;
    box-shadow: 0 2px 4px rgba(0, 124, 186, 0.1);
}

.wall-checkbox input[type="checkbox"] {
    display: none;
}

.wall-checkbox .checkmark {
    width: 16px;
    height: 16px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 3px;
    position: relative;
    transition: all 0.3s ease;
}

.wall-checkbox input[type="checkbox"]:checked+.checkmark {
    background: #007cba;
    border-color: #007cba;
}

.wall-checkbox input[type="checkbox"]:checked+.checkmark:after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 3px;
    height: 7px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.wall-checkbox input[type="checkbox"]:checked {
    background: #e3f2fd;
    border-color: #007cba;
}

/* Wall Overlays */
.wall-price-overlay {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    z-index: 5;
    pointer-events: none;
}

.wall-title-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px 8px 8px;
    z-index: 5;
    pointer-events: none;
}

.wall-title-text {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Show overlays when checkboxes are checked */
.wall-overlays-enabled .wall-price-overlay.show-price {
    display: block !important;
}

.wall-overlays-enabled .wall-title-overlay.show-title {
    display: block !important;
}

/* Wall Load More Button */
.wall-load-more-btn {
    display: block;
    margin: 30px auto;
    padding: 12px 30px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.wall-load-more-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.wall-load-more-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.wall-load-more-btn:disabled:hover {
    background: #ccc;
    transform: none;
}

.items-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-sizing: border-box;
}

.items-bar .view-toggle {
    flex: 0 0 auto;
}

.items-bar .sort-controls {
    flex: 0 0 auto;
}

.items-bar .pagination-wrapper {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

@media (min-width: 769px) {
    .items-bar .pagination-wrapper.top-pagination {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
    }

    .items-bar .pagination-wrapper.top-pagination .top-controls-row {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
    }

    .items-bar .pagination-wrapper.top-pagination .per-page-select-top {
        display: flex;
        align-items: center;
        gap: 6px;
        flex: 0 0 auto;
    }

    .items-bar .pagination-wrapper.top-pagination .pagination-nav-row {
        display: flex;
        justify-content: center;
        flex: 1 1 auto;
        min-width: 0;
    }

    .items-bar .pagination-wrapper.top-pagination .pagination-nav-row .pagination-nav {
        display: flex;
        flex: 1 1 auto;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .items-bar .pagination-wrapper.top-pagination .right-controls-row {
        display: flex;
        align-items: center;
        gap: 8px;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .items-bar .pagination-wrapper.top-pagination .page-jump-input {
        width: 6ch;
        min-width: 6ch;
        padding: 6px 8px;
        border: 1px solid #dee2e6;
        border-radius: 18px;
        font-size: 13px;
        box-sizing: border-box;
    }
}

.items-bar .view-btn {
    padding: 4px 10px !important;
    font-size: 12px !important;
    height: 30px;
    border-radius: 16px !important;
}

.results-count {
    display: none !important;
}

/* Ultra-compact width for top per-page select */
#per-page-select-top {
    width: 8ch !important;
    min-width: 8ch !important;
    padding: 2px 6px !important;
    padding-right: 3ch !important;
    box-sizing: border-box !important;
}

.wall-item img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Enhanced Mobile Wall View */
@media (max-width: 768px) {
    .view-wall {
        grid-template-columns: repeat(4, 1fr);
        /* Reduce to 4 columns for better touch targets */
        gap: 8px;
        padding: 10px;
    }

    .wall-item {
        aspect-ratio: 1;
        min-height: 80px;
        /* Ensure minimum touch target size */
    }

    .wall-price-overlay {
        font-size: 12px;
        padding: 3px 6px;
        right: 4px;
        top: 4px;
    }

    .wall-title-overlay {
        padding: 15px 6px 6px;
    }

    .wall-title-text {
        font-size: 11px;
        line-height: 1.2;
    }
}

@media (max-width: 480px) {
    .view-wall {
        grid-template-columns: repeat(3, 1fr);
        /* Further reduce to 3 columns on small screens */
        gap: 6px;
        padding: 8px;
    }

    .wall-item {
        min-height: 90px;
        /* Larger touch targets on small screens */
    }

    .wall-price-overlay {
        font-size: 11px;
        padding: 2px 5px;
    }

    .wall-title-text {
        font-size: 10px;
    }

    /* Mobile Row View Optimizations */
    .vinyl-row {
        padding: 10px;
        flex-direction: column;
        text-align: center;
    }

    .vinyl-row-image {
        width: 100px;
        height: 100px;
        margin: 0 auto 10px auto;
    }

    .vinyl-row-content {
        width: 100%;
    }

    .vinyl-row-meta {
        justify-content: center;
        margin-top: 8px;
    }
}

/* Enhanced Pagination Styles */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    gap: 20px;
}

.compact-pagination {
    display: flex;
    align-items: center;
    gap: 15px;
}

.per-page-buttons {
    display: flex;
    gap: 5px;
}

.per-page-btn {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.per-page-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.per-page-btn.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.pagination-nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-btn,
.page-num {
    padding: 8px 12px;
    border: 1px solid #ddd;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.2s ease;
    min-width: 40px;
    text-align: center;
}

.nav-btn:hover,
.page-num:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    text-decoration: none;
}

.page-num.current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.results-info {
    font-size: 14px;
    color: #666;
    text-align: center;
}

/* Desktop and Mobile Pagination Controls */
.desktop-pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}

.mobile-pagination {
    display: none;
    align-items: center;
    gap: 5px;
}

/* Enhanced Mobile Pagination */
@media (max-width: 1024px) {
    .desktop-pagination {
        display: none;
    }

    .mobile-pagination {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .pagination-wrapper {
        flex-direction: column;
        gap: 15px;
        padding: 15px 10px;
    }

    .compact-pagination {
        flex-direction: column;
        gap: 15px;
    }

    .per-page-buttons {
        justify-content: center;
        gap: 8px;
    }

    .per-page-btn {
        padding: 10px 14px;
        font-size: 14px;
        min-height: 44px;
        /* Better touch target */
        min-width: 50px;
    }

    .pagination-nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .nav-btn,
    .page-num {
        padding: 10px 14px;
        font-size: 14px;
        min-height: 44px;
        /* Better touch target */
        min-width: 44px;
    }

    .results-info {
        font-size: 15px;
        padding: 10px;
        text-align: center;
    }
}

/* Ultra-compact mobile pagination for very small screens - Two row layout */
@media (max-width: 544px) {
    .pagination-wrapper {
        padding: 8px 5px;
        gap: 8px;
    }

    /* Two-row layout for top pagination */
    .top-pagination {
        flex-direction: column;
        gap: 8px;
    }

    .top-controls-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 4px;
    }

    .pagination-nav-row {
        width: 100%;
    }

    .compact-pagination {
        gap: 8px;
    }

    /* Make filter button smaller */
    .mobile-filter-toggle {
        padding: 6px 10px !important;
        font-size: 12px !important;
        min-height: 36px !important;
        min-width: auto !important;
    }

    /* Make per-page dropdown smaller */
    .per-page-dropdown {
        font-size: 12px;
    }

    .per-page-dropdown label {
        display: none;
    }

    .per-page-select {
        padding: 4px 6px;
        font-size: 12px;
        min-height: 36px;
    }

    /* Ultra-compact mobile pagination */
    .mobile-pagination {
        gap: 1px;
        flex-wrap: nowrap;
        justify-content: space-between;
        width: 100%;
        display: flex !important;
    }

    .mobile-pagination .nav-btn {
        padding: 4px 2px;
        font-size: 10px;
        min-height: 32px;
        min-width: 28px;
        flex: 1;
        max-width: calc(16.66% - 1px);
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        border-radius: 3px;
    }

    /* Hide current page indicator on very small screens */
    .mobile-pagination .page-num.current {
        display: none;
    }

    .results-info {
        font-size: 12px;
        padding: 5px;
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pagination-nav {
        gap: 4px;
    }

    .nav-btn,
    .page-num {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 40px;
    }

    .per-page-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 45px;
    }
}

.wowplatter-chatbot-toggle:hover {
    background: #2980b9;
    transform: scale(1.1);
}

/* Mobile-Specific Component Optimizations */
@media (max-width: 768px) {
    .wowplatter-items-component {
        padding: 0 10px;
    }

    /* Improve spacing for mobile */
    .vinyl-grid,
    .vinyl-text-table,
    .view-wall {
        margin-top: 15px;
    }

    /* Mobile-optimized info panels */
    .wowplatter-info-panel {
        margin: 0 -10px 20px -10px;
        padding: 20px 15px;
        border-radius: 8px;
        width: calc(100% + 20px);
    }

    .label-info-panel .label-header h1 {
        font-size: 2.2em;
    }

    .label-info-panel .label-meta {
        font-size: 1.1em;
    }

    .label-info-panel .label-description {
        font-size: 1rem;
        padding: 0 10px;
    }

    .meta-item {
        font-size: 0.9rem;
    }

    /* Mobile Row View Optimizations */
    .vinyl-row {
        padding: 12px;
        margin-bottom: 8px;
    }

    .vinyl-row-image {
        width: 80px;
        height: 80px;
        margin-right: 12px;
    }

    .vinyl-row-content {
        flex: 1;
        min-width: 0;
    }

    .vinyl-row-title {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 4px;
    }

    .vinyl-row-artist {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .vinyl-row-meta {
        gap: 8px;
        flex-wrap: wrap;
    }

    .vinyl-row-meta .condition-tag,
    .vinyl-row-meta .price-tag {
        padding: 4px 8px;
        font-size: 0.75rem;
        min-height: 28px;
    }
}

@media (max-width: 480px) {
    .wowplatter-items-component {
        padding: 0 5px;
    }

    .wowplatter-info-panel {
        margin: 0 -5px 15px -5px;
        padding: 15px 10px;
        width: calc(100% + 10px);
    }

    .label-info-panel .label-header h1 {
        font-size: 1.8em;
    }

    .label-info-panel .label-meta {
        font-size: 1rem;
    }

    .label-info-panel .label-description {
        font-size: 0.95rem;
    }

    .label-meta {
        gap: 15px;
    }

    .meta-item {
        font-size: 0.85rem;
    }
}

/* Mobile Touch Optimizations */
@media (max-width: 768px) {

    /* Ensure all clickable elements have proper touch targets */
    .vinyl-card,
    .vinyl-row,
    .wall-item {
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(0, 124, 186, 0.1);
    }

    /* Improve hover states for touch devices */
    .vinyl-card:active {
        transform: translateY(-1px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .vinyl-row:active {
        background: #f8f9fa;
    }

    /* Better spacing for mobile interactions */
    .vinyl-secondary {
        padding: 12px;
        font-size: 0.9rem;
    }

    /* Mobile-optimized metadata display */
    .vinyl-metadata {
        gap: 6px;
        flex-wrap: wrap;
    }

    .metadata-badge {
        padding: 3px 8px;
        font-size: 0.75rem;
        min-height: 26px;
        display: flex;
        align-items: center;
    }

    /* Table Container Styles */
    .vinyl-table-container {
        width: 100%;
        overflow-x: auto;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        margin: 20px 0;
    }

    .vinyl-text-table-container {
        width: 100%;
        overflow-x: auto;
        background: white;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        margin: 20px 0;
    }

    /* Row View Table Styles */
    .vinyl-table {
        width: 100%;
        min-width: 1200px;
        /* Ensure table doesn't get too cramped */
        border-collapse: collapse;
        background: white;
        font-size: 0.9rem;
    }

    .vinyl-table th,
    .vinyl-table td {
        padding: 12px 8px;
        text-align: left;
        border-bottom: 1px solid #e9ecef;
        vertical-align: middle;
    }

    .vinyl-table th {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        font-weight: 600;
        position: sticky;
        top: 0;
        z-index: 10;
    }

    .vinyl-table tr:nth-child(even) {
        background-color: #f8f9fa;
    }

    .vinyl-table tr:hover {
        background-color: #e3f2fd;
    }

    /* Column width optimizations */
    .vinyl-table .cover-cell {
        width: 80px;
        min-width: 80px;
    }

    .vinyl-table .title-cell {
        min-width: 200px;
        max-width: 300px;
    }

    .vinyl-table .artist-cell {
        min-width: 150px;
        max-width: 200px;
    }

    .vinyl-table .genre-cell,
    .vinyl-table .style-cell,
    .vinyl-table .label-cell {
        min-width: 120px;
        max-width: 150px;
    }

    .vinyl-table .year-cell,
    .vinyl-table .country-cell,
    .vinyl-table .format-cell {
        min-width: 80px;
        max-width: 100px;
    }

    .vinyl-table .condition-cell {
        min-width: 120px;
        max-width: 150px;
    }

    .vinyl-table .comment-cell {
        min-width: 150px;
        max-width: 200px;
    }

    .vinyl-table .price-cell {
        min-width: 80px;
        max-width: 100px;
        text-align: right;
        font-weight: 600;
    }

    .vinyl-table .actions-cell {
        width: 60px;
        min-width: 60px;
        text-align: center;
    }

    .vinyl-table .cover-image {
        width: 60px;
        height: 60px;
        object-fit: cover;
        border-radius: 4px;
    }

    .vinyl-table .no-cover {
        width: 60px;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: #f8f9fa;
        border: 1px solid #dee2e6;
        border-radius: 4px;
        font-size: 10px;
        color: #6c757d;
    }

    /* Mobile Table Container Optimizations */
    .vinyl-table-container,
    .vinyl-text-table-container {
        margin: 15px 0;
        border-radius: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Mobile Row View Table */
    .vinyl-table {
        min-width: 800px;
        /* Reduced for mobile */
        font-size: 0.8rem;
    }

    .vinyl-table th,
    .vinyl-table td {
        padding: 8px 6px;
    }

    .vinyl-table .cover-cell {
        width: 60px;
        min-width: 60px;
    }

    .vinyl-table .cover-image,
    .vinyl-table .no-cover {
        width: 50px;
        height: 50px;
    }

    /* Enhanced Mobile Text/Table View */
    .vinyl-text-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        border: 1px solid #dee2e6;
        border-radius: 8px;
    }

    .vinyl-text-table th,
    .vinyl-text-table td {
        padding: 8px 6px;
        min-width: 80px;
        font-size: 13px;
    }

    .vinyl-text-table .title-cell {
        min-width: 180px;
        max-width: 200px;
    }

    .vinyl-text-table .artist-cell {
        min-width: 140px;
        max-width: 160px;
    }

    .vinyl-text-table .price-cell {
        min-width: 80px;
        font-weight: 600;
    }

    .vinyl-text-table .condition-cell {
        min-width: 90px;
    }
}

@media (max-width: 480px) {

    /* Extra small mobile optimizations */
    .vinyl-table-container,
    .vinyl-text-table-container {
        margin: 10px 0;
    }

    .vinyl-table {
        min-width: 700px;
        /* Further reduced for very small screens */
        font-size: 0.75rem;
    }

    .vinyl-table th,
    .vinyl-table td {
        padding: 6px 4px;
    }

    .vinyl-table .cover-cell {
        width: 50px;
        min-width: 50px;
    }

    .vinyl-table .cover-image,
    .vinyl-table .no-cover {
        width: 40px;
        height: 40px;
    }

    .vinyl-text-table th,
    .vinyl-text-table td {
        padding: 6px 4px;
        font-size: 12px;
    }

    .vinyl-text-table .title-cell {
        min-width: 160px;
        max-width: 180px;
    }

    .vinyl-text-table .artist-cell {
        min-width: 120px;
        max-width: 140px;
    }
}

/* Additive filter styles removed - now handled by standalone filter.css */

/* Multi-select dropdown styles removed - now handled by standalone filter.css */

/* =========================================
   Plugin Layout Overrides
   ========================================= */

/* Hide default page title on plugin pages */
.page .entry-title,
.page .page-title,
.page h1.wp-block-post-title {
    display: none !important;
}

/* Force full-width layout for plugin pages - Breakout of theme containers */
.main-content-with-filter,
.wowplatter-records-page {
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    padding: 20px !important;
    box-sizing: border-box !important;
    max-width: 100vw !important;
}

/* Ensure body doesn't scroll horizontally */
body {
    overflow-x: hidden !important;
}