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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f6f7f9;
    min-height: 100vh;
    padding: 20px;
    color: #1f2328;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 10px;
    border: 1px solid #e6e8eb;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 28px;
}

.header {
    margin-bottom: 30px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 0;
}

.subtitle {
    color: #666;
    font-size: 14px;
}

.admin-icon-link {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #111;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e6e8eb;
    transition: background 0.2s, border-color 0.2s;
    font-size: 18px;
    line-height: 1;
}

.admin-icon-link:hover {
    background: #fff;
    border-color: #d0d7de;
}

.platform-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
}

.platform-card {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.platform-card:hover {
    border-color: #d0d7de;
    background: #f6f8fa;
}

.platform-card.active {
    border-color: #111;
    background: #111;
    color: #fff;
}

.platform-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.platform-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.platform-name {
    font-weight: 500;
    font-size: 13px;
    flex: 1;
    text-align: left;
}

.platform-status {
    font-size: 11px;
    opacity: 0.8;
    display: none;
}

.upload-area {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 48px 28px;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    margin-bottom: 20px;
}

.upload-area:hover {
    border-color: #d0d7de;
    background: #f6f8fa;
}

.upload-area.dragover {
    border-color: #111;
    background: #f6f8fa;
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

input[type="file"] {
    display: none;
}

.preview {
    margin-top: 20px;
    display: none;
}

.preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.btn {
    width: 100%;
    padding: 14px;
    background: #111;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
}

.btn:hover {
    background: #222;
}

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

.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #111;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    display: none;
}

.result.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.result.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.result-title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 16px;
}

.url-box {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.url-box input {
    flex: 1;
    padding: 10px;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 14px;
    font-family: monospace;
}

.copy-btn {
    padding: 10px 20px;
    background: #0b5fff;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #0a56e6;
}

.result-info {
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.9;
}
