* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      body {
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        min-height: 100vh;
        padding: 20px;
      }
      .container {
        max-width: 1200px;
        margin: 0 auto;
        background: white;
        border-radius: 20px;
        padding: 40px;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
      }
      header {
        text-align: center;
        margin-bottom: 40px;
      }
      h1 {
        font-size: 2.5rem;
        color: #333;
        margin-bottom: 10px;
      }
      .scene-input {
        margin-bottom: 20px;
        padding: 20px;
        background: #f8f9fa;
        border-radius: 10px;
      }
      .scene-input label {
        display: block;
        font-weight: bold;
        margin-bottom: 10px;
        color: #667eea;
      }
      .scene-input textarea {
        width: 100%;
        padding: 15px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 1rem;
        resize: vertical;
        min-height: 100px;
      }
      .scene-input textarea:focus {
        outline: none;
        border-color: #667eea;
      }
      .generate-btn {
        width: 100%;
        padding: 15px;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        border-radius: 10px;
        font-size: 1.2rem;
        font-weight: bold;
        cursor: pointer;
        margin-top: 20px;
        transition: transform 0.3s;
      }
      .generate-btn:hover {
        transform: translateY(-2px);
      }
      .generate-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
      }
      #storyDisplay {
        margin-top: 40px;
      }
      .story-scene {
        margin-bottom: 40px;
        padding: 30px;
        background: #f8f9fa;
        border-radius: 15px;
      }
      .story-scene h3 {
        color: #667eea;
        margin-bottom: 20px;
      }
      .story-scene .scene-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: center;
      }
      .story-scene .scene-text {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #333;
      }
      .story-scene .scene-image {
        text-align: center;
      }
      .story-scene img {
        max-width: 100%;
        border-radius: 10px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
      }
      .loading {
        text-align: center;
        padding: 20px;
        color: #667eea;
        font-size: 1.2rem;
      }
      .spinner {
        border: 4px solid #f3f3f3;
        border-top: 4px solid #667eea;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        animation: spin 1s linear infinite;
        margin: 20px auto;
      }
      @keyframes spin {
        0% {
          transform: rotate(0deg);
        }
        100% {
          transform: rotate(360deg);
        }
      }
      @media (max-width: 768px) {
        .story-scene .scene-content {
          grid-template-columns: 1fr;
        }
      }