    /* CSS Reset and Base Styles */
    * {
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }

    html {
      font-size: 16px;
      -webkit-text-size-adjust: 100%;
      -ms-text-size-adjust: 100%;
    }

    body {
      font-family: 'Sarabun', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
      margin: 0;
      padding: 0;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: #333;
      height: 100vh;
      overflow: hidden;
      font-size: 16px;
      line-height: 1.5;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }

    /* Responsive Container */
    .app-container {
      display: flex;
      height: 100vh;
      flex-direction: row;
      position: relative;
    }

    /* Responsive Breakpoints */
    /* Mobile Portrait: 320px - 479px */
    @media (max-width: 479px) {
      html {
        font-size: 14px;
      }

      .app-container {
        flex-direction: column;
      }
    }

    /* Mobile Landscape: 480px - 767px */
    @media (min-width: 480px) and (max-width: 767px) {
      html {
        font-size: 15px;
      }

      .app-container {
        flex-direction: column;
      }
    }

    /* Tablet Portrait: 768px - 1023px */
    @media (min-width: 768px) and (max-width: 1023px) {
      html {
        font-size: 16px;
      }

      .app-container {
        flex-direction: row;
      }
    }

    /* Tablet Landscape & Desktop: 1024px+ */
    @media (min-width: 1024px) {
      html {
        font-size: 16px;
      }

      .app-container {
        flex-direction: row;
      }
    }

    /* Ultra-wide screens: 1440px+ */
    @media (min-width: 1440px) {
      html {
        font-size: 17px;
      }
    }

    /* Hide Projector Button on Mobile and Tablet Portrait/Landscape */
    @media (max-width: 1024px) {
      #btnProjector {
        display: none !important;
      }
    }

    /* Floating Page Counter */
    .floating-page-counter {
      position: absolute;
      bottom: 20px;
      left: 20px;
      color: rgba(255, 255, 255, 0.4);
      font-size: 1.2rem;
      font-weight: 500;
      z-index: 10;
      pointer-events: none;
      font-family: 'Sarabun', sans-serif;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    }

    /* Floating Buttons */
    .floating-btn {
      position: absolute;
      z-index: 20;
      background: rgba(255, 255, 255, 0.2);
      border: 2px solid rgba(255, 255, 255, 0.3);
      color: white;
      width: 50px;
      height: 50px;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.2rem;
      backdrop-filter: blur(10px);
      transition: all 0.3s ease;
      outline: none;
    }

    .floating-btn:hover {
      background: rgba(255, 255, 255, 0.3);
      transform: scale(1.1);
    }

    .floating-btn:disabled {
      opacity: 0.3;
      cursor: not-allowed;
      transform: none;
    }

    .btn-close {
      top: 20px;
      right: 20px;
    }

    .btn-prev {
      bottom: 20px;
      left: 80px;
      /* Offset from counter */
    }

    .btn-next {
      bottom: 20px;
      right: 20px;
    }

    /* Adjust for mobile */
    @media (max-width: 767px) {
      .floating-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
      }

      .btn-prev {
        left: 70px;
      }
    }

    /* Left Panel - Song Management */
    .left-panel {
      width: 380px;
      background: #fff;
      display: flex;
      flex-direction: column;
      box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
      min-width: 320px;
      position: relative;
      z-index: 10;
    }

    /* Desktop Large */
    @media (min-width: 1440px) {
      .left-panel {
        width: 420px;
      }
    }

    /* Desktop */
    @media (min-width: 1024px) and (max-width: 1439px) {
      .left-panel {
        width: 380px;
      }
    }

    /* Tablet Landscape */
    @media (min-width: 768px) and (max-width: 1023px) {
      .left-panel {
        width: 320px;
        min-width: 300px;
      }
    }

    /* Mobile Landscape */
    @media (min-width: 480px) and (max-width: 767px) {
      .left-panel {
        width: 100%;
        height: 45vh;
        min-height: 320px;
        max-height: 400px;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
      }
    }

    /* Mobile Portrait */
    @media (max-width: 479px) {
      .left-panel {
        width: 100%;
        height: 42vh;
        min-height: 300px;
        max-height: 380px;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
      }
    }

    .panel-header,
    .playlist-header {
      background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
      color: white;
      padding: 16px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      font-weight: 600;
      font-size: 16px;
      flex-shrink: 0;
      cursor: pointer;
      user-select: none;
    }

    .playlist-header {
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    }

    .header-title {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .drawer-icon {
      transition: transform 0.3s ease;
    }

    .drawer-content {
      display: none;
      flex-direction: column;
      overflow: hidden;
    }

    .drawer-content.active {
      display: flex;
      flex: 1;
      min-height: 0;
      /* Important for nested scroll */
    }

    @media (max-width: 480px) {
      .panel-header {
        padding: 12px 16px;
        font-size: 15px;
      }
    }

    .panel-header i {
      font-size: 18px;
    }

    .search-section {
      padding: 16px 20px;
      border-bottom: 1px solid #e5e7eb;
      flex-shrink: 0;
    }

    @media (max-width: 480px) {
      .search-section {
        padding: 12px 16px;
      }
    }

    .search-box {
      position: relative;
    }

    .search-box input {
      width: 100%;
      padding: 12px 16px 12px 40px;
      border: 2px solid #e5e7eb;
      border-radius: 25px;
      font-size: 14px;
      outline: none;
      transition: all 0.3s ease;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
    }

    @media (max-width: 480px) {
      .search-box input {
        padding: 10px 14px 10px 36px;
        font-size: 16px;
        /* Prevent zoom on iOS */
      }
    }

    .search-box input:focus {
      border-color: #4facfe;
      box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
    }

    .search-box i {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      color: #9ca3af;
    }

    .content-section {
      flex: 1;
      overflow-y: auto;
      padding: 16px 20px;
      -webkit-overflow-scrolling: touch;
    }

    @media (max-width: 480px) {
      .content-section {
        padding: 12px 16px;
      }
    }

    .section-title {
      font-size: 14px;
      font-weight: 600;
      color: #374151;
      margin: 0 0 12px 0;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .btn {
      padding: 0.625rem 1rem;
      /* 10px 16px */
      border: none;
      border-radius: 1.25rem;
      /* 20px */
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 0.875rem;
      /* 14px */
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      /* 8px */
      min-height: 2.75rem;
      /* 44px - Touch-friendly */
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
      text-decoration: none;
      white-space: nowrap;
      user-select: none;
      line-height: 1.2;
    }

    .btn:disabled {
      cursor: not-allowed;
      opacity: 0.6;
      pointer-events: none;
      background: #9ca3af !important;
      /* Force grey background */
      color: #e5e7eb !important;
      box-shadow: none !important;
      transform: none !important;
    }

    /* Responsive button sizing */
    @media (min-width: 1024px) {
      .btn {
        padding: 0.75rem 1.25rem;
        /* 12px 20px */
        font-size: 0.9375rem;
        /* 15px */
        min-height: 3rem;
        /* 48px */
      }
    }

    @media (max-width: 479px) {
      .btn {
        padding: 0.75rem 1.125rem;
        /* 12px 18px */
        font-size: 0.9375rem;
        /* 15px */
        min-height: 3rem;
        /* 48px */
        gap: 0.375rem;
        /* 6px */
      }
    }

    .btn-primary {
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
      color: white;
      width: 100%;
      justify-content: center;
      margin-bottom: 8px;
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
    }

    .btn-secondary {
      background: #f3f4f6;
      color: #374151;
      border: 1px solid #d1d5db;
    }

    .btn-secondary:hover {
      background: #e5e7eb;
    }

    .song-list {
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .song-item {
      padding: 12px 0;
      border-bottom: 1px solid #f3f4f6;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .song-item:last-child {
      border-bottom: none;
    }

    .song-icon {
      width: 36px;
      height: 36px;
      background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      flex-shrink: 0;
    }

    .song-info {
      flex: 1;
      min-width: 0;
    }

    .song-title {
      font-weight: 500;
      color: #111827;
      margin: 0 0 2px 0;
      font-size: 14px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .song-meta {
      font-size: 12px;
      color: #6b7280;
    }

    .song-actions {
      display: flex;
      gap: 4px;
    }

    .btn-icon {
      width: 28px;
      height: 28px;
      border: none;
      border-radius: 6px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s ease;
      -webkit-tap-highlight-color: transparent;
      touch-action: manipulation;
    }

    @media (max-width: 768px) {
      .btn-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
      }
    }

    @media (max-width: 480px) {
      .btn-icon {
        width: 40px;
        height: 40px;
      }
    }

    .btn-edit {
      background: #fef3c7;
      color: #d97706;
    }

    .btn-edit:hover {
      background: #fde68a;
    }

    .btn-delete {
      background: #fee2e2;
      color: #dc2626;
    }

    .btn-delete:hover {
      background: #fecaca;
    }

    /* Swipe animation states */
    .playlist-card.swipe-active .playlist-content {
      transform: translateX(-80px);
    }

    .playlist-card.swipe-active .playlist-delete-action {
      transform: translateX(-80px);
    }

    /* Playlist Section */


    .playlist-item {
      padding: 8px 12px;
      background: #f8fafc;
      border-radius: 8px;
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      gap: 8px;
      border-left: 3px solid #10b981;
    }

    .playlist-number {
      width: 20px;
      height: 20px;
      background: #10b981;
      color: white;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
      font-weight: 600;
      flex-shrink: 0;
    }

    .playlist-song-title {
      flex: 1;
      font-size: 13px;
      font-weight: 500;
      color: #374151;
    }

    /* Right Panel - Display */
    .right-panel {
      flex: 1;
      background: #000;
      position: relative;
      display: flex;
      flex-direction: column;
      min-height: 0;
      overflow: hidden;
    }

    /* Desktop Large */
    @media (min-width: 1440px) {
      .right-panel {
        min-height: 600px;
      }
    }

    /* Desktop */
    @media (min-width: 1024px) and (max-width: 1439px) {
      .right-panel {
        min-height: 500px;
      }
    }

    /* Tablet Landscape */
    @media (min-width: 768px) and (max-width: 1023px) {
      .right-panel {
        min-height: 400px;
        max-height: 70vh;
      }
    }

    /* Mobile Landscape */
    @media (min-width: 480px) and (max-width: 767px) {
      .right-panel {
        height: 55vh;
        min-height: 280px;
        max-height: 400px;
      }
    }

    /* Mobile Portrait */
    @media (max-width: 479px) {
      .right-panel {
        height: 58vh;
        min-height: 260px;
        max-height: 380px;
      }
    }

    .display-header {
      background: rgba(0, 0, 0, 0.8);
      color: white;
      padding: 16px 24px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      position: relative;
      z-index: 10;
      flex-shrink: 0;
    }

    @media (max-width: 768px) {
      .display-header {
        padding: 12px 16px;
        flex-wrap: wrap;
        gap: 8px;
      }
    }

    @media (max-width: 480px) {
      .display-header {
        padding: 10px 12px;
      }
    }

    .display-title {
      font-size: 18px;
      font-weight: 600;
      margin: 0;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    @media (max-width: 768px) {
      .display-title {
        font-size: 16px;
        width: 100%;
        margin-bottom: 8px;
      }
    }

    @media (max-width: 480px) {
      .display-title {
        font-size: 15px;
      }
    }

    .display-controls {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      align-items: center;
    }

    @media (max-width: 768px) {
      .display-controls {
        width: 100%;
        justify-content: flex-start;
        gap: 6px;
      }
    }

    @media (max-width: 480px) {
      .display-controls {
        gap: 4px;
      }
    }

    .control-btn {
      padding: 8px 12px;
      background: rgba(255, 255, 255, 0.1);
      border: 1px solid rgba(255, 255, 255, 0.2);
      color: white;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.3s ease;
      font-size: 12px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .control-btn:hover {
      background: rgba(255, 255, 255, 0.2);
    }

    .control-btn.active {
      background: #10b981;
      border-color: #10b981;
    }

    .slide-display {
      flex: 1;
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      background: #000 url('') center/cover no-repeat;
      overflow: hidden;
    }

    .slide-overlay {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, 0.4);
    }

    .slide-content {
      position: relative;
      z-index: 1;
      text-align: center;
      padding: 40px;
      max-width: 90%;
      color: white;
    }

    /* High-quality 2K image rendering in normal slide view */
    .slide-content img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      image-rendering: -webkit-optimize-contrast;
      image-rendering: crisp-edges;
      image-rendering: optimizeQuality;
      /* Hardware acceleration for smooth rendering */
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
      /* Smooth scaling for 2K images */
      -webkit-filter: blur(0);
      filter: blur(0);
    }

    @media (max-width: 768px) {
      .slide-content {
        padding: 20px;
        max-width: 95%;
      }
    }

    @media (max-width: 480px) {
      .slide-content {
        padding: 16px;
        max-width: 98%;
      }
    }

    .slide-song-title {
      font-size: 48px;
      font-weight: 700;
      margin: 0 0 24px 0;
      text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
      line-height: 1.2;
    }

    @media (max-width: 1024px) {
      .slide-song-title {
        font-size: 36px;
        margin: 0 0 20px 0;
      }
    }

    @media (max-width: 768px) {
      .slide-song-title {
        font-size: 28px;
        margin: 0 0 16px 0;
      }
    }

    @media (max-width: 480px) {
      .slide-song-title {
        font-size: 22px;
        margin: 0 0 12px 0;
      }
    }

    .slide-lyrics {
      font-size: 24px;
      line-height: 1.6;
      white-space: pre-wrap;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
      font-weight: 400;
    }

    @media (max-width: 1024px) {
      .slide-lyrics {
        font-size: 20px;
      }
    }

    @media (max-width: 768px) {
      .slide-lyrics {
        font-size: 16px;
        line-height: 1.5;
      }
    }

    @media (max-width: 480px) {
      .slide-lyrics {
        font-size: 14px;
        line-height: 1.4;
      }
    }

    .slide-placeholder {
      text-align: center;
      color: rgba(255, 255, 255, 0.6);
    }

    .slide-placeholder h2 {
      font-size: 32px;
      margin: 0 0 16px 0;
      font-weight: 300;
    }

    @media (max-width: 768px) {
      .slide-placeholder h2 {
        font-size: 24px;
        margin: 0 0 12px 0;
      }
    }

    @media (max-width: 480px) {
      .slide-placeholder h2 {
        font-size: 20px;
        margin: 0 0 10px 0;
      }
    }

    .slide-placeholder p {
      font-size: 16px;
      margin: 0;
    }

    @media (max-width: 768px) {
      .slide-placeholder p {
        font-size: 14px;
      }
    }

    @media (max-width: 480px) {
      .slide-placeholder p {
        font-size: 13px;
      }
    }

    /* Form Styles */
    .form-group {
      margin-bottom: 16px;
    }

    .form-label {
      display: block;
      font-size: 12px;
      font-weight: 500;
      color: #374151;
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 0.5px;
    }

    .form-input {
      width: 100%;
      padding: 10px 12px;
      border: 2px solid #e5e7eb;
      border-radius: 8px;
      font-size: 14px;
      outline: none;
      transition: all 0.3s ease;
      background: #fff;
      -webkit-appearance: none;
      -moz-appearance: none;
      appearance: none;
    }

    @media (max-width: 480px) {
      .form-input {
        padding: 12px 14px;
        font-size: 16px;
        /* Prevent zoom on iOS */
        border-radius: 10px;
      }
    }

    .form-input:focus {
      border-color: #4facfe;
      box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.1);
    }

    .form-textarea {
      resize: vertical;
      min-height: 80px;
      font-family: inherit;
    }

    .upload-result {
      font-size: 12px;
      color: #10b981;
      margin-top: 6px;
      padding: 6px 0;
    }

    /* Scrollbar */
    .content-section::-webkit-scrollbar {
      width: 6px;
    }

    .content-section::-webkit-scrollbar-track {
      background: #f1f5f9;
    }

    .content-section::-webkit-scrollbar-thumb {
      background: #cbd5e1;
      border-radius: 3px;
    }

    .content-section::-webkit-scrollbar-thumb:hover {
      background: #94a3b8;
    }

    /* Modal Styles */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      opacity: 0;
      visibility: hidden;
      transition: all 0.3s ease;
    }

    .modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .modal {
      background: white;
      border-radius: 12px;
      padding: 24px;
      width: 90%;
      max-width: 500px;
      max-height: 80vh;
      overflow-y: auto;
      transform: scale(0.9);
      transition: transform 0.3s ease;
      -webkit-overflow-scrolling: touch;
    }

    @media (max-width: 768px) {
      .modal {
        width: 95%;
        max-width: none;
        max-height: 85vh;
        padding: 20px;
        border-radius: 16px;
      }
    }

    @media (max-width: 480px) {
      .modal {
        width: 98%;
        max-height: 90vh;
        padding: 16px;
        margin: 10px;
      }
    }

    .modal-overlay.active .modal {
      transform: scale(1);
    }

    .modal-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 20px;
      padding-bottom: 16px;
      border-bottom: 1px solid #e5e7eb;
    }

    .modal-title {
      font-size: 18px;
      font-weight: 600;
      color: #111827;
      margin: 0;
    }

    .modal-close {
      background: none;
      border: none;
      font-size: 24px;
      color: #6b7280;
      cursor: pointer;
      padding: 4px;
      border-radius: 4px;
      transition: all 0.2s ease;
      min-width: 44px;
      min-height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      -webkit-tap-highlight-color: transparent;
    }

    @media (max-width: 480px) {
      .modal-close {
        min-width: 48px;
        min-height: 48px;
        font-size: 28px;
      }
    }

    .modal-close:hover {
      background: #f3f4f6;
      color: #374151;
    }

    .modal-body {
      margin-bottom: 20px;
    }

    .modal-footer {
      display: flex;
      gap: 12px;
      justify-content: flex-end;
      padding-top: 16px;
      border-top: 1px solid #e5e7eb;
      flex-wrap: wrap;
    }

    @media (max-width: 480px) {
      .modal-footer {
        flex-direction: column-reverse;
        gap: 8px;
      }

      .modal-footer .btn {
        width: 100%;
        justify-content: center;
      }
    }

    .btn-cancel {
      background: #f3f4f6;
      color: #374151;
      border: 1px solid #d1d5db;
    }

    .btn-cancel:hover {
      background: #e5e7eb;
    }

    .btn-success {
      background: #10b981;
      color: white;
    }

    .btn-success:hover {
      background: #059669;
    }

    .btn-info {
      background: #0ea5e9;
      color: white;
    }

    .btn-info:hover {
      background: #0284c7;
    }

    /* Playlist List Styles */
    .playlist-card {
      background: #f8fafc;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      padding: 0;
      margin-bottom: 8px;
      position: relative;
      overflow: hidden;
      transition: all 0.2s ease;
    }

    .playlist-content {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px;
      background: #f8fafc;
      position: relative;
      z-index: 2;
      transition: transform 0.3s ease;
    }

    .playlist-card:hover {
      background: #f1f5f9;
      border-color: #cbd5e1;
      cursor: pointer;
    }

    .playlist-card.active {
      background: #e6fffa;
      border-color: #10b981;
    }

    .playlist-icon {
      width: 40px;
      height: 40px;
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      flex-shrink: 0;
    }

    .playlist-info {
      flex: 1;
      min-width: 0;
    }

    .playlist-name {
      font-weight: 500;
      color: #111827;
      margin: 0 0 2px 0;
      font-size: 14px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .playlist-date {
      font-size: 12px;
      color: #6b7280;
    }

    .playlist-actions {
      display: flex;
      gap: 4px;
    }

    .playlist-delete-action {
      position: absolute;
      top: 0;
      right: 0;
      height: 100%;
      width: 80px;
      background: #ef4444;
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1;
    }

    .btn-delete-swipe {
      background: none;
      border: none;
      color: white;
      font-size: 14px;
      font-weight: 500;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      padding: 8px;
      width: 100%;
      height: 100%;
      -webkit-tap-highlight-color: transparent;
    }

    .btn-delete-swipe i {
      font-size: 16px;
    }

    /* Desktop/Mobile visibility classes */
    .desktop-only {
      display: inline-flex;
    }

    .mobile-only {
      display: none;
    }

    @media (max-width: 768px) {
      .desktop-only {
        display: none;
      }

      .mobile-only {
        display: flex;
      }
    }


    .song-selector {
      border: 1px solid #e5e7eb;
      border-radius: 8px;
      max-height: 200px;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }

    @media (max-width: 480px) {
      .song-selector {
        max-height: 150px;
      }
    }

    .song-option {
      padding: 8px 12px;
      border-bottom: 1px solid #f3f4f6;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 8px;
      transition: background 0.2s ease;
    }

    .song-option:hover {
      background: #f8fafc;
    }

    .song-option:last-child {
      border-bottom: none;
    }

    .song-option input[type="checkbox"] {
      width: auto;
      margin: 0;
    }

    /* Fullscreen Display Styles */
    .fullscreen-display {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: #000;
      z-index: 9999;
      display: none;
      flex-direction: column;
      color: white;
      font-family: 'Sarabun', sans-serif;
      overflow: hidden;
      touch-action: pan-y;
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
      text-rendering: optimizeLegibility;
    }

    .fullscreen-display.active {
      display: flex;
    }

    .fullscreen-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
      opacity: 0.2;
      z-index: 1;
      filter: blur(1px);
    }

    .fullscreen-content {
      position: relative;
      z-index: 2;
      display: flex;
      flex-direction: column;
      height: 100vh;
      padding: 20px;
      box-sizing: border-box;
      background: rgba(0, 0, 0, 0.3);
      backdrop-filter: blur(5px);
      cursor: pointer;
    }

    .fullscreen-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 30px;
      flex-shrink: 0;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .fullscreen-header.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .fullscreen-title {
      font-size: 2.5rem;
      font-weight: 600;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9), 2px 2px 4px rgba(0, 0, 0, 0.7);
      flex: 1;
      text-align: center;
      margin: 0 20px;
      font-family: 'Sarabun', sans-serif;
      letter-spacing: 0.5px;
      word-break: break-word;
      hyphens: auto;
      -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
    }

    .fullscreen-controls {
      display: flex;
      gap: 10px;
    }

    .fullscreen-btn {
      background: rgba(255, 255, 255, 0.2);
      border: 2px solid rgba(255, 255, 255, 0.3);
      color: white;
      padding: 12px 16px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 1.2rem;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
    }

    .fullscreen-btn:hover {
      background: rgba(255, 255, 255, 0.3);
      border-color: rgba(255, 255, 255, 0.5);
      transform: scale(1.1);
    }

    .fullscreen-lyrics {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      font-size: 1.8rem;
      line-height: 1.8;
      white-space: pre-wrap;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.9), 2px 2px 4px rgba(0, 0, 0, 0.7);
      padding: 0;
      overflow: hidden;
      /* max-height removed to allow flex to handle sizing */
      font-family: 'Sarabun', sans-serif;
      font-weight: 400;
      letter-spacing: 0.5px;
      word-break: break-word;
      hyphens: auto;
      -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3);
      cursor: default;
    }

    /* Fullscreen image mode - optimized for 2K images */
    .fullscreen-lyrics img {
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      border-radius: 0;
      image-rendering: auto;
      /* Ensure high-quality rendering */
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
    }

    /* Fullscreen text mode specific styling to match normal display */
    .fullscreen-lyrics:not(:has(img)) {
      display: block;
      text-align: left;
      padding: 40px 60px;
      overflow-y: auto;
      font-size: 1.6rem;
      line-height: 2.2;
      max-width: 1200px;
      margin: 0 auto;
    }

    /* For browsers that don't support :has() */
    .fullscreen-lyrics.text-mode {
      display: block !important;
      text-align: left !important;
      padding: 40px 60px !important;
      overflow-y: auto !important;
      font-size: 1.6rem !important;
      line-height: 2.2 !important;
      max-width: 1200px !important;
      margin: 0 auto !important;
    }

    .fullscreen-display.ui-hidden .fullscreen-lyrics {
      max-height: 100vh;
      padding: 0;
    }

    .fullscreen-display.ui-hidden .fullscreen-lyrics img {
      width: 100vw;
      height: 100vh;
      max-width: 100vw;
      max-height: 100vh;
      object-fit: contain;
    }

    .fullscreen-display.ui-hidden .fullscreen-lyrics.text-mode {
      padding: 60px 80px !important;
    }

    .fullscreen-navigation {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 20px 0;
      flex-shrink: 0;
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

    .fullscreen-navigation.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .nav-btn {
      background: rgba(255, 255, 255, 0.2);
      border: 2px solid rgba(255, 255, 255, 0.3);
      color: white;
      padding: 15px 20px;
      border-radius: 50px;
      cursor: pointer;
      font-size: 1.5rem;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
      min-width: 80px;
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .nav-btn:hover {
      background: rgba(255, 255, 255, 0.3);
      border-color: rgba(255, 255, 255, 0.5);
      transform: scale(1.05);
    }

    .nav-btn:disabled {
      opacity: 0.5;
      cursor: not-allowed;
      transform: none;
    }

    .song-indicator {
      background: rgba(255, 255, 255, 0.2);
      border: 2px solid rgba(255, 255, 255, 0.3);
      padding: 12px 24px;
      border-radius: 25px;
      font-size: 1.2rem;
      font-weight: 500;
      text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
      backdrop-filter: blur(10px);
    }

    /* Tablet Landscape Responsive */
    @media (min-width: 768px) and (max-width: 1023px) and (orientation: landscape) {
      .fullscreen-content {
        padding: 20px;
      }

      .fullscreen-title {
        font-size: 2rem;
      }

      .fullscreen-lyrics {
        font-size: 1.6rem;
        line-height: 1.6;
        padding: 20px;
      }

      .fullscreen-lyrics.text-mode {
        padding: 30px 25px !important;
        font-size: 1.4rem !important;
      }
    }

    /* Tablet Portrait Responsive */
    @media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
      .fullscreen-content {
        padding: 25px;
      }

      .fullscreen-title {
        font-size: 2.2rem;
      }

      .fullscreen-lyrics {
        font-size: 1.8rem;
        line-height: 1.6;
        padding: 25px;
      }

      .fullscreen-lyrics.text-mode {
        padding: 35px 30px !important;
        font-size: 1.6rem !important;
      }
    }

    /* Mobile Landscape Responsive */
    @media (min-width: 480px) and (max-width: 767px) and (orientation: landscape) {
      .fullscreen-content {
        padding: 12px;
      }

      .fullscreen-header {
        margin-bottom: 10px;
      }

      .fullscreen-title {
        font-size: 1.4rem;
      }

      .fullscreen-lyrics {
        font-size: 1.1rem;
        line-height: 1.5;
        padding: 12px;
        /* max-height removed */
      }

      .fullscreen-lyrics.text-mode {
        padding: 15px 12px !important;
        font-size: 1rem !important;
        line-height: 1.6 !important;
      }

      .fullscreen-navigation {
        padding: 8px 0;
      }

      .nav-btn {
        padding: 8px 12px;
        font-size: 1rem;
        min-width: 50px;
        height: 40px;
      }
    }

    /* Mobile Portrait Responsive */
    @media (max-width: 479px) and (orientation: portrait) {
      .fullscreen-content {
        padding: 10px;
      }

      .fullscreen-header {
        margin-bottom: 20px;
        flex-direction: column;
        gap: 15px;
      }

      .fullscreen-title {
        font-size: 1.5rem;
        margin: 0;
        order: 1;
      }

      .fullscreen-controls {
        order: 2;
      }

      .fullscreen-lyrics {
        font-size: 1.2rem;
        line-height: 1.5;
        padding: 10px;
        /* max-height removed */
      }

      .fullscreen-lyrics.text-mode {
        padding: 20px 15px !important;
        font-size: 1.1rem !important;
        line-height: 1.8 !important;
      }

      .nav-btn {
        padding: 10px 12px;
        font-size: 1rem;
        min-width: 50px;
        height: 44px;
      }

      .song-indicator {
        padding: 6px 12px;
        font-size: 0.9rem;
      }

      .fullscreen-btn {
        padding: 8px 10px;
        font-size: 0.9rem;
      }

      .fullscreen-navigation {
        padding: 15px 0;
      }
    }

    /* Landscape mobile optimization */
    @media (max-width: 768px) and (orientation: landscape) {
      .fullscreen-header {
        margin-bottom: 15px;
      }

      .fullscreen-title {
        font-size: 1.4rem;
      }

      .fullscreen-lyrics {
        font-size: 1.1rem;
        /* max-height removed */
      }

      .fullscreen-lyrics.text-mode {
        padding: 15px 10px !important;
        font-size: 1rem !important;
        line-height: 1.6 !important;
      }

      .fullscreen-navigation {
        padding: 10px 0;
      }
    }

    @media (max-width: 480px) {
      .fullscreen-title {
        font-size: 1.5rem;
      }

      .fullscreen-lyrics {
        font-size: 1.2rem;
        line-height: 1.5;
        letter-spacing: 0.2px;
      }

      .nav-btn {
        padding: 10px 12px;
        font-size: 1rem;
        min-width: 50px;
        height: 45px;
      }

      .song-indicator {
        padding: 6px 12px;
        font-size: 0.9rem;
      }
    }

    /* Touch gestures */
    .fullscreen-display {
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      user-select: none;
    }

    /* Touch Zone Indicators */
    .zone-indicator {
      position: absolute;
      top: 0;
      bottom: 0;
      z-index: 5;
      pointer-events: none;
      background: rgba(255, 255, 255, 0.1);
      opacity: 0;
      transition: opacity 0.2s ease;
    }

    .zone-indicator.active {
      animation: zoneFlash 0.3s ease-out forwards;
    }

    .zone-left {
      left: 0;
      width: 40%;
      background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    }

    .zone-center {
      left: 40%;
      width: 20%;
      background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    }

    .zone-right {
      right: 0;
      width: 40%;
      background: linear-gradient(-90deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    }

    @keyframes zoneFlash {
      0% {
        opacity: 0;
      }

      20% {
        opacity: 1;
      }

      100% {
        opacity: 0;
      }
    }

    /* Responsive Utility Classes */
    .container {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 1rem;
    }

    @media (min-width: 768px) {
      .container {
        padding: 0 1.5rem;
      }
    }

    @media (min-width: 1024px) {
      .container {
        padding: 0 2rem;
      }
    }

    /* Responsive Text Sizes */
    .text-xs {
      font-size: 0.75rem;
      line-height: 1rem;
    }

    .text-sm {
      font-size: 0.875rem;
      line-height: 1.25rem;
    }

    .text-base {
      font-size: 1rem;
      line-height: 1.5rem;
    }

    .text-lg {
      font-size: 1.125rem;
      line-height: 1.75rem;
    }

    .text-xl {
      font-size: 1.25rem;
      line-height: 1.75rem;
    }

    .text-2xl {
      font-size: 1.5rem;
      line-height: 2rem;
    }

    .text-3xl {
      font-size: 1.875rem;
      line-height: 2.25rem;
    }

    .text-4xl {
      font-size: 2.25rem;
      line-height: 2.5rem;
    }

    /* Responsive Spacing */
    .space-y-2>*+* {
      margin-top: 0.5rem;
    }

    .space-y-4>*+* {
      margin-top: 1rem;
    }

    .space-y-6>*+* {
      margin-top: 1.5rem;
    }

    .gap-2 {
      gap: 0.5rem;
    }

    .gap-4 {
      gap: 1rem;
    }

    .gap-6 {
      gap: 1.5rem;
    }

    /* Responsive Padding */
    .p-2 {
      padding: 0.5rem;
    }

    .p-4 {
      padding: 1rem;
    }

    .p-6 {
      padding: 1.5rem;
    }

    .p-8 {
      padding: 2rem;
    }

    .px-2 {
      padding-left: 0.5rem;
      padding-right: 0.5rem;
    }

    .px-4 {
      padding-left: 1rem;
      padding-right: 1rem;
    }

    .px-6 {
      padding-left: 1.5rem;
      padding-right: 1.5rem;
    }

    .py-2 {
      padding-top: 0.5rem;
      padding-bottom: 0.5rem;
    }

    .py-4 {
      padding-top: 1rem;
      padding-bottom: 1rem;
    }

    .py-6 {
      padding-top: 1.5rem;
      padding-bottom: 1.5rem;
    }

    /* Responsive Margins */
    .m-2 {
      margin: 0.5rem;
    }

    .m-4 {
      margin: 1rem;
    }

    .m-6 {
      margin: 1.5rem;
    }

    .mx-auto {
      margin-left: auto;
      margin-right: auto;
    }

    .mb-2 {
      margin-bottom: 0.5rem;
    }

    .mb-4 {
      margin-bottom: 1rem;
    }

    .mb-6 {
      margin-bottom: 1.5rem;
    }

    /* Responsive Display */
    .hidden {
      display: none;
    }

    .block {
      display: block;
    }

    .flex {
      display: flex;
    }

    .inline-flex {
      display: inline-flex;
    }

    .grid {
      display: grid;
    }

    /* Responsive Flex */
    .flex-col {
      flex-direction: column;
    }

    .flex-row {
      flex-direction: row;
    }

    .flex-wrap {
      flex-wrap: wrap;
    }

    .flex-nowrap {
      flex-wrap: nowrap;
    }

    .items-center {
      align-items: center;
    }

    .items-start {
      align-items: flex-start;
    }

    .items-end {
      align-items: flex-end;
    }

    .justify-center {
      justify-content: center;
    }

    .justify-between {
      justify-content: space-between;
    }

    .justify-around {
      justify-content: space-around;
    }

    .justify-start {
      justify-content: flex-start;
    }

    .justify-end {
      justify-content: flex-end;
    }

    .flex-1 {
      flex: 1 1 0%;
    }

    .flex-auto {
      flex: 1 1 auto;
    }

    .flex-none {
      flex: none;
    }

    /* Responsive Width */
    .w-full {
      width: 100%;
    }

    .w-auto {
      width: auto;
    }

    .w-fit {
      width: fit-content;
    }

    .max-w-xs {
      max-width: 20rem;
    }

    .max-w-sm {
      max-width: 24rem;
    }

    .max-w-md {
      max-width: 28rem;
    }

    .max-w-lg {
      max-width: 32rem;
    }

    .max-w-xl {
      max-width: 36rem;
    }

    .max-w-2xl {
      max-width: 42rem;
    }

    .max-w-4xl {
      max-width: 56rem;
    }

    .max-w-full {
      max-width: 100%;
    }

    /* Responsive Height */
    .h-auto {
      height: auto;
    }

    .h-full {
      height: 100%;
    }

    .min-h-screen {
      min-height: 100vh;
    }

    /* Mobile-first responsive utilities */
    @media (min-width: 480px) {
      .sm\\:block {
        display: block;
      }

      .sm\\:hidden {
        display: none;
      }

      .sm\\:flex {
        display: flex;
      }

      .sm\\:flex-row {
        flex-direction: row;
      }

      .sm\\:flex-col {
        flex-direction: column;
      }

      .sm\\:text-sm {
        font-size: 0.875rem;
        line-height: 1.25rem;
      }

      .sm\\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
      }

      .sm\\:text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem;
      }

      .sm\\:p-4 {
        padding: 1rem;
      }

      .sm\\:px-6 {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
      }

      .sm\\:py-4 {
        padding-top: 1rem;
        padding-bottom: 1rem;
      }
    }

    @media (min-width: 768px) {
      .md\\:block {
        display: block;
      }

      .md\\:hidden {
        display: none;
      }

      .md\\:flex {
        display: flex;
      }

      .md\\:flex-row {
        flex-direction: row;
      }

      .md\\:flex-col {
        flex-direction: column;
      }

      .md\\:text-base {
        font-size: 1rem;
        line-height: 1.5rem;
      }

      .md\\:text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem;
      }

      .md\\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
      }

      .md\\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
      }

      .md\\:p-6 {
        padding: 1.5rem;
      }

      .md\\:px-8 {
        padding-left: 2rem;
        padding-right: 2rem;
      }

      .md\\:py-6 {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
      }
    }

    @media (min-width: 1024px) {
      .lg\\:block {
        display: block;
      }

      .lg\\:hidden {
        display: none;
      }

      .lg\\:flex {
        display: flex;
      }

      .lg\\:flex-row {
        flex-direction: row;
      }

      .lg\\:flex-col {
        flex-direction: column;
      }

      .lg\\:text-lg {
        font-size: 1.125rem;
        line-height: 1.75rem;
      }

      .lg\\:text-xl {
        font-size: 1.25rem;
        line-height: 1.75rem;
      }

      .lg\\:text-2xl {
        font-size: 1.5rem;
        line-height: 2rem;
      }

      .lg\\:text-3xl {
        font-size: 1.875rem;
        line-height: 2.25rem;
      }

      .lg\\:p-8 {
        padding: 2rem;
      }

      .lg\\:px-10 {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
      }

      .lg\\:py-8 {
        padding-top: 2rem;
        padding-bottom: 2rem;
      }
    }

    /* Image Zoom Modal */
    .image-zoom-modal {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.95);
      z-index: 10000;
      display: none;
      align-items: center;
      justify-content: center;
    }

    .image-zoom-modal.active {
      display: flex;
    }

    .zoom-overlay {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      cursor: pointer;
    }

    .zoom-container {
      position: relative;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .zoom-close {
      position: absolute;
      top: 20px;
      right: 20px;
      background: rgba(255, 255, 255, 0.2);
      border: 2px solid rgba(255, 255, 255, 0.3);
      color: white;
      padding: 12px 16px;
      border-radius: 50%;
      cursor: pointer;
      font-size: 1.2rem;
      z-index: 10001;
      transition: all 0.3s ease;
      backdrop-filter: blur(10px);
    }

    .zoom-close:hover {
      background: rgba(255, 255, 255, 0.3);
      border-color: rgba(255, 255, 255, 0.5);
      transform: scale(1.1);
    }

    .zoom-content {
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      touch-action: pan-x pan-y pinch-zoom;
    }

    .zoom-content img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
      cursor: grab;
      transition: none;
      user-select: none;
      -webkit-user-select: none;
      -moz-user-select: none;
      -ms-user-select: none;
      transform-origin: center center;
      /* Optimized rendering for 2K images in zoom */
      image-rendering: -webkit-optimize-contrast;
      image-rendering: crisp-edges;
      image-rendering: optimizeQuality;
      -webkit-backface-visibility: hidden;
      backface-visibility: hidden;
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
      /* Prevent blur during zoom */
      -webkit-filter: blur(0);
      filter: blur(0);
    }

    .zoom-content img:active {
      cursor: grabbing;
    }

    /* Mobile zoom styles */
    @media (max-width: 768px) {
      .zoom-close {
        top: 10px;
        right: 10px;
        padding: 10px 12px;
        font-size: 1rem;
      }

      .zoom-content {
        touch-action: manipulation;
      }

      .zoom-content img {
        max-width: 95%;
        max-height: 95%;
      }
    }

    /* Hide scrollbar in fullscreen */
    .fullscreen-lyrics::-webkit-scrollbar {
      display: none;
    }

    .fullscreen-lyrics {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }

    /* Success button style */
    .btn-success {
      background: linear-gradient(135deg, #10b981 0%, #059669 100%);
      color: white;
      border: none;
    }

    .btn-success:hover {
      background: linear-gradient(135deg, #059669 0%, #047857 100%);
      transform: translateY(-1px);
    }

    /* Playlist song reorder buttons */
    .song-reorder-controls {
      display: flex;
      flex-direction: column;
      gap: 2px;
      margin-left: 8px;
    }

    .btn-reorder {
      background: rgba(59, 130, 246, 0.1);
      border: 1px solid rgba(59, 130, 246, 0.3);
      color: #3b82f6;
      padding: 2px 6px;
      border-radius: 4px;
      cursor: pointer;
      font-size: 10px;
      transition: all 0.2s ease;
      width: 20px;
      height: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .btn-reorder:hover {
      background: rgba(59, 130, 246, 0.2);
      border-color: rgba(59, 130, 246, 0.5);
      transform: scale(1.1);
    }

    .btn-reorder:disabled {
      opacity: 0.3;
      cursor: not-allowed;
      transform: none;
    }

    .btn-reorder:disabled:hover {
      background: rgba(59, 130, 246, 0.1);
      border-color: rgba(59, 130, 246, 0.3);
      transform: none;
    }

    .playlist-song-item {
      display: flex;
      align-items: center;
      padding: 8px 12px;
      border-bottom: 1px solid #e5e7eb;
      background: white;
      transition: background-color 0.2s ease;
    }

    .playlist-song-item:hover {
      background: #f8fafc;
    }

    .playlist-song-item:last-child {
      border-bottom: none;
    }

    .playlist-song-info {
      flex: 1;
      margin-right: 8px;
    }

    .playlist-song-title {
      font-weight: 500;
      color: #1f2937;
      font-size: 14px;
      margin-bottom: 2px;
    }

    .playlist-song-position {
      font-size: 12px;
      color: #6b7280;
    }