      :root {
        --primary-bg: #1a1a2e;
        --box-bg: rgba(30, 30, 46, 0.95);
        --glow-color: rgba(88, 58, 205, 0.2);
        --text-color: #ffffff;
        --accent-color: #583acd;
        --border-radius: 15px;
        --timestamp-color: rgba(255, 255, 255, 0.5);
      }

      body {
        font-family: Arial, sans-serif;
        background-color: var(--primary-bg);
        color: var(--text-color);
        margin: 0;
        padding: 20px;
        min-height: 100vh;
      }

      .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
      }

      h1 {
        text-align: center;
        font-size: 2.5em;
        margin-top: 60px;
        margin-bottom: 40px;
        color: var(--text-color);
      }

      .input-box {
        background: var(--box-bg);
        padding: 30px;
        border-radius: var(--border-radius);
        margin-bottom: 40px;
        box-shadow: 0 0 30px var(--glow-color);
        width: 90%;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
      }

      .input-group {
        display: flex;
        gap: 15px;
        flex-direction: row;
      }

      input[type="text"] {
        flex: 1;
        padding: 15px;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--border-radius);
        background: rgba(255, 255, 255, 0.05);
        color: var(--text-color);
        font-size: 16px;
        min-width: 0; /* Prevents input from overflowing */
      }

      .content-section {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-bottom: 30px;
        width: 100%;
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
      }

      .video-section {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 20px;
      }

      .video-container {
        background: var(--box-bg);
        border-radius: var(--border-radius);
        padding: 20px;
        box-shadow: 0 0 30px var(--glow-color);
        width: 100%;
        aspect-ratio: 16/9;
      }

      .action-buttons {
        background: var(--box-bg);
        padding: 15px;
        border-radius: var(--border-radius);
        display: flex;
        gap: 10px;
        box-shadow: 0 0 30px var(--glow-color);
        justify-content: center;
      }

      .transcript-container {
        width: 100%;
        background: var(--box-bg);
        border-radius: var(--border-radius);
        padding: 20px;
        box-shadow: 0 0 30px var(--glow-color);
        overflow-y: auto;
        height: 300px;
      }

      .timestamp-line {
        display: grid;
        grid-template-columns: 80px 1fr;
        gap: 10px;
        padding: 5px 0;
      }

      .timestamp {
        color: var(--timestamp-color);
        font-family: monospace;
      }

      button {
        padding: 15px 25px;
        border: none;
        border-radius: var(--border-radius);
        background: var(--accent-color);
        color: var(--text-color);
        font-size: 16px;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
      }

      button:hover {
        opacity: 0.9;
        transform: translateY(-2px);
      }

      button:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
      }

      button.primary-button {
        background: linear-gradient(45deg, #e147c2, #7b5ee5);
      }

      button.secondary-button {
        background: #2379bf;
      }

      .loading {
        text-align: center;
        display: none;
        padding: 20px;
      }

      .loading-spinner {
        border: 4px solid rgba(255, 255, 255, 0.1);
        border-top: 4px solid var(--accent-color);
        border-radius: 50%;
        width: 40px;
        height: 40px;
        animation: spin 1s linear infinite;
        margin: 0 auto;
      }

      .notification {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: var(--accent-color);
        color: var(--text-color);
        padding: 10px 20px;
        border-radius: var(--border-radius);
        display: none;
        animation: fadeInOut 2s ease-in-out;
      }

      @media (max-width: 768px) {
        .input-group {
          flex-direction: column;
        }

        h1 {
          font-size: 1.8em;
        }

        .container {
          padding: 10px;
        }

        .input-box {
          padding: 20px;
        }

        .timestamp-line {
          grid-template-columns: 70px 1fr;
        }
      }

      @keyframes spin {
        0% {
          transform: rotate(0deg);
        }
        100% {
          transform: rotate(360deg);
        }
      }

      @keyframes fadeInOut {
        0% {
          opacity: 0;
          transform: translateY(20px);
        }
        20% {
          opacity: 1;
          transform: translateY(0);
        }
        80% {
          opacity: 1;
          transform: translateY(0);
        }
        100% {
          opacity: 0;
          transform: translateY(-20px);
        }
      }

      .video-info {
        background: var(--box-bg);
        padding: 20px;
        border-radius: var(--border-radius);
        box-shadow: 0 0 30px var(--glow-color);
      }
      .video-info h2 {
        margin-top: 0;
        font-size: 1.5em;
      }
      .video-info p {
        margin: 5px 0;
        color: rgba(255, 255, 255, 0.8);
      }
      .back-link {
        position: absolute;
        top: 24px;
        right: 40px;
        background: #222c;
        color: #fff;
        padding: 10px 26px;
        border-radius: 20px;
        font-weight: bold;
        font-size: 1.1em;
        text-decoration: none;
        letter-spacing: 1px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        transition: background 0.2s, color 0.2s;
        z-index: 1000;
      }
      .back-link:hover {
        background: #583acd;
        color: #fff;
      }
