
      :root {
        --primary: #2c3e50;
        --secondary: #3498db;
        --accent: #e74c3c;
        --light: #ecf0f1;
        --dark: #2c3e50;
        --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        --transition: all 0.3s ease;
      }

      * {
        padding: 0;
        margin: 0;
        box-sizing: border-box;
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        
      }

      body {
        background-color: var(--light);
        color: var(--dark);
        line-height: 1.6;
      }

      header {
        background-color: var(--primary);
        color: white;
        padding: 1.5rem;
        text-align: center;
        box-shadow: var(--shadow);
      }

      h1 {
        font-size: 2.5rem;
        margin-bottom: 0.5rem;
      }

      section {
        padding: 1.5rem;
        max-width: 1200px;
        margin: 0 auto;
      }

      /* Search Section */
      #input-section {
        padding: 2rem 1rem;
        background-color: white;
        border-radius: 8px;
        box-shadow: var(--shadow);
        margin-bottom: 2rem;
      }

      #search-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
      }

      #movieName {
        height: 3rem;
        width: 100%;
        max-width: 500px;
        border: 2px solid var(--secondary);
        border-radius: 30px;
        font-size: 1rem;
        padding: 0 1.5rem;
        outline: none;
        transition: var(--transition);
      }

      #movieName:focus {
        border-color: var(--accent);
        box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.2);
      }

      #search {
        padding: 0.75rem 2rem;
        border-radius: 30px;
        border: none;
        background-color: var(--secondary);
        color: white;
        font-weight: bold;
        cursor: pointer;
        transition: var(--transition);
      }

      #search:hover {
        background-color: #2980b9;
        transform: translateY(-2px);
      }

      #row2 {
        display: flex;
        justify-content: center;
        gap: 1rem;
        flex-wrap: wrap;
      }

      .btn {
        border: none;
        padding: 0.75rem 1.5rem;
        border-radius: 30px;
        cursor: pointer;
        font-weight: bold;
        transition: var(--transition);
        background-color: var(--primary);
        color: white;
      }

      .btn:hover {
        background-color: var(--accent);
        transform: translateY(-2px);
      }

      /* Movie List */
      #displayer {
        margin-top: 1rem;
      }

      ul {
        list-style: none;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
      }

      .item {
        background-color: white;
        border-radius: 10px;
        overflow: hidden;
        box-shadow: var(--shadow);
        transition: var(--transition);
        display: flex;
        flex-direction: column;
        height: 100%;
      }

      .item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
      }

      .poster {
        width: 100%;
        height: 400px;
        object-fit: cover;
        border-bottom: 1px solid #eee;
      }

      .textbox {
        padding: 1.5rem;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        flex-grow: 1;
      }

      .item h2 {
        font-size: 1.25rem;
        color: var(--primary);
      }

      .item h4 {
        font-size: 0.9rem;
        color: #7f8c8d;
      }

      .item p {
        font-size: 0.9rem;
        color: #555;
        margin-top: 0.5rem;
      }

      /* Expanded Movie View */
      .clicked-item {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 2rem;
        background-color: var(--primary);
        color: white;
        animation: expand 0.3s ease-out;
      }

      .clicked-item .textbox {
        padding-right: 2rem;
      }

      .clicked-item h2,
      .clicked-item h4,
      .clicked-item p {
        color: white;
      }

      .clicked-poster {
        height: 100%;
        object-fit: contain;
      }

      /* Controls */
      .controls {
        display: flex;
        justify-content: center;
        gap: 1rem;
        margin: 2rem 0;
     
      }

      /* Loading State */
      .loading {
        display: flex;
        justify-content: center;
        padding: 2rem;
      }

      .spinner {
        width: 40px;
        height: 40px;
        border: 4px solid rgba(0, 0, 0, 0.1);
        border-radius: 50%;
        border-top-color: var(--secondary);
        animation: spin 1s ease-in-out infinite;
      }

      /* Animations */
      @keyframes spin {
        to { transform: rotate(360deg); }
      }

      @keyframes expand {
        from { opacity: 0; transform: scale(0.95); }
        to { opacity: 1; transform: scale(1); }
      }

      /* Responsive Adjustments */
      @media (max-width: 768px) {
        ul {
          grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        }

        .clicked-item {
          grid-template-columns: 1fr;
        }

        .clicked-poster {
          width: 100%;
          height: auto;
        }
      }

      @media (max-width: 480px) {
        #row2 {
          flex-direction: column;
          align-items: center;
        }

        .btn {
          width: 100%;
          max-width: 250px;
        }

        #movieName {
          font-size: 0.9rem;
        }
      }


      .genreList

      {
        
       display: flex;
       justify-content: center;
       flex-wrap: wrap;
       width: 100%;
        
        
         
      }

      #genreContainer
      {
         display: flex;
         flex-direction: row;
        width: 100%;
        padding: 2rem;
        align-items: center;
        justify-content: center;
     
      }

     
      .none
      {
        display: none;
      }

      