@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #6B35C8 0%, #E91E8C 100%);
    min-height: 100vh;
    /* Flex-column per supportare il footer legale (Iubenda) sotto il contenuto.
       In precedenza era flex-row (justify-content + align-items center), ma quel
       layout posizionava il footer A DESTRA del container invece che sotto. */
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Footer legale (Iubenda + Termini) — definito anche in app-style.css.
   Ridichiarato qui per le pagine che usano SOLO style.css (es. resetta_password). */
.moody-legal-footer {
    width: 100%;
    text-align: center;
    padding: 18px 16px 24px;
    margin-top: 16px;
    font-size: 0.82em;
    color: rgba(255, 255, 255, 0.92);
    background: transparent;
    box-sizing: border-box;
}
.moody-legal-footer a {
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    opacity: 0.92;
}
.moody-legal-footer a:hover { opacity: 1; text-decoration: underline; }
.moody-legal-footer .moody-legal-sep { margin: 0 6px; opacity: 0.5; }
.moody-legal-footer .moody-legal-copy { opacity: 0.7; }

.container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    padding: 40px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: #333;
    font-size: 2.5em;
    margin-bottom: 10px;
}

.header p {
    color: #666;
    font-size: 1.1em;
}

.phase {
    display: none;
}

.phase.active {
    display: block;
}

.question-group {
    margin-bottom: 30px;
}

.question-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.multiple-select {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: 10px;
}

.option-btn {
    padding: 12px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    text-align: center;
}

.option-btn:hover {
    border-color: #6B35C8;
    background: #f5f5f5;
}

.option-btn.selected {
    background: #6B35C8;
    color: white;
    border-color: #6B35C8;
}

.multiple-select .option-btn {
    text-align: center;
    padding: 10px 15px;
    font-size: 0.95em;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: #6B35C8;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #ddd;
    color: #333;
}

.btn-secondary:hover {
    background: #bbb;
}

.results {
    margin-top: 30px;
}

.result-card {
    background: #f9f9f9;
    border-left: 4px solid #6B35C8;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.result-card h3 {
    color: #333;
    margin-bottom: 10px;
}

.result-info {
    font-size: 0.95em;
    color: #666;
    line-height: 1.6;
}

.result-info strong {
    color: #333;
}

.loading {
    text-align: center;
    color: #6B35C8;
    font-size: 1.2em;
    margin: 20px 0;
}

.error {
    background: #fee;
    color: #c00;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #c00;
}

.progress-bar {
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #6B35C8;
    transition: width 0.3s ease;
}

.era-badge {
    display: inline-block;
    padding: 4px 12px;
    background: #6B35C8;
    color: white;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    margin-left: 10px;
}

/* ===== STAR RATING (0-5 STELLE CON PUNTEGGI INTERMEDI) ===== */
.star-rating {
    display: flex;
    gap: 2px;
    font-size: 2em;
    margin: 15px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.star {
    cursor: pointer;
    color: #ddd;
    transition: color 0.2s, transform 0.2s;
    width: 28px;
    height: 28px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
}

.star:hover {
    color: #FFD700;
    transform: scale(1.2);
}

.star.active {
    color: #FFD700;
    transform: scale(1.15);
}

/* ===== APP LAYOUT ===== */
.app-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    max-width: 500px;
    width: 100%;
    background: white;
    position: relative;
}

/* HEADER */
.header-app {
    background: linear-gradient(135deg, #6B35C8 0%, #E91E8C 100%);
    color: white;
    padding: 20px;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-app h1 {
    font-size: 2em;
    margin: 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.header-content h1 {
    margin: 0;
    flex: 1;
}

/* MENU DROPDOWN */
.header-menu {
    position: relative;
    margin-left: auto;
}

.btn-menu-dots {
    background: transparent;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5em;
}

.btn-menu-dots:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.menu-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    display: none;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
}

.menu-dropdown.active {
    display: flex;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eee;
}

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

.menu-item:hover {
    background: #f5f5f5;
    color: #6B35C8;
}

.menu-item i {
    width: 20px;
    text-align: center;
}

/* CONTENT */
.content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    padding-bottom: 100px;
}

.questionario-content {
    padding-bottom: 120px !important;
}

/* BOTTOM NAVBAR */
.bottom-navbar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    height: 70px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    margin: 0;
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    text-decoration: none;
    color: #999;
    transition: all 0.3s ease;
    gap: 5px;
}

.nav-item i {
    font-size: 1.5em;
}

.nav-item span {
    font-size: 0.75em;
    font-weight: 600;
}

.nav-item:hover {
    color: #6B35C8;
    background: #f5f5f5;
}

.nav-item.active {
    color: #6B35C8;
}

.nav-item.active i {
    font-size: 1.8em;
}

/* HOME PAGE STYLES */
.cta-section {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

.btn-comincia {
    background: #6B35C8;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 53, 200, 0.4);
}

.btn-comincia:hover {
    background: #5568d3;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(107, 53, 200, 0.6);
}

.btn-comincia:active {
    transform: scale(0.98);
}

/* EMPTY STATE */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.empty-state h2 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.empty-state p {
    color: #666;
    font-size: 1em;
    margin-bottom: 10px;
    line-height: 1.5;
}

.empty-state .btn-comincia {
    margin-top: 30px;
}

.consigliati-section {
    margin-top: 40px;
}

.consigliati-section h2 {
    color: #333;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

/* MOVIES GRID */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.movie-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.movie-card:hover {
    transform: scale(1.05);
}

.movie-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 10px;
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.movie-overlay p {
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.2;
}

.movie-overlay .voto {
    font-size: 0.85em;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.match-type {
    font-size: 0.75em;
    background: rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 10px;
    color: white;
    margin: 5px 0;
}

/* OVERLAY BUTTONS */
.overlay-buttons {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

/* WISHLIST BUTTON SMALL */
.btn-wishlist-small {
    background: #FFD700;
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2em;
    margin-top: 10px;
}

.btn-wishlist-small:hover {
    background: #FFC700;
    transform: scale(1.15);
}

.btn-wishlist-small:active {
    transform: scale(0.95);
}

/* RESULT CARDS */
.result-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.result-card:hover {
    transform: translateY(-5px);
}

.btn-wishlist {
    background: #FFD700;
    color: #333;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.btn-wishlist:hover {
    background: #FFC700;
    transform: scale(1.05);
}

/* SEARCH PAGE STYLES */
.search-container {
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    border-radius: 25px;
    padding: 10px 15px;
    border: 2px solid #ddd;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.search-box:focus-within {
    border-color: #6B35C8;
    background: white;
    box-shadow: 0 2px 10px rgba(107, 53, 200, 0.2);
}

.search-box i {
    color: #999;
    font-size: 1.2em;
}

.search-box input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 1em;
    color: #333;
}

.search-box input::placeholder {
    color: #999;
}

.btn-search {
    background: #6B35C8;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.btn-search:hover {
    background: #5568d3;
    transform: scale(1.1);
}

.search-filters {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.filter-btn {
    background: white;
    border: 2px solid #ddd;
    color: #666;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-weight: 500;
    font-size: 0.9em;
}

.filter-btn:hover {
    border-color: #6B35C8;
    color: #6B35C8;
}

.filter-btn.active {
    background: #6B35C8;
    color: white;
    border-color: #6B35C8;
}

.search-results {
    min-height: 200px;
}

/* SEARCH RESULTS LIST */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
}

.search-result-item {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 15px;
    display: flex;
    gap: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.search-result-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-result-poster {
    width: 80px;
    min-width: 80px;
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
}

.search-result-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.search-result-info {
    flex: 1;
}

.search-result-info h3 {
    color: #333;
    font-size: 1em;
    margin-bottom: 5px;
}

.search-result-info p {
    color: #666;
    font-size: 0.85em;
    margin: 3px 0;
    line-height: 1.3;
}

.search-result-info .match-type {
    background: #6B35C8;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-bottom: 8px;
    font-size: 0.75em;
}

/* FILM ACTIONS */
.film-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.film-actions-big {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.btn-action {
    background: white;
    color: #333;
    border: 2px solid #ddd;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-action:hover {
    border-color: #6B35C8;
    color: #6B35C8;
}

.btn-action.btn-wishlist:hover {
    border-color: #FFD700;
    color: #FFD700;
}

.btn-action.btn-piaciuto:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.btn-action.btn-visto:hover {
    border-color: #6B35C8;
    color: #6B35C8;
}

.btn-action-big {
    background: white;
    color: #333;
    border: 2px solid #ddd;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-action-big:hover {
    border-color: #6B35C8;
    color: #6B35C8;
}

.btn-action-big.btn-wishlist:hover {
    border-color: #FFD700;
    color: #FFD700;
}

.btn-action-big.btn-piaciuto:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.btn-action-big.btn-visto:hover {
    border-color: #6B35C8;
    color: #6B35C8;
}

/* WISHLIST PAGE */
.wishlist-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.wishlist-item {
    background: #f9f9f9;
    border-left: 4px solid #6B35C8;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.wishlist-item .item-info h3 {
    color: #333;
    font-size: 1em;
    margin: 0;
}

.btn-remove {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
}

.btn-remove:hover {
    background: #ff5252;
    transform: scale(1.1);
}

/* PROFILO PAGE */
.profilo-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.profilo-card {
    background: linear-gradient(135deg, #6B35C8 0%, #E91E8C 100%);
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(107, 53, 200, 0.3);
}

.profilo-avatar {
    font-size: 3em;
    margin-bottom: 15px;
}

.profilo-card h2 {
    font-size: 1.5em;
    margin: 10px 0;
}

.profilo-card p {
    opacity: 0.9;
}

.profilo-stats {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.profilo-stats h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

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

.stat-item strong {
    color: #6B35C8;
    font-size: 1.2em;
}

.profilo-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* CATEGORIE LIST */
.categorie-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.categorie-secondary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* CATEGORIA PRINCIPALE (WISHLIST) */
.categoria-item-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
    color: #333;
    padding: 30px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 2px solid #FFB700;
    cursor: pointer;
}

.categoria-item-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
}

.categoria-item-primary h3 {
    font-size: 1.4em;
    font-weight: 700;
}

.categoria-item-primary .categoria-count {
    font-size: 1.05em;
    margin-left: 32px;
}

/* CATEGORIE SECONDARIE */
.categoria-item-secondary {
    background: linear-gradient(135deg, #6B35C8 0%, #E91E8C 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 53, 200, 0.3);
    display: flex;
    flex-direction: column;
    gap: 8px;
    cursor: pointer;
}

.categoria-item-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(107, 53, 200, 0.5);
}

.categoria-item-secondary h3 {
    font-size: 1.1em;
    font-weight: 600;
}

.categoria-item-secondary .categoria-count {
    font-size: 0.9em;
    margin-left: 32px;
}

/* STILI COMUNI CATEGORIE */
.categoria-item h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.categoria-icon {
    font-size: 1.5em;
    display: inline-block;
}

.categoria-count {
    margin: 0;
    opacity: 0.9;
}

/* CATEGORIA ITEM */
.categoria-item {
    background: linear-gradient(135deg, #6B35C8 0%, #E91E8C 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(107, 53, 200, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    position: relative;
    cursor: pointer;
}

.categoria-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(107, 53, 200, 0.5);
}

.categoria-name {
    font-size: 1.1em;
    font-weight: 600;
    margin: 0;
}

/* QUESTIONARIO STYLES */
.question-group {
    margin-bottom: 25px;
}

.question-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    font-size: 1em;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.multiple-select {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.option-btn {
    padding: 12px 15px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

.option-btn:hover {
    border-color: #6B35C8;
    background: #f5f5f5;
}

.option-btn.selected {
    background: #6B35C8;
    color: white;
    border-color: #6B35C8;
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    justify-content: center;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn-primary {
    background: #6B35C8;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-primary:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-secondary {
    background: #ddd;
    color: #333;
}

.btn-secondary:hover {
    background: #bbb;
}

/* PROGRESS BAR */
.progress-bar {
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    margin-bottom: 20px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #6B35C8;
    transition: width 0.3s ease;
}

/* RESULTS GRID - QUESTIONARIO */
.results-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.result-card-big {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

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

.result-card-content {
    display: flex;
    gap: 15px;
    padding: 15px;
    position: relative;
}

.result-number {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #6B35C8;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.2em;
}

.result-card-content .movie-poster {
    width: 100px;
    min-width: 100px;
    aspect-ratio: 2/3;
    border-radius: 8px;
    overflow: hidden;
}

.result-info-big {
    flex: 1;
}

.result-info-big h3 {
    color: #333;
    font-size: 1.1em;
    margin-bottom: 8px;
}

.result-info-big p {
    color: #666;
    font-size: 0.9em;
    margin: 5px 0;
    line-height: 1.4;
}

.btn-add-wishlist {
    background: #FFD700;
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}

.btn-add-wishlist:hover {
    background: #FFC700;
    transform: scale(1.05);
}

.btn-add-wishlist:active {
    transform: scale(0.95);
}

/* UTILITY CLASSES */
.no-data {
    text-align: center;
    color: #999;
    padding: 30px;
    font-size: 1.1em;
}

.placeholder-text {
    text-align: center;
    color: #999;
    padding: 30px;
    font-size: 1em;
}

.loading {
    text-align: center;
    color: #6B35C8;
    padding: 30px;
    font-size: 1em;
}

.error {
    background: #fee;
    color: #c00;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #c00;
    margin-bottom: 20px;
}

.success-message {
    background: #e7f5e7;
    color: #2d6a2d;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: none;
    border-left: 4px solid #2d6a2d;
}

/* MOBILE RESPONSIVE */
@media (max-width: 600px) {
    .app-container {
        max-width: 100%;
    }

    .movies-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .option-btn {
        font-size: 0.9em;
        padding: 10px 12px;
    }

    .movie-overlay p {
        font-size: 0.8em;
    }

    .result-card-content {
        flex-direction: column;
    }

    .result-card-content .movie-poster {
        width: 100%;
        max-height: 200px;
    }

    .search-result-item {
        flex-direction: column;
    }

    .search-result-poster {
        width: 100%;
        max-height: 150px;
    }

    .categorie-secondary {
        grid-template-columns: 1fr;
    }

    .star-rating {
        gap: 1px;
    }

    .star {
        width: 24px;
        height: 24px;
        font-size: 1em;
    }
}

@media (max-width: 400px) {
    .header-app h1 {
        font-size: 1.5em;
    }

    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .btn-comincia {
        padding: 12px 30px;
        font-size: 1em;
    }

    .categoria-item-primary {
        padding: 20px;
    }

    .categoria-item-primary h3 {
        font-size: 1.2em;
    }

    .star-rating {
        gap: 0px;
    }

    .star {
        width: 20px;
        height: 20px;
        font-size: 0.9em;
    }
}