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

    
    body {
      font-family: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      background: linear-gradient(135deg, #a8c5e6 0%, #c1d9f0 100%);
      min-height: 100vh;
      padding: 20px;
      color: #333;
    }
    
    .container {
      max-width: 950px;
      margin: 0 auto;
      background: #e8e8e8;
      border-radius: 16px;
      box-shadow: 0 20px 60px rgba(0,0,0,0.3);
      overflow: hidden;
      border: 20px solid #1e3c72;
    }
    
    .header {
      background: #e8e8e8;
      color: white;
      padding: 30px;
      text-align: center;
    }
    
    .header h1 {
      font-size: 28px;
      margin-bottom: 8px;
      color: #1e3c72;
    }
    
    .header p {
      opacity: 0.9;
      font-size: 14px;
      color: #2a5298;
    }

    .header-logo {
      max-width: 500px;
      width: 100%;
      height: auto;
      display: block;
      margin: 0 auto 20px auto;
    }
    
    .content {
      padding: 30px 40px;
    }
    
    /* Summary Sentence */
    .summary-box {
      background: #f0f7ff;
      border-left: 4px solid #2196F3;
      border-radius: 12px;
      padding: 20px;
      margin-bottom: 20px;
      font-size: 16px;
      line-height: 1.6;
      color: #333;
      box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
    }
    
    .summary-box strong {
      color: #2a5298;
      font-weight: 700;
    }
    
    /* Video Player Section */
    .video-section {
      margin-bottom: 30px;
    }
    
    .video-wrapper {
      position: relative;
      background: #000;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    
    video {
      width: 100%;
      display: block;
    }
    
    .loading {
      padding: 100px 20px;
      text-align: center;
      color: #999;
    }
    
    .spinner {
      border: 3px solid #f3f3f3;
      border-top: 3px solid #2a5298;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      animation: spin 1s linear infinite;
      margin: 0 auto 15px;
    }
    
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    
    .error {
      padding: 30px;
      background: #fee;
      border-left: 4px solid #e33;
      border-radius: 8px;
      color: #c33;
    }
    
    /* Action Buttons */
    .actions {
      display: flex;
      gap: 15px;
      margin-bottom: 30px;
      flex-wrap: wrap;
    }

    /* Top Row Actions - 4 Equal Buttons */
    #actionButtons {
      display: flex;
      justify-content: center;
      gap: 10px;
      margin-bottom: 20px;
      flex-wrap: wrap;
    }

    #actionButtons .btn {
      width: 200px;
      flex: 0 0 200px;
      justify-content: center;
      padding: 20px 12px;
      font-size: 14px;
      line-height: 1.3;
    }
    
    .btn {
      padding: 14px 24px;
      border: none;
      border-radius: 8px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      text-decoration: none;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }
    
    .btn-primary {
      background: #4CAF50;
      color: white;
    }
    
    .btn-primary:hover {
      background: #45a049;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    }
    
    .btn-secondary {
      background: #2196F3;
      color: white;
    }
    
    .btn-secondary:hover {
      background: #0b7dda;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    }
    
    .btn-outline {
      background: white;
      color: #667eea;
      border: 2px solid #667eea;
    }
    
    .btn-outline:hover {
      background: #667eea;
      color: white;
    }

    .btn-edit {
      background: #FF9800;
      color: white;
    }

    .btn-edit:hover {
      background: #f57c00;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(255, 152, 0, 0.4);
    }
    
    /* Edit Sections */
    .edit-sections {
      border-top: 2px solid #f0f0f0;
      padding-top: 30px;
      margin-top: 30px;
    }
    
    .section-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 25px;
    }
    
    .section-header h2 {
      font-size: 22px;
      color: #333;
    }
    
    .section-header .badge {
      background: #667eea;
      color: white;
      padding: 4px 10px;
      border-radius: 12px;
      font-size: 12px;
      font-weight: 600;
    }
    
    .edit-option {
      background: #f9f9f9;
      border: 2px solid #e0e0e0;
      border-radius: 12px;
      margin-bottom: 15px;
      transition: all 0.3s;
    }
    
    .edit-option:hover {
      border-color: #667eea;
      box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    }
    
    .edit-option-header {
      padding: 20px;
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
      user-select: none;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }
    
    .edit-option-title {
      display: flex;
      align-items: center;
      gap: 12px;
      font-size: 18px;
      font-weight: 600;
    }
    
    .edit-option-icon {
      font-size: 24px;
    }
    
    .chevron {
      font-size: 20px;
      transition: transform 0.3s;
      color: #999;
    }
    
    .edit-option.expanded .chevron {
      transform: rotate(180deg);
    }
    
    .edit-option-content {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.3s ease;
      padding: 0 20px;
    }
    
    .edit-option.expanded .edit-option-content {
      max-height: 3000px;
      padding: 0 20px 20px;
    }
    
    .form-group {
      margin-bottom: 20px;
    }
    
    .form-group label {
      display: block;
      font-weight: 600;
      margin-bottom: 8px;
      color: #555;
      font-size: 14px;
    }

    .form-group .help-text {
      font-size: 13px;
      color: #777;
      font-weight: 400;
      margin-top: 4px;
    }
    
    .form-group select,
    .form-group input[type="number"],
    .form-group input[type="file"] {
      width: 100%;
      padding: 12px;
      border: 2px solid #e0e0e0;
      border-radius: 8px;
      font-size: 15px;
      transition: border-color 0.2s;
    }
    
    .form-group select:focus,
    .form-group input:focus {
      outline: none;
      border-color: #667eea;
    }
    
    .radio-group {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    
    .radio-option {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      padding: 12px;
      border: 2px solid #e0e0e0;
      border-radius: 8px;
      cursor: pointer;
      transition: all 0.2s;
    }
    
    .radio-option:hover {
      border-color: #2a5298;
      background: #f8f9ff;
    }
    
    .radio-option.selected {
      border-color: #2a5298;
      background: #f8f9ff;
    }
    
    .radio-option input[type="radio"] {
      width: 20px;
      height: 20px;
      cursor: pointer;
      margin-top: 0;
      flex-shrink: 0;
    }
    
    .radio-option-content {
      flex: 1;
    }
    
    .radio-option-label {
      font-weight: 600;
      display: inline-block;
      line-height: 20px;
      vertical-align: top;
    }
    
    .radio-option-desc {
      font-size: 13px;
      color: #666;
      display: block;
      margin-top: 4px;
    }
    
    .conditional-input {
      margin-top: 12px;
      padding: 12px;
      background: white;
      border-radius: 6px;
    }
    
    .placeholder {
      padding: 20px;
      background: #fff9e6;
      border: 2px dashed #ffd700;
      border-radius: 8px;
      text-align: center;
      color: #886600;
      font-style: italic;
    }

    .info-box {
      padding: 16px;
      background: #e3f2fd;
      border-left: 4px solid #2196F3;
      border-radius: 8px;
      margin-bottom: 20px;
      font-size: 14px;
      color: #1565c0;
    }

    .button-group {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .song-list {
      margin-bottom: 20px;
    }

    .song-item {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 12px;
      background: white;
      border: 2px solid #e0e0e0;
      border-radius: 8px;
      margin-bottom: 10px;
      transition: all 0.2s;
    }

    .song-item:hover {
      border-color: #667eea;
      box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
    }

    .song-item.new-upload {
      border-color: #4CAF50;
      background: #f1f8f4;
    }

    .song-item.library-song {
      border-color: #FF9800;
      background: #fff9f0;
    }

    .song-info {
      display: flex;
      align-items: center;
      gap: 12px;
      flex: 1;
      min-width: 0;
    }

    .song-position {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
      color: white;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 16px;
      flex-shrink: 0;
      transition: all 0.3s ease;
    }

    .song-item:hover .song-position {
      transform: scale(1.1);
      box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    }

    .song-name {
      font-weight: 600;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .song-badge {
      background: #4CAF50;
      color: white;
      padding: 2px 8px;
      border-radius: 4px;
      font-size: 11px;
      font-weight: 600;
    }

    .song-badge.library {
      background: #FF9800;
    }

    .song-controls {
      display: flex;
      gap: 6px;
      flex-shrink: 0;
    }

    .btn-small {
      padding: 6px 12px;
      font-size: 13px;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s;
      font-weight: 600;
    }

    .btn-play {
      background: #2196F3;
      color: white;
    }

    .btn-play:hover {
      background: #0b7dda;
    }

    .btn-play.playing {
      background: #FF9800;
    }

    .btn-move {
      background: #f5f5f5;
      color: #666;
      border: 1px solid #ddd;
    }

    .btn-move:hover {
      background: #e0e0e0;
    }

    .btn-move:disabled {
      opacity: 0.4;
      cursor: not-allowed;
    }

    .btn-danger {
      background: #f44336;
      color: white;
    }

    .btn-danger:hover {
      background: #d32f2f;
    }

    /* Song Library Styles */
    .library-section {
      background: #f0f7ff;
      border: 2px solid #2196F3;
      border-radius: 12px;
      padding: 20px;
      margin-bottom: 20px;
    }

    .library-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 15px;
      font-size: 16px;
      font-weight: 700;
      color: #2196F3;
    }

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

    .library-song-card {
      background: white;
      border: 2px solid #FFE0B2;
      border-radius: 10px;
      padding: 12px;
      transition: all 0.2s;
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .library-song-card:hover {
      border-color: #FF9800;
      box-shadow: 0 4px 12px rgba(255, 152, 0, 0.2);
      transform: translateY(-2px);
    }

    .library-song-card.added {
      border-color: #4CAF50;
      background: #f1f8f4;
    }

    .library-song-name {
      font-weight: 600;
      font-size: 14px;
      color: #333;
      line-height: 1.3;
    }

    .library-song-controls {
      display: flex;
      gap: 6px;
    }

    .btn-add-library {
      flex: 1;
      padding: 8px 12px;
      background: #FF9800;
      color: white;
      border: none;
      border-radius: 6px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }

    .btn-add-library:hover:not(:disabled) {
      background: #f57c00;
    }

    .btn-add-library:disabled {
      background: #ccc;
      cursor: not-allowed;
    }

    .btn-add-library.added {
      background: #4CAF50;
    }

    .upload-section {
      margin-top: 15px;
      padding: 15px;
      background: #f5f5f5;
      border-radius: 8px;
      border: 2px dashed #ccc;
    }

    .upload-section.max-reached {
      opacity: 0.6;
      pointer-events: none;
    }

    .upload-label {
      display: inline-block;
      padding: 10px 20px;
      background: #2a5298;
      color: white;
      border-radius: 6px;
      cursor: pointer;
      font-weight: 600;
      font-size: 14px;
      transition: all 0.2s;
    }

    .upload-label:hover {
      background: #5568d3;
      transform: translateY(-1px);
    }

    .upload-label.disabled {
      background: #ccc;
      cursor: not-allowed;
    }

    /* PowerPoint Upload Section */
    .pptx-upload-section {
      margin-top: 15px;
      padding: 20px;
      background: #fff9e6;
      border: 2px dashed #FF9800;
      border-radius: 8px;
    }

    .pptx-upload-section .upload-label {
      background: #FF9800;
      padding: 12px 24px;
      font-size: 15px;
    }

    .pptx-upload-section .upload-label:hover {
      background: #f57c00;
    }

    .pptx-file-preview {
      margin-top: 15px;
      padding: 12px;
      background: white;
      border: 2px solid #4CAF50;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .pptx-file-info {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .pptx-file-icon {
      font-size: 24px;
    }

    .pptx-file-details {
      display: flex;
      flex-direction: column;
    }

    .pptx-file-name {
      font-weight: 600;
      color: #333;
    }

    .pptx-file-size {
      font-size: 13px;
      color: #666;
    }

    /* Song Range Sliders */
    .song-ranges-container {
      margin-top: 15px;
    }

    .song-range-item {
      background: white;
      border: 2px solid #e0e0e0;
      border-radius: 8px;
      padding: 15px;
      margin-bottom: 12px;
    }

    .song-range-header {
      font-weight: 600;
      color: #2a5298;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .slide-inputs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
    }

    .slide-input-group {
      display: flex;
      flex-direction: column;
    }

    .slide-input-group label {
      font-size: 13px;
      font-weight: 600;
      color: #555;
      margin-bottom: 6px;
    }

    .slide-input-group input {
      padding: 10px;
      border: 2px solid #e0e0e0;
      border-radius: 6px;
      font-size: 14px;
    }

    .slide-input-group input:focus {
      outline: none;
      border-color: #2a5298;
    }
    
    /* Resubmit Button */
    .resubmit-section {
      margin-top: 30px;
      padding-top: 30px;
      border-top: 2px solid #f0f0f0;
      text-align: center;
    }
    
    .btn-resubmit {
      background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
      color: white;
      padding: 18px 40px;
      font-size: 18px;
      font-weight: 700;
      border: none;
      border-radius: 12px;
      cursor: pointer;
      transition: all 0.3s;
      box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
    }
    
    .btn-resubmit:hover:not(:disabled) {
      transform: translateY(-3px);
      box-shadow: 0 8px 25px rgba(30, 60, 114, 0.5);
    }
    
    .btn-resubmit:disabled {
      background: #ccc;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }
    
    /* Modal Overlay */
    .modal-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.6);
      z-index: 999;
      animation: fadeIn 0.3s;
    }

    .modal-overlay.show {
      display: flex;
      align-items: center;
      justify-content: center;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    /* Modal Container */
    .modal {
      background: white;
      border-radius: 16px;
      max-width: 600px;
      width: 90%;
      max-height: 90vh;
      overflow-y: auto;
      box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
      animation: slideUp 0.3s;
    }

    @keyframes slideUp {
      from { 
        opacity: 0;
        transform: translateY(30px);
      }
      to { 
        opacity: 1;
        transform: translateY(0);
      }
    }

    .modal-header {
      background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
      color: white;
      padding: 24px 30px;
      border-radius: 16px 16px 0 0;
      position: relative;
    }

    .modal-header.help-header {
      background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    }

    .modal-header.share-header {
      background: linear-gradient(135deg, #2196F3 0%, #0b7dda 100%);
    }
    
    .modal-header h2 {
      margin: 0 0 8px 0;
      font-size: 24px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .modal-header p {
      margin: 0;
      opacity: 0.95;
      font-size: 15px;
      line-height: 1.5;
    }

    .modal-close {
      position: absolute;
      top: 20px;
      right: 20px;
      background: rgba(255, 255, 255, 0.2);
      border: none;
      color: white;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      font-size: 24px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      transition: all 0.2s;
    }

    .modal-close:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: rotate(90deg);
    }

    .modal-body {
      padding: 30px;
    }

    .modal-form-group {
      margin-bottom: 20px;
    }

    .modal-form-group label {
      display: block;
      font-weight: 600;
      margin-bottom: 8px;
      color: #333;
      font-size: 14px;
    }

    .modal-form-group label .required {
      color: #f44336;
      margin-left: 2px;
    }

    .modal-form-group input {
      width: 100%;
      padding: 12px 16px;
      border: 2px solid #e0e0e0;
      border-radius: 8px;
      font-size: 15px;
      transition: border-color 0.2s;
      box-sizing: border-box;
    }

    .modal-form-group input:focus {
      outline: none;
      border-color: #4CAF50;
    }

    .modal-form-group input.error {
      border-color: #f44336;
    }

    .modal-form-row {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 15px;
    }

    .modal-info-box {
      background: #e3f2fd;
      border-left: 4px solid #2196F3;
      border-radius: 8px;
      padding: 16px;
      margin-bottom: 20px;
      font-size: 14px;
      color: #1565c0;
      line-height: 1.6;
    }

    .modal-footer {
      padding: 20px 30px 30px;
      display: flex;
      gap: 12px;
      justify-content: flex-end;
    }

    .modal-btn {
      padding: 12px 28px;
      border: none;
      border-radius: 8px;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
    }

    .modal-btn-primary {
      background: #4CAF50;
      color: white;
    }

    .modal-btn-primary:hover:not(:disabled) {
      background: #45a049;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
    }

    .modal-btn-primary:disabled {
      background: #ccc;
      cursor: not-allowed;
      transform: none;
    }

    .modal-btn-danger {
      background: #f44336;
      color: white;
    }

    .modal-btn-danger:hover:not(:disabled) {
      background: #d32f2f;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
    }

    .modal-btn-danger:disabled {
      background: #ccc;
      cursor: not-allowed;
      transform: none;
    }
    
    .modal-btn-secondary {
      background: #f5f5f5;
      color: #666;
      border: 2px solid #e0e0e0;
    }

    .modal-btn-secondary:hover {
      background: #e0e0e0;
    }

    .modal-btn-info {
      background: #2196F3;
      color: white;
    }

    .modal-btn-info:hover:not(:disabled) {
      background: #0b7dda;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
    }

    .modal-btn-info:disabled {
      background: #ccc;
      cursor: not-allowed;
      transform: none;
    }

    /* Share Recipients List */
    .recipients-list {
      margin-bottom: 20px;
    }

    .recipient-item {
      background: #f5f5f5;
      border: 2px solid #e0e0e0;
      border-radius: 8px;
      padding: 15px;
      margin-bottom: 12px;
      position: relative;
    }

    .recipient-item.last {
      border-color: #2196F3;
      background: #e3f2fd;
    }

    .recipient-number {
      position: absolute;
      top: 15px;
      left: 15px;
      width: 28px;
      height: 28px;
      background: linear-gradient(135deg, #2196F3 0%, #0b7dda 100%);
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 700;
      font-size: 14px;
    }

    .recipient-fields {
      margin-left: 40px;
    }

   .recipient-remove {
     position: absolute;
     top: 15px;
     right: 15px;
     background: #f44336;
     color: white;
     border: none;
     width: 28px;
     height: 28px;
     border-radius: 50%;
     cursor: pointer;
     font-size: 16px;
     display: flex;
     align-items: center;
     justify-content: center;
     transition: all 0.2s;
   }

   .recipient-remove:hover {
     background: #d32f2f;
     transform: scale(1.1);
   }

   .btn-add-recipient {
     width: 100%;
     padding: 12px;
     background: #f5f5f5;
     border: 2px dashed #2196F3;
     border-radius: 8px;
     color: #2196F3;
     font-weight: 600;
     font-size: 14px;
     cursor: pointer;
     transition: all 0.2s;
     display: flex;
     align-items: center;
     justify-content: center;
     gap: 8px;
   }

   .btn-add-recipient:hover {
     background: #e3f2fd;
     border-color: #0b7dda;
     color: #0b7dda;
   }

   /* Calculation Modal Specific Styles */
   .modal-header.calc-header {
     background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
   }

   .calc-result-item {
     display: flex;
     justify-content: space-between;
     align-items: center;
     padding: 16px;
     background: #f8f9ff;
     border-radius: 8px;
     margin-bottom: 16px;
     border: 2px solid #e0e0e0;
   }

   .calc-label {
     font-weight: 600;
     color: #555;
     font-size: 16px;
   }

   .calc-value {
     font-weight: 700;
     color: #2a5298;
     font-size: 20px;
   }

   .calc-summary {
     background: #f0f7ff;
     border-left: 4px solid #2196F3;
     border-radius: 8px;
     padding: 20px;
     margin-top: 20px;
     font-size: 15px;
     line-height: 1.6;
     color: #333;
   }

   .modal-btn-calc-primary {
     background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
     color: white;
     padding: 14px 24px;
     font-size: 16px;
     flex: 1;
   }

   .modal-btn-calc-primary:hover {
     transform: translateY(-2px);
     box-shadow: 0 6px 20px rgba(30, 60, 114, 0.4);
   }
    
    /* Notification Toast */
    .toast {
      position: fixed;
      bottom: 30px;
      right: 30px;
      padding: 16px 24px;
      background: #333;
      color: white;
      border-radius: 8px;
      box-shadow: 0 6px 20px rgba(0,0,0,0.3);
      opacity: 0;
      transform: translateY(20px);
      transition: all 0.3s;
      z-index: 1000;
      max-width: 400px;
    }
    
    .toast.show {
      opacity: 1;
      transform: translateY(0);
    }
    
    .toast.success {
      background: #4CAF50;
    }
    
    .toast.error {
      background: #f44336;
    }
    
    @media (max-width: 768px) {
      body {
        overflow-x: hidden;
        overflow-y: auto;
      }
      .container {
        overflow: visible !important;
        max-height: none !important;
      }
      .header h1 { font-size: 24px; }
      .actions { flex-direction: column; }
      .btn { width: 100%; justify-content: center; }
      #actionButtons .btn {
        width: 100% !important;
        flex: 1 1 100% !important;
        padding: 10px 14px !important;
        font-size: 12px !important;
        line-height: 1.3;
      }
      .library-section {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
      }
      .edit-option-content {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        max-height: 0 !important;
        overflow: hidden !important;
        padding: 0 20px !important;
        transition: max-height 0.3s ease, padding 0.3s ease !important;
      }
      .edit-option:not(.expanded) .edit-option-content {
        max-height: 0 !important;
        overflow: hidden !important;
        padding: 0 20px !important;
      }
      .edit-option.expanded .edit-option-content {
        max-height: 10000px !important;
        overflow: visible !important;
        padding: 0 20px 20px !important;
      }
      .library-section > div {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
      }
      #genreSelect {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
      }
      #visualPackage {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
      }
      .edit-option[data-section="transitions"] .edit-option-content {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
      }
      .edit-option[data-section="transitions"] .edit-option-content > div {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 20px !important;
        box-sizing: border-box !important;
      }
      .edit-option[data-section="transitions"] .edit-option-content > div > div {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
      }
      .edit-option[data-section="transitions"] .form-group {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
      }
      .edit-option[data-section="transitions"] .form-group label {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
      }
      .edit-option[data-section="transitions"] .form-group select {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
      }
      .edit-option[data-section="transitions"] .help-text {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
      }
      .toast { right: 20px; left: 20px; max-width: none; }
      .slide-inputs { grid-template-columns: 1fr; }
      .song-list {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
      }
      .song-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
      }
      .song-info {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        min-width: 0 !important;
        display: flex !important;
        box-sizing: border-box !important;
      }
      .song-controls {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 8px !important;
        flex-wrap: nowrap !important;
        box-sizing: border-box !important;
      }
      .song-controls .btn-small {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: none !important;
        box-sizing: border-box !important;
        text-align: center !important;
      }
      .library-grid { grid-template-columns: 1fr; }
    }

    /* Thank You Overlay */
    .thank-you-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: #f8f9fa;
      z-index: 2000;
      display: none;
      overflow-y: auto;
    }

    .thank-you-content {
      background: white;
      max-width: 600px;
      margin: 80px auto;
      padding: 50px;
      border-radius: 12px;
      box-shadow: 0 20px 40px rgba(0,0,0,0.1);
      text-align: center;
    }

    .thank-you-icon {
      width: 80px;
      height: 80px;
      background: #10b981;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 30px;
      font-size: 40px;
      color: white;
    }

    .thank-you-title {
      font-size: 32px;
      color: #2c3e50;
      margin-bottom: 20px;
      font-weight: 600;
    }

    .thank-you-message {
      font-size: 18px;
      color: #6c757d;
      line-height: 1.7;
      margin-bottom: 30px;
    }

    .thank-you-footer {
      font-size: 14px;
      color: #adb5bd;
      margin-top: 30px;
      padding-top: 20px;
      border-top: 1px solid #e9ecef;
    }

    .thank-you-footer {
      font-size: 14px;
      color: #adb5bd;
      margin-top: 30px;
      padding-top: 20px;
      border-top: 1px solid #e9ecef;
    }
    
    /* Music Terms Modal */
    .terms-modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0,0,0,0.85);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 3000;
    }

    .terms-modal-overlay.show {
      display: flex;
    }

    .terms-modal-content {
      background: white;
      border-radius: 16px;
      max-width: 600px;
      width: 90%;
      max-height: 80vh;
      overflow-y: auto;
      box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    }

    .terms-modal-header {
      background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
      color: white;
      padding: 24px;
      border-radius: 16px 16px 0 0;
      text-align: center;
    }

    .terms-modal-header h2 {
      font-size: 24px;
      margin: 0;
    }

    .terms-modal-body {
      padding: 30px;
      line-height: 1.8;
      color: #333;
      font-size: 15px;
    }

    .terms-modal-footer {
      padding: 20px 30px;
      display: flex;
      gap: 12px;
      border-top: 2px solid #f0f0f0;
    }

    .terms-btn {
      flex: 1;
      padding: 14px 24px;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.2s;
      font-family: inherit;
    }

    .terms-btn-cancel {
      background: #f44336;
      color: white;
    }

    .terms-btn-cancel:hover {
      background: #d32f2f;
    }

    .terms-btn-accept {
      background: #4CAF50;
      color: white;
    }

    .terms-btn-accept:hover {
      background: #45a049;
    }

    /* Loading Overlay Styles */
    .loading-overlay {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.7);
      z-index: 9999;
      align-items: center;
      justify-content: center;
    }

    .loading-overlay.show {
      display: flex;
    }

    .loading-content {
      text-align: center;
      color: white;
    }

    .spinner {
      border: 4px solid rgba(255, 255, 255, 0.3);
      border-top: 4px solid white;
      border-radius: 50%;
      width: 60px;
      height: 60px;
      animation: spin 1s linear infinite;
      margin: 0 auto 20px;
    }

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

    .loading-text {
      font-size: 24px;
      font-weight: 600;
      margin-bottom: 10px;
    }

    .loading-subtext {
      font-size: 16px;
      opacity: 0.9;
    }
    
