/* co-watching.css - BingeAway Shared Watchlists & Binge Matcher Styles (Unified Design System) */

:root {
    --cw-bg-base: #090B10;
    --cw-card-surface: #111625;
    --cw-card-hover: #192033;
    --cw-accent-primary: #7C3AED;
    --cw-accent-pink: #FF2E63;
    --cw-accent-cyan: #38BDF8;
    --cw-match-green: #10B981;
    --cw-text-primary: #F8FAFC;
    --cw-text-secondary: #94A3B8;
    --cw-text-muted: #64748B;
    --cw-border: rgba(255, 255, 255, 0.08);
    --cw-border-hover: rgba(124, 58, 237, 0.4);
    --cw-radius: 8px;
    --cw-radius-lg: 12px;
}

/* ==========================================================================
   Watchlists Overview Grid & Cards
   ========================================================================== */
.cw-watchlists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.cw-watchlist-card {
    background: var(--cw-card-surface);
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-lg);
    padding: 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cw-watchlist-card:hover {
    background: var(--cw-card-hover);
    border-color: var(--cw-border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.2);
}

.cw-watchlist-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.cw-watchlist-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--cw-text-primary);
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.cw-watchlist-meta {
    font-size: 0.85rem;
    color: var(--cw-text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cw-pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    background: rgba(124, 58, 237, 0.15);
    color: #A78BFA;
    border: 1px solid rgba(124, 58, 237, 0.3);
    white-space: nowrap;
}

.cw-pill-badge.green {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border-color: rgba(16, 185, 129, 0.3);
}

.cw-pill-badge.cyan {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    border-color: rgba(56, 189, 248, 0.3);
}

/* Poster Preview Strip on Watchlist Cards */
.cw-poster-strip {
    display: flex;
    gap: 8px;
    margin: 16px 0;
    overflow: hidden;
    height: 90px;
}

.cw-poster-thumb {
    width: 60px;
    height: 90px;
    border-radius: 6px;
    object-fit: cover;
    border: 1px solid var(--cw-border);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.cw-watchlist-card:hover .cw-poster-thumb {
    transform: scale(1.04);
}

.cw-poster-thumb-empty {
    width: 60px;
    height: 90px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--cw-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cw-text-muted);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.cw-watchlist-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--cw-border);
    font-size: 0.85rem;
}

/* ==========================================================================
   Watchlist Inspector (Detail View inside a List)
   ========================================================================== */
.cw-list-inspector {
    background: transparent;
    border-radius: var(--cw-radius-lg);
    margin-top: 20px;
    animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.cw-inspector-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--cw-border);
}

.cw-inspector-title-area {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.cw-inspector-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--cw-text-primary);
}

.cw-back-btn {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--cw-text-primary);
    border: 1px solid var(--cw-border);
    transition: all 0.2s ease;
}

.cw-back-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

/* View Mode Toggles (Grid / List) */
.cw-view-mode-toggles {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--cw-border);
    border-radius: 8px;
    padding: 2px;
}

.cw-view-btn {
    background: transparent;
    border: none;
    color: var(--cw-text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cw-view-btn:hover {
    color: var(--cw-text-primary);
}

.cw-view-btn.active {
    background: var(--cw-accent-primary);
    color: #fff;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

/* ==========================================================================
   Members Panel
   ========================================================================== */
.cw-members-panel {
    background: var(--cw-card-surface);
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius);
    padding: 14px 18px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.cw-members-stack {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cw-member-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--cw-border);
    padding: 4px 12px 4px 6px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--cw-text-primary);
    font-weight: 500;
}

.cw-member-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7C3AED, #FF2E63);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.cw-member-remove-btn {
    background: none;
    border: none;
    color: var(--cw-text-muted);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 4px;
    transition: color 0.15s ease;
}

.cw-member-remove-btn:hover {
    color: #EF4444;
}

/* ==========================================================================
   Quick In-Watchlist Search & Live Dropdown
   ========================================================================== */
.cw-quick-add-section {
    position: relative;
    margin-bottom: 20px;
}

.cw-quick-add-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.cw-quick-search-icon {
    position: absolute;
    left: 16px;
    color: var(--cw-text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

#cw-add-live-input {
    width: 100%;
    box-sizing: border-box;
    background: #090B10;
    color: var(--cw-text-primary);
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius);
    padding: 12px 16px 12px 44px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: inherit;
}

#cw-add-live-input:focus {
    outline: none;
    border-color: var(--cw-accent-primary);
    box-shadow: 0 0 12px rgba(124, 58, 237, 0.3);
    background: #0d1017;
}

.cw-live-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111625;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius);
    max-height: 360px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.8);
    margin-top: 6px;
}

.cw-live-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: background 0.15s ease;
}

.cw-live-search-item:last-child {
    border-bottom: none;
}

.cw-live-search-item:hover {
    background: rgba(124, 58, 237, 0.15);
}

/* ==========================================================================
   Action Toolbar
   ========================================================================== */
.cw-action-toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.cw-action-toolbar button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   Filter Toolbar (Custom overlay on .search-filter)
   ========================================================================== */
.cw-filter-toolbar {
    margin-bottom: 24px;
}

/* ==========================================================================
   Media Cards (Grid View — Perfectly Matching User Library)
   ========================================================================== */
.media-item.cw-media-card {
    display: flex;
    flex-direction: column;
    height: auto !important;
    position: relative;
    overflow: visible !important;
}

.media-item.cw-media-card .media-poster {
    cursor: pointer;
}

.cw-card-body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.cw-card-header {
    margin-bottom: 8px;
}

.cw-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--cw-text-primary);
    margin: 0 0 4px 0;
    line-height: 1.35;
    cursor: pointer;
    transition: color 0.2s ease;
}

.cw-card-title:hover {
    color: var(--cw-accent-cyan);
}

.cw-card-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.cw-provider-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.06);
    color: var(--cw-text-secondary);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid var(--cw-border);
}

.cw-priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
}

.cw-card-meta-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
    font-size: 0.78rem;
    color: var(--cw-text-secondary);
}

.cw-tmdb-score {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    font-weight: 700;
}

.cw-tmdb-score-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #081c22;
    font-size: 0.68rem;
    font-weight: 800;
    color: #fff;
}

.cw-trailer-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #A78BFA;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    margin-top: 6px;
    transition: color 0.2s ease;
}

.cw-trailer-link:hover {
    color: #38BDF8;
    text-decoration: underline;
}

.cw-synopsis-preview {
    font-size: 0.78rem;
    color: var(--cw-text-muted);
    line-height: 1.35;
    margin-top: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cw-notes-preview {
    font-size: 0.75rem;
    color: #FBBF24;
    background: rgba(245, 158, 11, 0.08);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 4px;
    padding: 3px 6px;
    margin-top: 6px;
}

/* Multi-Member Co-Watching Progress Section */
.cw-progress-section {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 8px 10px;
    margin: 10px 0;
}

.cw-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8rem;
    margin-bottom: 5px;
}

.cw-progress-row:last-child {
    margin-bottom: 0;
}

.cw-member-label {
    min-width: 70px;
    max-width: 90px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--cw-text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
}

.cw-member-label.is-me {
    color: #fff;
    font-weight: 700;
}

.cw-progress-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.cw-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.cw-progress-bar.is-me {
    background: linear-gradient(90deg, #7C3AED, #38BDF8);
}

.cw-progress-bar.is-partner {
    background: linear-gradient(90deg, #10B981, #34D399);
}

.cw-progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--cw-text-primary);
    min-width: 55px;
    text-align: right;
}

/* Card Actions Container */
.cw-card-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Group Member Ratings & Reviews Section
   ========================================================================== */
.cw-member-reviews-box {
    background: rgba(17, 22, 37, 0.95);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cw-reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: #FBBF24;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cw-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cw-member-review-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 0.8rem;
}

.cw-member-review-item.is-me {
    background: rgba(124, 58, 237, 0.08);
    border-color: rgba(124, 58, 237, 0.25);
}

.cw-review-header-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.cw-review-user-name {
    color: var(--cw-text-primary);
    font-size: 0.78rem;
}

.cw-review-user-name.is-me {
    color: #38BDF8;
    font-weight: 700;
}

.cw-review-stars {
    color: #FBBF24;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

.cw-rating-digit {
    font-size: 0.72rem;
    color: var(--cw-text-secondary);
    font-weight: 600;
    margin-left: 2px;
}

.cw-review-text {
    font-size: 0.78rem;
    color: #E2E8F0;
    line-height: 1.35;
    margin-top: 5px;
    font-style: italic;
    word-break: break-word;
}

.cw-no-reviews-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    margin-top: 10px;
}

.cw-inline-review-btn, .cw-mini-review-btn {
    background: rgba(251, 191, 36, 0.12);
    color: #FBBF24;
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 4px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cw-inline-review-btn:hover, .cw-mini-review-btn:hover {
    background: rgba(251, 191, 36, 0.25);
    color: #fff;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

.cw-member-star-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    background: rgba(251, 191, 36, 0.15);
    color: #FBBF24;
    border: 1px solid rgba(251, 191, 36, 0.3);
    white-space: nowrap;
}

.cw-rating-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.1);
    color: #FBBF24;
    border: 1px solid rgba(251, 191, 36, 0.25);
}

.cw-rating-pill.is-me {
    background: rgba(124, 58, 237, 0.15);
    color: #C4B5FD;
    border-color: rgba(124, 58, 237, 0.35);
}

/* Review Scope Selector in Modal */
.cw-scope-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 10px;
    text-align: center;
    transition: all 0.2s ease;
}

.cw-scope-radio-btn.active .cw-scope-card {
    background: rgba(124, 58, 237, 0.22);
    border-color: #7C3AED;
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

/* Scope Badges on Group Reviews */
.cw-scope-badge {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    vertical-align: middle;
}

.cw-scope-badge.season {
    background: rgba(59, 130, 246, 0.18);
    color: #60A5FA;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.cw-scope-badge.episode {
    background: rgba(16, 185, 129, 0.18);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.cw-scope-badge.movie {
    background: rgba(245, 158, 11, 0.18);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}

/* ==========================================================================
   List View Mode
   ========================================================================== */
.cw-list-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cw-list-row-item {
    background: var(--cw-card-surface);
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius);
    padding: 14px 18px;
    display: flex;
    gap: 18px;
    align-items: center;
    transition: all 0.2s ease;
}

.cw-list-row-item:hover {
    background: var(--cw-card-hover);
    border-color: var(--cw-border-hover);
}

.cw-list-row-poster {
    width: 60px;
    height: 90px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    flex-shrink: 0;
}

.cw-list-row-details {
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   Interactive Episode Checklist Drawer
   ========================================================================== */
.cw-episodes-drawer {
    margin-top: 12px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 8px;
    padding: 14px;
    border: 1px solid var(--cw-border);
    animation: fadeIn 0.2s ease;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.cw-season-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cw-season-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--cw-border);
    color: var(--cw-text-secondary);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.cw-season-tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.cw-season-tab-btn.active {
    background: var(--cw-accent-primary);
    color: #fff;
    border-color: var(--cw-accent-primary);
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
}

.cw-episode-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 6px;
    margin-bottom: 6px;
    transition: background 0.15s ease;
}

.cw-episode-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.cw-ep-checkbox {
    width: 17px;
    height: 17px;
    cursor: pointer;
    accent-color: var(--cw-accent-primary);
    flex-shrink: 0;
}

.cw-ep-info {
    flex: 1;
    min-width: 0;
}

.cw-ep-title {
    font-size: 0.84rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.4;
    word-break: break-word;
}

.cw-ep-meta {
    font-size: 0.72rem;
    color: var(--cw-text-muted);
    margin-top: 1px;
}

.cw-ep-badges {
    display: flex;
    gap: 5px;
    align-items: center;
    flex-shrink: 0;
}

.cw-badge-user {
    font-size: 0.68rem;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}

.cw-badge-you {
    background: rgba(124, 58, 237, 0.15);
    color: #A78BFA;
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.cw-badge-partner {
    background: rgba(56, 189, 248, 0.15);
    color: #38BDF8;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

.cw-badge-both {
    background: rgba(16, 185, 129, 0.15);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* ==========================================================================
   Spoiler-Gated Comments & Notes Drawer
   ========================================================================== */
.cw-comment-drawer {
    margin-top: 12px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid var(--cw-border);
    animation: fadeIn 0.2s ease;
    box-sizing: border-box;
}

.cw-comment-bubble {
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.cw-spoiler-blurred {
    filter: blur(5px);
    user-select: none;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.cw-spoiler-revealed {
    filter: blur(0);
}

.cw-spoiler-warning {
    background: rgba(239, 68, 68, 0.15);
    color: #F87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 6px;
}

/* ==========================================================================
   Binge Matcher ("Tinder for TV") Swipe Deck
   ========================================================================== */
.cw-matcher-wrapper {
    max-width: 480px;
    margin: 0 auto;
}

.cw-matcher-card-box {
    background: var(--cw-card-surface);
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-lg);
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.cw-matcher-header h3 {
    margin: 0 0 6px 0;
    font-size: 1.5rem;
    color: var(--cw-match-green);
    font-weight: 800;
}

.matcher-deck-container {
    position: relative;
    width: 100%;
    max-width: 340px;
    height: 480px;
    margin: 20px auto 0 auto;
    perspective: 1000px;
}

.matcher-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #161B26;
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius-lg);
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
    user-select: none;
    touch-action: none;
    cursor: grab;
    transition: transform 0.2s ease, opacity 0.2s ease;
    display: flex;
    flex-direction: column;
}

.matcher-card:active {
    cursor: grabbing;
}

.matcher-card-img {
    width: 100%;
    height: 310px;
    object-fit: cover;
}

.matcher-card-info {
    padding: 14px 16px;
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.matcher-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--cw-text-primary);
}

.matcher-card-meta {
    display: flex;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--cw-text-secondary);
    margin-bottom: 6px;
}

.matcher-controls {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 24px;
}

.btn-swipe {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-swipe-pass {
    background: rgba(239, 68, 68, 0.12);
    color: #EF4444;
    border: 2px solid rgba(239, 68, 68, 0.35);
}

.btn-swipe-pass:hover {
    background: rgba(239, 68, 68, 0.25);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.btn-swipe-match {
    background: var(--cw-match-green);
    color: #000;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
}

.btn-swipe-match:hover {
    transform: scale(1.1);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.7);
}

/* ==========================================================================
   Instant Match Overlay Modal
   ========================================================================== */
.instant-match-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 11, 16, 0.95);
    backdrop-filter: blur(16px);
    z-index: 10020;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    animation: matchFadeIn 0.3s ease;
}

@keyframes matchFadeIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.match-title-gradient {
    font-size: 2.6rem;
    font-weight: 900;
    background: linear-gradient(135deg, #10B981, #38BDF8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.match-poster-glow {
    width: 170px;
    height: 255px;
    border-radius: var(--cw-radius-lg);
    object-fit: cover;
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.5);
    margin: 16px 0;
}

/* ==========================================================================
   Modals & Pickers
   ========================================================================== */
.cw-picker-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cw-border);
}

.cw-select-all-label {
    font-size: 0.88rem;
    color: var(--cw-text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cw-selected-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--cw-accent-cyan);
}

.cw-library-picker-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
}

.cw-picker-item-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius);
    cursor: pointer;
    transition: all 0.15s ease;
}

.cw-picker-item-label:hover {
    background: rgba(124, 58, 237, 0.08);
    border-color: var(--cw-border-hover);
}

.cw-invitable-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    margin-top: 12px;
}

.cw-invitable-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--cw-border);
    border-radius: var(--cw-radius);
}


