  /* Minimal reset so it doesn't interfere with host page */
    .fyw-root { all: initial; }

    /* Floating container */
    .fyw-container {
      position: fixed;
      right: 20px;
      bottom: 20px;
      width: 500px;
      height: 303px; /* 16:9 */
      min-width: 200px;
      min-height: 120px;
      background: rgba(12,12,12,0.95);
      border-radius: 10px;
      box-shadow: 0 10px 30px rgba(0,0,0,0.45);
      z-index: 999999; /* very high so it won't be overlapped */
      overflow: hidden;
      resize: both; /* allow user resize */
      display: flex;
      flex-direction: column;
      user-select: none;
      touch-action: none;
    }

    /* Header (drag handle) */
    .fyw-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 6px 8px;
      background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.05));
      cursor: move; /* indicates draggable */
      flex: 0 0 32px;
    }

    .fyw-title {
      font: 600 13px/1.1 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
      color: #fff;
      margin-left: 6px;
    }

    .fyw-controls {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .fyw-btn {
      background: transparent;
      border: none;
      color: #fff;
      width: 28px;
      height: 28px;
      display: inline-grid;
      place-items: center;
      border-radius: 6px;
      cursor: pointer;
      font-size: 14px;
      z-index: 2;
    }

    .fyw-btn:focus { outline: 2px solid rgba(255,255,255,0.12); }

    .fyw-content {
      position: relative;
      flex: 1 1 auto;
      background: #000;
      min-height: 0; /* for flexbox */
    }

    .fyw-iframe {
      position: absolute;
      left: 0; top: 0; width: 100%; height: 100%; border: 0;
      display: block;
    }

    /* small handle for accessibility */
    .fyw-handle { width: 8px; height: 8px; }

    /* Previously this disabled pointer-events for the whole container while dragging
       which caused header buttons to not receive clicks. We now only change cursor. */
    .fyw-dragging { cursor: grabbing; }

    /* make the close button red-ish */
    .fyw-close { color: #fff; background: rgba(255,0,0,0.12); }