    #gif_rotator_core_wrapper * { box-sizing: border-box; }
    #gif_rotator_upload_zone {
      width: 100%;
      height: 180px;
      border: 2px dashed #ccc;
      border-radius: 8px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: border-color 0.3s, background 0.3s;
      background: #fafafa;
    }
    #gif_rotator_upload_zone:hover, #gif_rotator_upload_zone.dragover {
      border-color: #4a90d9;
      background: #f0f7ff;
    }
    #gif_rotator_upload_zone_icon {
      font-size: 48px;
      color: #bbb;
      margin-bottom: 10px;
    }
    #gif_rotator_upload_zone_text {
      color: #888;
      font-size: 14px;
    }
    #gif_rotator_upload_zone_hint {
      color: #aaa;
      font-size: 12px;
      margin-top: 5px;
    }
    #gif_rotator_controls {
      display: none;
      margin-top: 20px;
      padding: 15px;
      border: 1px solid #e0e0e0;
      border-radius: 6px;
      background: #fff;
    }
    #gif_rotator_controls.show { display: block; }
    #gif_rotator_direction_label {
      font-size: 14px;
      color: #555;
      margin-right: 15px;
      display: block;
      margin-bottom: 10px;
    }
    #gif_rotator_direction_group {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
    }
    .gif_rotator_dir_btn {
      padding: 8px 12px;
      border: 1px solid #ccc;
      border-radius: 4px;
      background: #fff;
      cursor: pointer;
      font-size: 13px;
      transition: all 0.2s;
    }
    .gif_rotator_dir_btn:hover {
      border-color: #4a90d9;
      color: #4a90d9;
    }
    .gif_rotator_dir_btn.selected {
      border-color: #4a90d9;
      background: #4a90d9;
      color: #fff;
    }
    .gif_rotator_dir_btn:first-child {
      cursor: default;
      color: #999;
      border-color: #ddd;
      background: #f9f9f9;
    }
    .gif_rotator_dir_btn:first-child:hover {
      border-color: #ddd;
      color: #999;
    }
    #gif_rotator_btn_group {
      margin-top: 15px;
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }
    #gif_rotator_rotate_btn {
      padding: 10px 24px;
      border: 1px solid #5cb85c;
      border-radius: 4px;
      background: #5cb85c;
      color: #fff;
      cursor: pointer;
      font-size: 14px;
      transition: all 0.2s;
    }
    #gif_rotator_rotate_btn:hover {
      background: #4cae4c;
    }
    #gif_rotator_rotate_btn:disabled {
      background: #ccc;
      border-color: #ccc;
      cursor: not-allowed;
    }
    #gif_rotator_download_all {
      display: none;
      padding: 10px 24px;
      border: 1px solid #4a90d9;
      border-radius: 4px;
      background: #4a90d9;
      color: #fff;
      cursor: pointer;
      font-size: 14px;
      transition: all 0.2s;
    }
    #gif_rotator_download_all:hover {
      background: #3a7bc8;
    }
    #gif_rotator_download_all.show { display: inline-block; }
    #gif_rotator_preview_area {
      margin-top: 20px;
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
    }
    .gif_rotator_preview_item {
      display: inline-block;
      margin: 10px;
      padding: 10px;
      border: 1px solid #e0e0e0;
      border-radius: 6px;
      background: #fff;
      text-align: center;
    }
    .gif_rotator_preview_img {
      max-width: 200px;
      max-height: 200px;
      display: block;
      margin: 0 auto 10px;
    }
    .gif_rotator_preview_name {
      font-size: 12px;
      color: #666;
      margin-bottom: 8px;
      max-width: 200px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .gif_rotator_download_btn {
      padding: 6px 16px;
      border: 1px solid #4a90d9;
      border-radius: 4px;
      background: #fff;
      color: #4a90d9;
      cursor: pointer;
      font-size: 12px;
      transition: all 0.2s;
    }
    .gif_rotator_download_btn:hover {
      background: #4a90d9;
      color: #fff;
    }
    #gif_rotator_loading {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(255,255,255,0.8);
      z-index: 9999;
      align-items: center;
      justify-content: center;
      flex-direction: column;
    }
    #gif_rotator_loading.show { display: flex; }
    #gif_rotator_loading_spinner {
      width: 50px;
      height: 50px;
      border: 3px solid #e0e0e0;
      border-top-color: #4a90d9;
      border-radius: 50%;
      animation: gif_rotator_spin 1s linear infinite;
    }
    @keyframes gif_rotator_spin { to { transform: rotate(360deg); } }
    #gif_rotator_loading_text {
      margin-top: 15px;
      color: #666;
      font-size: 14px;
    }
    #gif_rotator_description {
      margin-top: 30px;
      padding: 20px;
      border: 1px solid #e0e0e0;
      border-radius: 8px;
      background: #fafafa;
      font-size: 14px;
      line-height: 1.8;
      color: #555;
    }
    #gif_rotator_description h3 {
      margin: 0 0 15px 0;
      font-size: 16px;
      color: #333;
      border-bottom: 1px solid #e0e0e0;
      padding-bottom: 10px;
    }
    #gif_rotator_description p {
      margin: 10px 0;
    }
    #gif_rotator_description ul {
      margin: 10px 0;
      padding-left: 20px;
    }
    #gif_rotator_description li {
      margin: 5px 0;
    }
    
    @media (max-width: 600px) {
      #gif_rotator_upload_zone {
        height: 150px;
      }
      #gif_rotator_upload_zone_icon {
        font-size: 36px;
      }
      #gif_rotator_upload_zone_text {
        font-size: 13px;
        padding: 0 20px;
        text-align: center;
      }
      #gif_rotator_controls {
        padding: 12px;
      }
      #gif_rotator_direction_label {
        font-size: 13px;
      }
      .gif_rotator_dir_btn {
        padding: 8px 10px;
        font-size: 12px;
      }
      #gif_rotator_btn_group {
        flex-direction: column;
      }
      #gif_rotator_rotate_btn,
      #gif_rotator_download_all {
        width: 100%;
        padding: 12px 24px;
      }
      .gif_rotator_preview_item {
        margin: 8px;
        padding: 8px;
      }
      .gif_rotator_preview_img {
        max-width: 150px;
        max-height: 150px;
      }
      .gif_rotator_preview_name {
        max-width: 150px;
        font-size: 11px;
      }
    }