:root {
    --primary: #2563eb;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --secondary: #64748b;
    --bg-body: #f8fafc;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --radius: 12px;
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.container {
    max-width: 100%;
    width: 100%;
    padding-left: 15px;
    padding-right: 15px;
}

@media (max-width: 992px) {
    .container {
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
    box-shadow: var(--shadow) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

/* ── Film konténer ───────────────────────────────────────── */
.movie-container {
    display: grid;
    grid-template-columns: 300px 1fr 220px;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "cover top    buttons"
        "cover bottom buttons";
    gap: 24px;
    background: var(--card-bg);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
}

.cover-image        { grid-area: cover; }
.movie-details-top  { grid-area: top; }
.movie-details-bottom { grid-area: bottom; }
.button-section     { grid-area: buttons; }

@media (max-width: 992px) {
    .movie-container {
        grid-template-columns: 1fr;
        grid-template-areas:
            "cover"
            "top"
            "buttons"
            "bottom";
        padding: 10px;
    }

    .cover-image {
        text-align: center;
    }

    .cover-image img {
        max-width: 300px;
        width: 100%;
    }

    .reject-buttons {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .reject-btn-hide-mobile {
        display: none !important;
    }
}

/* ── Borítókép ───────────────────────────────────────────── */
.cover-image img {
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius) - 4px);
    object-fit: cover;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* ── Fejléc + Pontszám ───────────────────────────────────── */
.movie-score-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.user-score-container {
    flex-shrink: 0;
}

.stylish-score {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: white;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.movie-header {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.title-hun {
    font-size: 1.25rem;
    color: var(--text-muted) !important;
    font-weight: 500;
    margin-top: 4px;
}

/* ── Pontszámok ──────────────────────────────────────────── */
.scores {
    display: flex;
    gap: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    margin-bottom: 16px;
}

.imdb-score {
    background: #f5c518;
    color: #000;
    padding: 2px 8px;
    border-radius: 4px;
}

/* ── Műfaj pill-ek ───────────────────────────────────────── */
.genre-pill {
    background-color: #f1f5f9;
    color: #475569;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

/* ── Személy pill-ek ────────────────────────────────────── */
.person-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #e2e8f0;
}
.person-actor {
    background: #fef9f0;
    color: #1e293b;
    border-color: #f0e0c0;
}

/* ── Leírás ──────────────────────────────────────────────── */
.description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #334155;
    margin-top: 20px;
}

.description h3 {
    font-size: 1.2rem;
}

/* ── Utoljára láttam ─────────────────────────────────────── */
.last-seen {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
}

/* ── Gomb szekció ────────────────────────────────────────── */
.button-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button-section .btn {
    border-radius: 8px !important;
    padding: 10px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: transform 0.1s;
    text-align: center;
    width: 100%;
}

.button-section .btn:active {
    transform: scale(0.98);
}

.btn-primary { background-color: var(--primary) !important; border-color: var(--primary) !important; }
.btn-success { background-color: var(--success) !important; border-color: var(--success) !important; }
.btn-danger  { background-color: var(--danger)  !important; border-color: var(--danger)  !important; }

/* ── Értékelés box ───────────────────────────────────────── */
.rating-box {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ── Vissza gomb ─────────────────────────────────────────── */
#backButtonContainer {
    text-align: center;
    margin-top: 12px;
    margin-bottom: 8px;
}

.scoreInput {
    border: 2px solid var(--primary) !important;
    font-weight: 800;
    color: var(--primary);
    background: white;
    width: 60px !important;
    text-align: center;
    font-size: 1.2rem;
    border-radius: 6px;
}

/* ── Szűrő sáv ───────────────────────────────────────────── */
.filter-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    min-width: 70px;
    margin-right: 12px;
    margin-bottom: 8px;
}

.filter-column label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0;
    text-align: left;
}

.filter-input {
    height: 32px;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 0 8px !important;
    font-size: 0.85rem !important;
    width: 70px;
}

.filter-name-input {
    width: 150px;
}

.filter-category-input {
    width: 200px;
    font-size: 0.9rem;
}

.filter-watched-input {
    height: 32px;
    border-radius: 6px !important;
    border: 1px solid #cbd5e1 !important;
    padding: 0 8px !important;
    font-size: 0.85rem !important;
    width: 120px;
}

/* Filter szekció responsive wrap (mobil) */
.filter-flex-wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 10px;
    gap: 4px;
}

/* ── Szűrő összefoglaló ──────────────────────────────────── */
.filter-summary {
    font-size: 0.9rem;
    color: #6c757d;
    margin-left: 10px;
}

.filter-summary-container {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-left: 1rem;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.filter-summary-container::after {
    content: '...';
    display: none;
    margin-left: 0.5rem;
    color: #666;
}

.filter-summary-container.overflow::after {
    display: inline-block;
}

.filter-pill {
    padding: 0.3rem 0.7rem;
    border-radius: 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}

.filter-pill.positive {
    background-color: #e6ffe6;
    color: #006600;
    box-shadow: inset 0 0 0 1px #99cc99;
}

.filter-pill.negative {
    background-color: #ffe6e6;
    color: #660000;
    box-shadow: inset 0 0 0 1px #cc9999;
}

.filter-pill.saved-filter {
    background-color: #fff3e6;
    color: #e65100;
    box-shadow: inset 0 0 0 1px #ff9966;
    font-weight: 600;
    padding: 0.35rem 0.85rem;
}

/* ── Accordion ───────────────────────────────────────────── */
.accordion-button {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
}

/* ── Mentett szűrő gombok ────────────────────────────────── */
.saveFilter-button-group {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    margin-top: 0.25rem;
    justify-content: center;
}

.saveFilter-button-group .btn {
    margin-top: 0;
}

#deleteFilter {
    margin-top: 0.5rem;
}

/* ── Keresés ─────────────────────────────────────────────── */
.form-group {
    position: relative;
    display: flex;
    align-items: center;
}

#movieSearch {
    flex: 1;
}

#suggestions {
    width: 800px;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.custom-suggestions li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.custom-suggestions li:last-child {
    border-bottom: none;
}

.custom-suggestions li:hover {
    background-color: #f1f1f1;
}

.custom-suggestions::-webkit-scrollbar { width: 10px; }
.custom-suggestions::-webkit-scrollbar-thumb { background: #888; border-radius: 4px; }
.custom-suggestions::-webkit-scrollbar-thumb:hover { background: #555; }

/* ── Progress ────────────────────────────────────────────── */
.progress-container {
    display: flex;
    align-items: center;
}

h2 {
    margin-right: 20px;
}

.progress {
    height: 30px;
    width: 100%;
    max-width: 800px;
}

/* ── Súgó gomb ───────────────────────────────────────────── */
.tour-reset-btn {
    font-size: 0.75rem;
    color: #94a3b8;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.tour-reset-btn:hover {
    color: var(--primary);
}

/* ── Kedvencek mozaik ────────────────────────────────────── */
.liked-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}

@media (max-width: 576px) {
    .liked-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 10px;
    }
}

.liked-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: var(--card-bg);
    box-shadow: var(--shadow);
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.liked-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px -4px rgb(0 0 0 / 0.15);
}

.liked-card img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    display: block;
}

.liked-card-info {
    padding: 8px 10px 10px;
}

.liked-card-title {
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
    margin-bottom: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.liked-card-title-hun {
    font-size: 0.72rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.liked-card-score {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.liked-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.liked-card:hover .liked-card-overlay {
    opacity: 1;
}

.liked-card-overlay-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--text-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ── Kategória tagek (liked + match kártyán) ─────────────── */
.liked-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-top: 5px;
}

.liked-card-tag {
    background: #f1f5f9;
    color: #64748b;
    font-size: 0.62rem;
    padding: 1px 5px;
    border-radius: 3px;
    line-height: 1.5;
    white-space: nowrap;
}

/* ── Match count jelvény (top-left, tükörképe a score-badge-nek) ─ */
.match-count-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    min-width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #0d6efd;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 1;
}

/* ── Room vote chip (Index.cshtml landing + Matches.cshtml közös) ────────── */
.lp-room-vote {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 10px;
    white-space: nowrap;
    display: inline-block;
}
.lp-room-vote.yes  { background: rgba(16,185,129,0.13); color: #34d399; border: 1px solid rgba(16,185,129,0.25); }
.lp-room-vote.no   { background: rgba(239,68,68,0.09);  color: #f87171; border: 1px solid rgba(239,68,68,0.2); }
.lp-room-vote.wait { background: rgba(0,0,0,0.04);      color: #64748b; border: 1px solid rgba(0,0,0,0.08); }

/* ── Kiválasztott match kártya ────────────────────────────── */
.match-card-watched {
    outline: 2px solid #198754;
    outline-offset: -2px;
}

/* ── Driver.js popover ───────────────────────────────────── */
.driver-popover {
    background-color: #ffffff !important;
    color: #1e293b !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1) !important;
    border: 1px solid #e2e8f0 !important;
    font-family: 'Inter', sans-serif !important;
}

.driver-popover-title {
    font-size: 1.125rem !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
    color: #0f172a !important;
}

.driver-popover-description {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
    color: #475569 !important;
}

.driver-popover-btn {
    background-color: #3b82f6 !important;
    color: white !important;
    text-shadow: none !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background-color 0.2s !important;
}

.driver-popover-btn:hover {
    background-color: #2563eb !important;
}

.driver-popover-close-btn {
    color: #94a3b8 !important;
}

.driver-popover-progress-text {
    color: #94a3b8 !important;
    font-size: 0.75rem !important;
}

.driver-popover-arrow {
    border-color: #ffffff !important;
}
