/* Mobile YouTube Modal Styles */
@media only screen and (max-width: 768px) {
  .youtube-modal-overlay {
    position: fixed !important;
    width: 100vw !important;
    height: 100vh !important;
    left: 0 !important;
    top: 0 !important;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    justify-content: center !important;
    align-items: center !important;
    z-index: 2147483647 !important;
    display: none !important;
    overflow: hidden;
    transition:
      background 0.3s ease,
      backdrop-filter 0.3s ease,
      -webkit-backdrop-filter 0.3s ease;
  }

  .youtube-modal-overlay.active {
    display: flex !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
  }

  body.youtube-modal-active {
    overflow: hidden !important;
  }

  .youtube-modal {
    box-sizing: border-box;
    position: relative !important;
    background: #000000 !important;
    border-radius: 12px;
    overflow: hidden;
    width: calc(100vw - 32px) !important;
    height: calc((100vw - 32px) * 9 / 16) !important;
    max-width: 100% !important;
    max-height: 60vh !important;
    animation: modalSlideIn 0.3s ease-out;
  }

  .youtube-modal-header {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 10;
  }

  .youtube-modal-close {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #ffffff;
    transition: background 0.2s ease;
    border-radius: 50%;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  .youtube-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
  }

  .youtube-modal-content {
    width: 100% !important;
    height: 100% !important;
  }

  .youtube-video-wrapper {
    width: 100% !important;
    height: 100% !important;
    position: relative;
  }

  .youtube-video-wrapper iframe {
    border-radius: 12px;
    width: 100% !important;
    height: 100% !important;
  }

  @keyframes modalSlideIn {
    from {
      opacity: 0;
      transform: scale(0.95);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
}
