 * {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
 }

 body {
     font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
     background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #48dbfb 100%);
     min-height: 100vh;
     display: flex;
     justify-content: center;
     align-items: flex-start;
     padding: 20px;
     position: relative;
 }

 body::before {
     content: '';
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="1" fill="white" opacity="0.1"/><circle cx="40" cy="60" r="1" fill="white" opacity="0.1"/><circle cx="70" cy="80" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
     pointer-events: none;
     z-index: -1;
 }

 .container {
     width: 100%;
     max-width: 500px;
     background: rgba(255, 255, 255, 0.15);
     border: 2px solid rgba(255, 255, 255, 0.2);
     border-radius: 25px;
     box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
     backdrop-filter: blur(20px);
     padding: 40px;
     margin-top: 50px;
     text-align: center;
     position: relative;
     overflow: hidden;
 }

 .container::before {
     content: '';
     position: absolute;
     top: -50%;
     left: -50%;
     width: 200%;
     height: 200%;
     background: conic-gradient(from 0deg, transparent, rgba(255, 255, 255, 0.1), transparent);
     animation: rotate 20s linear infinite;
     pointer-events: none;
 }

 @keyframes rotate {
     0% {
         transform: rotate(0deg);
     }

     100% {
         transform: rotate(360deg);
     }
 }

 h1 {
     color: white;
     font-size: 2.8rem;
     margin-bottom: 30px;
     text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
     font-weight: 800;
     letter-spacing: 2px;
     position: relative;
     z-index: 1;
 }

 h1::after {
     content: '';
     position: absolute;
     bottom: -5px;
     left: 50%;
     transform: translateX(-50%);
     width: 80px;
     height: 4px;
     background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb);
     border-radius: 2px;
 }

 #searchForm {
     display: flex;
     gap: 15px;
     margin-bottom: 30px;
     flex-wrap: wrap;
     position: relative;
     z-index: 1;
 }

 #query {
     flex: 1;
     min-width: 250px;
     padding: 18px 25px;
     border: 3px solid rgba(255, 255, 255, 0.3);
     border-radius: 50px;
     font-size: 16px;
     outline: none;
     transition: all 0.3s ease;
     background: rgba(255, 255, 255, 0.9);
     color: #333;
     box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
     font-weight: 500;
 }

 #query:focus {
     border-color: #ff6b6b;
     background: white;
     box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2), inset 0 2px 4px rgba(0, 0, 0, 0.1);
     transform: scale(1.02);
 }

 #query::placeholder {
     color: #999;
     font-style: italic;
 }

 button {
     padding: 18px 35px;
     background: linear-gradient(45deg, #ff6b6b, #feca57);
     color: white;
     border: none;
     border-radius: 50px;
     font-size: 16px;
     font-weight: 700;
     cursor: pointer;
     transition: all 0.3s ease;
     box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
     text-transform: uppercase;
     letter-spacing: 1px;
     position: relative;
     overflow: hidden;
 }

 button::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
     transition: left 0.6s;
 }

 button:hover::before {
     left: 100%;
 }

 button:hover {
     transform: translateY(-3px);
     box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
     background: linear-gradient(45deg, #ff5252, #ffab40);
 }

 button:active {
     transform: translateY(-1px);
 }

 #results {
     text-align: left;
 }

 .movie {
     background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
     margin: 25px 0;
     padding: 30px;
     border-radius: 20px;
     box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
     border: 2px solid rgba(255, 255, 255, 0.3);
     backdrop-filter: blur(10px);
     transition: all 0.4s ease;
     position: relative;
     overflow: hidden;
 }

 .movie::before {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     height: 6px;
     background: linear-gradient(90deg, #ff6b6b, #feca57, #48dbfb);
 }

 .movie::after {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
     transform: translateX(-100%);
     transition: transform 0.6s;
 }

 .movie:hover::after {
     transform: translateX(100%);
 }

 .movie:hover {
     transform: translateY(-8px) scale(1.02);
     box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
     border-color: rgba(255, 107, 107, 0.5);
 }

 .movie img {
     float: left;
     margin-right: 20px;
     width: 110px;
     height: 160px;
     object-fit: cover;
     border-radius: 12px;
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
     transition: all 0.3s ease;
     border: 3px solid rgba(255, 255, 255, 0.8);
 }

 .movie img:hover {
     transform: scale(1.08) rotate(2deg);
     box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
 }

 .movie h3 {
     margin: 0 0 18px;
     color: #2c3e50;
     font-size: 1.5rem;
     font-weight: 800;
     text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
     position: relative;
     z-index: 1;
 }

 .movie p {
     margin: 10px 0;
     color: #444;
     line-height: 1.7;
     font-size: 15px;
     position: relative;
     z-index: 1;
 }

 .movie p strong {
     color: #ff6b6b;
     font-weight: 700;
     text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
 }

 .movie p:last-child {
     margin-top: 20px;
     padding: 12px 20px;
     background: linear-gradient(45deg, #ff6b6b, #feca57);
     color: white;
     border-radius: 25px;
     display: inline-block;
     font-weight: 700;
     text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
     box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
     transition: all 0.3s ease;
 }

 .movie p:last-child:hover {
     transform: translateY(-2px);
     box-shadow: 0 8px 20px rgba(255, 107, 107, 0.5);
 }

 /* Loading and error states */
 #results:has-text("Loading...") {
     text-align: center;
     color: #667eea;
     font-size: 18px;
     padding: 20px;
 }

 /* Responsive design */
 @media (max-width: 600px) {
     .container {
         margin-top: 20px;
         padding: 20px;
     }

     h1 {
         font-size: 2rem;
     }

     #searchForm {
         flex-direction: column;
     }

     #query {
         min-width: 100%;
     }

     .movie img {
         width: 80px;
         height: 120px;
         margin-right: 15px;
     }

     .movie h3 {
         font-size: 1.2rem;
     }
 }

 /* Animation for results */
 .movie {
     animation: fadeInUp 0.5s ease-out;
 }

 @keyframes fadeInUp {
     from {
         opacity: 0;
         transform: translateY(30px);
     }

     to {
         opacity: 1;
         transform: translateY(0);
     }
 }

 /* Custom scrollbar */
 ::-webkit-scrollbar {
     width: 10px;
 }

 ::-webkit-scrollbar-track {
     background: rgba(255, 255, 255, 0.1);
     border-radius: 10px;
 }

 ::-webkit-scrollbar-thumb {
     background: linear-gradient(45deg, #ff6b6b, #feca57);
     border-radius: 10px;
 }

 ::-webkit-scrollbar-thumb:hover {
     background: linear-gradient(45deg, #ff5252, #ffab40);
 }