    .hide {
       display: none;
    }

    .show {
       display: block;
    }

    .name {
       font-weight: bold;
       font-size: 10px;
    }

    :root {
       --netflix-red: #E50914;
       --netflix-black: #141414;
       --netflix-dark-grey: #181818;
       --text-color: #ffffff;
       --transition: all 0.3s ease;
    }

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

    body {
       font-family: 'Roboto', sans-serif;
       background-color: var(--netflix-black);
       color: var(--text-color);
       overflow-x: hidden;
    }

    /* Header Style */
    .netflix-header {
       padding: 20px 4%;
       background-color: #141414;
       position: sticky;
       top: 0;
       z-index: 100;
    }

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

    #notlogged {
       color: #c0c0c0;
    }

    /* blocco utente a destra */
    #logged-user {
       display: flex;
       flex-direction: column;
       /* mette logout sotto */
       align-items: center;
       gap: 5px;
       margin-left: auto;
    }

    /* immagine profilo più piccola */
    #logged-user img {
       width: 40px;
       height: 40px;
       object-fit: cover;
    }

    /* bottone più compatto */
    .logout-btn {
       background: none;
       border: none;
       color: white;
       font-size: 11px;
       display: flex;
       flex-direction: column;
       align-items: center;
       cursor: pointer;
       opacity: 0.8;
       transition: 0.2s;
    }

    .logout-btn i {
       font-size: 16px;
    }

    .logout-btn:hover {
       opacity: 1;
       color: var(--netflix-red);
    }

    .logo {
       width: 120px;
    }

    h1 {
       font-family: 'Permanent Marker', sans-serif;       
       letter-spacing: 2px;
       color: rgb(3, 54, 194);  
       margin-left: 1rem;     
    }

    .subtitle {
      font-family: 'Story Script', sans-serif;
       margin-bottom: 1rem;       
       font-size: 25px;
       color: rgba(237, 11, 11, 0.5);       
    }

    /* Grid Layout */
    .container {
       padding: 40px 4%;
    }

    .row-title {
       margin-bottom: 20px;
       font-size: 1.5rem;
       font-weight: bold;
       color: rgb(233, 235, 242);
       font-family: 'Roboto', sans-serif;
    }

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

    /* Card Style */
    .card {
       background: var(--netflix-dark-grey);
       border-radius: 4px;
       overflow: hidden;
       position: relative;
       transition: var(--transition);
       cursor: pointer;
    }

    .card:hover {
       transform: scale(1.05);
       z-index: 10;
       box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .card-img {
       width: 100%;
       aspect-ratio: 16/9;
       object-fit: cover;
    }

    .card-body {
       padding: 15px;
    }

    .card-author {
       color: #aaa;
       font-size: 0.8rem;
       text-transform: uppercase;
    }

    .card h3 {
       margin: 5px 0;
       font-size: 1.2rem;
    }

    .card-vote {
      font-size: 1.1rem;
      text-align: right;
      margin-top: 1.2rem;
      color: #E50914;
    }

    .card-count {
      font-size: 2rem;
      font-weight: bold;
    }

    /* Vote Button Logic */
    .btn-vote {
       width: 100%;
       padding: 10px;
       background: #333;
       color: white;
       border: none;
       font-weight: bold;
       cursor: pointer;
       margin-top: 10px;
       border-radius: 2px;
       transition: var(--transition);
    }

    .btn-vote:hover {
       background: #444;
    }

    /* Stile per il voto attivo */
    .card.voted {
       border: 2px solid var(--netflix-red);
    }

    .card.voted .btn-vote {
       background: var(--netflix-red);
       content: "VOTATO";
    }

    /* Modal */
    .modal {
       display: none;
       position: fixed;
       z-index: 2000;
       left: 0;
       top: 0;
       width: 100%;
       height: 100%;
       background: rgba(0, 0, 0, 0.85);
       backdrop-filter: blur(5px);
    }

    .modal-content {
       background: var(--netflix-dark-grey);
       margin: 5vh auto;
       width: 90%;
       max-width: 900px;
       border-radius: 8px;
       overflow: hidden;
    }

    .video-wrapper {
       position: relative;
       padding-bottom: 56.25%;
       height: 0;
    }

    .video-wrapper iframe {
       position: absolute;
       top: 0;
       left: 0;
       width: 100%;
       height: 100%;
    }

    .modal-info {
       padding: 30px;
    }

    .close-modal {
       position: absolute;
       right: 20px;
       top: 15px;
       font-size: 40px;
       color: white;
       cursor: pointer;
       z-index: 10;
    }

    footer {
       display: flex;
       justify-content: space-between;
       /* sinistra + destra */
       align-items: center;
       padding: 20px 4%;
       gap: 20px;
    }

    /* blocco sinistro */
    .footer-left {
       display: flex;
       align-items: center;
       gap: 15px;
    }

    /* testo sotto */
    .footer-text {
       display: flex;
       flex-direction: column;
    }

    /* logo piccolo */
    footer .logo {
       width: 50px;
    }

    /* utente a destra */
    footer #logged-user {
       display: flex;
       flex-direction: column;
       align-items: center;
       gap: 5px;
    }

    /* avatar */
    footer #logged-user img {
       width: 40px;
       height: 40px;
    }

    /* sistemiamo testo */
    .footer {
       margin: 0;
       color: #c0c0c0;
    }

    .credits {
       margin: 0;
       font-size: 12px;
       opacity: 0.7;
       color: #c0c0c0;
    }

    .privacy-box {
       max-width: 800px;
       margin: 40px auto;
       padding: 20px;
       background: #181818;
       border-radius: 8px;
       color: white;
       font-size: 14px;
       line-height: 1.6;
       text-align: left;
    }

    .privacy-box h2 {
       margin-bottom: 15px;
       color: #E50914;
    }

    .privacy-box ul {
       margin-left: 20px;
    }