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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
}

* {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-text-size-adjust: 100%;
    box-sizing: border-box;
}

input, textarea, button, select, a {
    -webkit-tap-highlight-color: rgba(102, 126, 234, 0.15);
    touch-action: manipulation;
}

header {
    text-align: center;
    color: white;
    padding: 40px 20px;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 10px;
}

.platforms {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.platform-tag {
    background: rgba(255,255,255,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

.main-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    margin-top: 30px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-wrapper {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

input[type="text"] {
    flex: 1;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    outline: none;
}

input[type="text"]:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102,126,234,0.1);
}

input[type="text"]::placeholder {
    color: #999;
}

button {
    padding: 18px 35px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102,126,234,0.4);
}

button:active {
    transform: translateY(0);
}

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

.loading-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#result {
    margin-top: 30px;
    display: none;
}

.result-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 25px;
    border-left: 4px solid #667eea;
}

.result-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.success-icon {
    color: #28a745;
    font-size: 1.4rem;
}

.video-info {
    margin-bottom: 20px;
}

.video-title {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    word-break: break-all;
    margin-bottom: 10px;
}

.author-info {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.download-section {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.download-btn {
    flex: 1;
    min-width: 150px;
    padding: 14px 24px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.download-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40,167,69,0.3);
}

.download-btn.music {
    background: #e83e8c;
}

.download-btn.music:hover {
    background: #d61a7d;
    box-shadow: 0 5px 15px rgba(232,62,140,0.3);
}

.video-preview {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #f0f0f0;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.video-player-wrapper {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    position: relative;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    max-width: 100%;
}

.video-player {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 400px;
    display: block;
    background: #000;
    object-fit: contain;
}

.video-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 5;
    transition: opacity 0.4s ease;
}

.video-cover.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-player-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 3rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 10;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.video-player-wrapper:hover .video-player-overlay {
    opacity: 0.7;
}

.player-controls-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 8px 15px;
    font-size: 0.85rem;
    color: white;
    text-align: center;
    font-weight: 500;
}

.video-error-fallback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #666;
    z-index: 10;
}

.video-error-fallback .error-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.video-error-fallback .error-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.video-error-fallback .error-hint {
    font-size: 0.9rem;
    color: #666;
}

.author-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
}

.author-details {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: #333;
    font-size: 1rem;
    margin-bottom: 4px;
}

.author-stats {
    font-size: 0.85rem;
    color: #666;
}

.video-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 15px;
    padding: 15px;
    background: #fff9e6;
    border-radius: 10px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ff6b35;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 4px;
}

.video-meta {
    margin-top: 15px;
    padding: 12px 15px;
    background: #e7f3ff;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #0066cc;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.quality-options {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.quality-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.quality-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.quality-item {
    display: block;
    padding: 10px 15px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-align: center;
}

.quality-item:hover {
    border-color: #667eea;
    background: #e7f1ff;
    transform: translateY(-2px);
}

.image-gallery {
    margin-top: 25px;
    display: none;
}

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

.gallery-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-count {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.gallery-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-btn {
    padding: 8px 16px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.gallery-btn:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40,167,69,0.3);
}

.gallery-btn.batch-download {
    background: #17a2b8;
}

.gallery-btn.batch-download:hover {
    background: #138496;
    box-shadow: 0 4px 12px rgba(23,162,184,0.3);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #f0f0f0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-item:hover img {
    transform: scale(1.05);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
}

.image-item:hover .image-overlay {
    opacity: 1;
}

.image-index {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.live-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
}

.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

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

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.modal-video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.modal-controls {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.modal-btn {
    padding: 10px 20px;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav:hover {
    background: rgba(255,255,255,0.35);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-info {
    color: white;
    text-align: center;
    margin-top: 12px;
    font-size: 0.95rem;
}
 
.error-message {
    background: #fff3cd;
    color: #856404;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #ffc107;
    margin-top: 20px;
    display: none;
}

.history-section {
    margin-top: 25px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e8e8e8;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

#result .history-section {
    background: linear-gradient(135deg, #e7f3ff 0%, #f8f9fa 100%);
    border: 2px solid #667eea30;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.history-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.clear-history-btn {
    padding: 6px 14px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.clear-history-btn:hover {
    background: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(220,53,69,0.3);
}

.history-list {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f0f0f0;
}

.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-list::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.history-list::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.empty-history {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

.empty-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.6;
}

.empty-history p {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: #666;
}

.empty-history span {
    font-size: 0.85rem;
    color: #999;
}

.history-item {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.history-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102,126,234,0.15);
    transform: translateX(3px);
}

.history-item:last-child {
    margin-bottom: 0;
}

.history-item-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.history-text {
    flex: 1;
    min-width: 0;
}

.history-url {
    color: #333;
    font-size: 0.9rem;
    line-height: 1.5;
    word-break: break-all;
    margin-bottom: 6px;
    font-weight: 500;
}

.history-original {
    color: #666;
    font-size: 0.82rem;
    line-height: 1.4;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.85;
}

.history-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.history-time {
    font-size: 0.78rem;
    color: #999;
    white-space: nowrap;
}

.history-delete {
    width: 28px;
    height: 28px;
    background: transparent;
    border: 1px solid #dc3545;
    border-radius: 50%;
    color: #dc3545;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.history-item:hover .history-delete {
    opacity: 1;
}

.history-delete:hover {
    background: #dc3545;
    color: white;
}

.history-detail-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e9ecef;
    display: none;
}

.history-item.expanded .history-detail-section {
    display: block;
}

.history-video-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    word-break: break-all;
}

.history-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.history-info-item {
    background: #f8f9fa;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.history-info-label {
    color: #667eea;
    font-weight: 600;
    flex-shrink: 0;
}

.history-info-value {
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-author-info {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff9e6;
    padding: 8px 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.history-author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #667eea;
    flex-shrink: 0;
}

.history-author-details {
    flex: 1;
    min-width: 0;
}

.history-author-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-author-stats {
    font-size: 0.72rem;
    color: #666;
    margin-top: 2px;
}

.history-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 10px;
}

.history-stat-item {
    text-align: center;
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 6px 4px;
    border-radius: 6px;
}

.history-stat-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #667eea;
}

.history-stat-label {
    font-size: 0.68rem;
    color: #666;
    margin-top: 2px;
}

.history-expand-btn {
    width: 100%;
    padding: 6px 10px;
    background: transparent;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    color: #667eea;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.history-expand-btn:hover {
    background: #667eea10;
    border-color: #667eea;
}

.history-item.expanded .history-expand-btn::after {
    content: '▲';
}

.history-expand-btn::after {
    content: '▼';
}

.tutorial-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.25);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 25px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.tutorial-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.tutorial-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
    overflow-y: auto;
}

.tutorial-modal.active {
    display: flex;
}

.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.tutorial-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: tutorialSlideIn 0.3s ease-out;
}

@keyframes tutorialSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tutorial-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.tutorial-close:hover {
    background: #dc3545;
    color: white;
    transform: rotate(90deg);
}

.tutorial-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 30px 25px;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

.tutorial-header h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-weight: 700;
}

.tutorial-header p {
    opacity: 0.95;
    font-size: 1rem;
}

.tutorial-tabs {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    background: #f8f9fa;
    margin: 0;
    padding: 0 20px;
}

.tutorial-tab {
    flex: 1;
    padding: 16px 12px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    bottom: -2px;
}

.tutorial-tab:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tutorial-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: white;
}

.tutorial-body {
    padding: 25px 30px;
}

.tutorial-panel {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tutorial-panel.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.quick-steps {
    margin-bottom: 30px;
}

.step-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 15px;
    border-left: 4px solid #667eea;
}

.step-number {
    font-size: 2rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.15rem;
    color: #333;
    margin-bottom: 8px;
    font-weight: 600;
}

.step-content p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.step-tip {
    background: #e7f3ff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.88rem;
    color: #0066cc;
    margin-top: 10px;
    border-left: 3px solid #0066cc;
}

.step-example {
    background: #fff9e6;
    padding: 12px 14px;
    border-radius: 8px;
    margin-top: 10px;
    font-size: 0.88rem;
    color: #856404;
}

.step-example code {
    display: block;
    background: white;
    padding: 6px 10px;
    border-radius: 5px;
    margin-top: 6px;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

.step-arrow {
    text-align: center;
    font-size: 1.8rem;
    color: #667eea;
    margin: -5px 0;
    font-weight: bold;
}

.feature-highlights {
    background: linear-gradient(135deg, #667eea08 0%, #764ba208 100%);
    padding: 25px;
    border-radius: 15px;
    border: 2px solid #667eea20;
}

.feature-highlights h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 18px;
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
}

.feature-highlight-item {
    background: white;
    padding: 18px 15px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.feature-highlight-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.feature-highlight-item .feature-icon {
    font-size: 2.2rem;
    display: block;
    margin-bottom: 10px;
}

.feature-highlight-item strong {
    display: block;
    color: #333;
    font-size: 1rem;
    margin-bottom: 5px;
}

.feature-highlight-item p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

.platform-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
}

.platform-select-btn {
    padding: 10px 20px;
    background: #f0f0f0;
    border: 2px solid transparent;
    border-radius: 25px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #555;
    cursor: pointer;
    transition: all 0.3s ease;
}

.platform-select-btn:hover {
    background: #e7e7e7;
    transform: translateY(-2px);
}

.platform-select-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.platform-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.platform-content.active {
    display: block;
}

.platform-content h3 {
    font-size: 1.35rem;
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e9ecef;
}

.guide-step {
    background: #f8f9fa;
    padding: 18px 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border-left: 4px solid #28a745;
}

.guide-step h4 {
    font-size: 1.05rem;
    color: #28a745;
    margin-bottom: 12px;
    font-weight: 600;
}

.guide-step ol,
.guide-step ul {
    padding-left: 22px;
    color: #555;
    line-height: 1.8;
}

.guide-step li {
    margin-bottom: 6px;
    font-size: 0.93rem;
}

.guide-step strong {
    color: #333;
}

.platform-note {
    background: #fff9e6;
    padding: 16px 20px;
    border-radius: 10px;
    margin-top: 20px;
    border-left: 4px solid #ffc107;
}

.platform-note strong {
    color: #856404;
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
}

.platform-note ul {
    padding-left: 20px;
    color: #856404;
    line-height: 1.7;
}

.platform-note li {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.platform-note code {
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.88rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: none;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #e7e7e7;
}

.faq-icon {
    font-size: 1.5rem;
    font-weight: bold;
    color: #667eea;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 20px;
}

.faq-item.open .faq-answer {
    max-height: 800px;
    padding: 0 20px 18px;
}

.faq-answer p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 0.94rem;
}

.faq-answer strong {
    color: #333;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 22px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 12px;
}

.faq-answer li {
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.faq-warning {
    background: #fff3cd;
    padding: 12px 15px;
    border-radius: 8px;
    color: #856404 !important;
    border-left: 3px solid #ffc107;
    margin-top: 10px;
}

.faq-tip {
    background: #d4edda;
    padding: 12px 15px;
    border-radius: 8px;
    color: #155724 !important;
    border-left: 3px solid #28a745;
    margin-top: 10px;
}

.supported-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

.support-tag {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid #667eea30;
}

.tutorial-footer {
    padding: 20px 30px 25px;
    text-align: center;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.tutorial-action-btn {
    padding: 14px 35px;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tutorial-action-btn.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.tutorial-action-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}
 
.features {
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.feature-item {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.25);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.feature-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.9rem;
    opacity: 0.9;
}

.articles-section {
    margin-top: 50px;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.articles-title {
    color: white;
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 12px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.articles-subtitle {
    color: rgba(255,255,255,0.9);
    text-align: center;
    font-size: 1rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.article-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 24px 18px;
    border-radius: 15px;
    text-align: center;
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.article-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.article-card:hover::before {
    opacity: 1;
}

.article-card:hover {
    transform: translateY(-6px);
    background: rgba(255,255,255,0.22);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    border-color: rgba(255,255,255,0.4);
}

.article-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.article-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
    line-height: 1.3;
}

.article-card p {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
    line-height: 1.5;
    margin-bottom: 10px;
    flex: 1;
}

.article-tag {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

footer {
    text-align: center;
    color: rgba(255,255,255,0.8);
    margin-top: 50px;
    padding: 20px;
    font-size: 0.9rem;
}

.usage-tips {
    background: #e7f3ff;
    padding: 20px;
    border-radius: 12px;
    margin-top: 25px;
}

.tips-title {
    font-weight: 600;
    color: #0066cc;
    margin-bottom: 12px;
    font-size: 1rem;
}

.tips-list {
    list-style: none;
    color: #555;
    font-size: 0.9rem;
}

.tips-list li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
}

.tips-list li::before {
    content: "•";
    position: absolute;
    left: 5px;
    color: #0066cc;
    font-weight: bold;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
        min-height: 100vh;
    }

    h1 {
        font-size: 1.6rem;
        margin-bottom: 12px;
    }
    
    .subtitle {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    header {
        padding: 25px 15px;
    }

    .main-card {
        padding: 20px 15px;
        border-radius: 16px;
    }
    
    .input-wrapper {
        flex-direction: column;
        gap: 12px;
    }

    input[type="text"] {
        padding: 15px 16px;
        font-size: 15px;
        border-radius: 10px;
    }
    
    button, #submitBtn {
        width: 100%;
        padding: 15px 25px;
        font-size: 16px;
        border-radius: 10px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    .platforms {
        gap: 6px;
        justify-content: center;
    }
    
    .platform-tag {
        font-size: 0.8rem;
        padding: 5px 10px;
        border-radius: 15px;
    }

    .video-player-wrapper {
        border-radius: 10px;
        margin-bottom: 15px;
    }

    .video-player {
        min-height: 180px;
        max-height: 50vh;
    }

    .video-cover {
        min-height: 180px;
    }

    .player-controls-info {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .author-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 12px;
    }

    .author-avatar {
        width: 60px;
        height: 60px;
    }

    .author-name {
        font-size: 1rem;
    }

    .author-stats {
        font-size: 0.82rem;
    }

    .video-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
    }

    .stat-value {
        font-size: 1.1rem;
    }

    .stat-label {
        font-size: 0.8rem;
    }

    .video-meta {
        flex-direction: column;
        gap: 8px;
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .download-section {
        flex-direction: column;
        gap: 10px;
    }

    .download-btn {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
        border-radius: 10px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    .quality-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .quality-item {
        padding: 12px 14px;
        font-size: 0.88rem;
        border-radius: 8px;
        touch-action: manipulation;
        -webkit-tap-highlight-color: rgba(102,126,234,0.2);
    }

    .quality-options {
        margin-top: 15px;
        padding-top: 15px;
    }

    .image-gallery {
        margin-top: 20px;
    }

    .gallery-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .gallery-title {
        font-size: 1rem;
        justify-content: center;
    }

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

    .gallery-btn {
        padding: 10px 18px;
        font-size: 0.88rem;
        flex: 1;
        min-width: 120px;
        justify-content: center;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 8px;
    }

    .image-item {
        border-radius: 8px;
    }

    .live-badge {
        top: 6px;
        left: 6px;
        padding: 3px 6px;
        font-size: 0.7rem;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        top: 15px;
        right: 15px;
        font-size: 20px;
    }

    .modal-nav {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .modal-prev {
        left: 12px;
    }

    .modal-next {
        right: 12px;
    }

    .modal-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .features {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-top: 30px;
    }

    .feature-item {
        padding: 18px 15px;
        border-radius: 12px;
    }

    .feature-icon {
        font-size: 2rem;
        margin-bottom: 10px;
    }

    .feature-title {
        font-size: 1rem;
    }

    .feature-desc {
        font-size: 0.85rem;
    }

    .articles-section {
        margin-top: 35px;
    }

    .articles-title {
        font-size: 1.5rem;
    }

    .articles-subtitle {
        font-size: 0.9rem;
        margin-bottom: 22px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .article-card {
        padding: 20px 15px;
    }

    .article-icon {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .article-card h3 {
        font-size: 0.95rem;
    }

    .article-card p {
        font-size: 0.78rem;
        margin-bottom: 8px;
    }

    .article-tag {
        padding: 3px 10px;
        font-size: 0.68rem;
    }

    footer {
        margin-top: 35px;
        padding: 15px;
        font-size: 0.85rem;
    }

    .error-message {
        padding: 15px;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .history-section {
        margin-top: 20px;
        padding: 15px;
        border-radius: 10px;
    }

    .history-header {
        margin-bottom: 12px;
        padding-bottom: 10px;
    }

    .history-title {
        font-size: 1rem;
    }

    .clear-history-btn {
        padding: 6px 12px;
        font-size: 0.82rem;
    }

    .history-list {
        max-height: 250px;
    }

    .empty-history {
        padding: 30px 15px;
    }

    .empty-icon {
        font-size: 2.5rem;
    }

    .empty-history p {
        font-size: 0.95rem;
    }

    .empty-history span {
        font-size: 0.82rem;
    }

    .history-item {
        padding: 12px 14px;
        border-radius: 8px;
    }

    .history-url {
        font-size: 0.88rem;
    }

    .history-original {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .history-time {
        font-size: 0.75rem;
    }

    .history-delete {
        width: 26px;
        height: 26px;
        font-size: 13px;
        opacity: 1;
    }

    .usage-tips {
        padding: 15px;
        border-radius: 10px;
        margin-top: 15px;
    }

    .tips-title {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .tips-list {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.4rem;
    }
    
    .subtitle {
        font-size: 0.88rem;
    }
    
    header {
        padding: 20px 12px;
    }

    .main-card {
        padding: 16px 12px;
        border-radius: 14px;
    }
    
    input[type="text"] {
        padding: 13px 14px;
        font-size: 14px;
        border-radius: 8px;
    }
    
    button, #submitBtn {
        padding: 13px 20px;
        font-size: 15px;
        border-radius: 8px;
    }

    .platform-tag {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    .result-card {
        padding: 18px 15px;
        border-radius: 10px;
    }

    .result-title {
        font-size: 1.05rem;
    }

    .video-title {
        font-size: 0.88rem;
    }

    .download-btn {
        padding: 12px 18px;
        font-size: 14px;
        border-radius: 8px;
    }

    .quality-item {
        padding: 11px 12px;
        font-size: 0.85rem;
        border-radius: 7px;
    }

    .author-card {
        padding: 10px;
        gap: 10px;
    }

    .author-avatar {
        width: 50px;
        height: 50px;
    }

    .author-name {
        font-size: 0.95rem;
    }

    .author-stats {
        font-size: 0.8rem;
    }

    .stat-value {
        font-size: 1rem;
    }

    .stat-label {
        font-size: 0.75rem;
    }

    .video-meta {
        padding: 9px 11px;
        font-size: 0.82rem;
    }

    .features {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 25px;
    }

    .feature-item {
        padding: 15px 12px;
        border-radius: 10px;
    }

    .feature-icon {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }

    .feature-title {
        font-size: 0.95rem;
    }

    .feature-desc {
        font-size: 0.82rem;
    }

    .articles-section {
        margin-top: 28px;
    }

    .articles-title {
        font-size: 1.3rem;
    }

    .articles-subtitle {
        font-size: 0.85rem;
        margin-bottom: 18px;
    }

    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .article-card {
        padding: 16px 12px;
        border-radius: 12px;
    }

    .article-icon {
        font-size: 2rem;
        margin-bottom: 8px;
    }

    .article-card h3 {
        font-size: 0.88rem;
    }

    .article-card p {
        font-size: 0.75rem;
        margin-bottom: 7px;
        line-height: 1.4;
    }

    .article-tag {
        padding: 3px 9px;
        font-size: 0.65rem;
    }

    footer {
        margin-top: 28px;
        padding: 12px;
        font-size: 0.82rem;
    }

    .error-message {
        padding: 13px 15px;
        font-size: 0.85rem;
        border-radius: 9px;
    }

    .usage-tips {
        padding: 13px 14px;
        border-radius: 9px;
        margin-top: 12px;
    }

    .tips-title {
        font-size: 0.9rem;
        margin-bottom: 9px;
    }

    .tips-list {
        font-size: 0.82rem;
    }

    .tips-list li {
        padding: 5px 0;
        padding-left: 17px;
    }

    .history-section {
        margin-top: 16px;
        padding: 13px 12px;
        border-radius: 9px;
    }

    .history-header {
        margin-bottom: 10px;
        padding-bottom: 9px;
    }

    .history-title {
        font-size: 0.95rem;
    }

    .clear-history-btn {
        padding: 5px 11px;
        font-size: 0.8rem;
        border-radius: 5px;
    }

    .history-list {
        max-height: 220px;
    }

    .empty-history {
        padding: 25px 12px;
    }

    .empty-icon {
        font-size: 2.2rem;
        margin-bottom: 10px;
    }

    .empty-history p {
        font-size: 0.9rem;
        margin-bottom: 5px;
    }

    .empty-history span {
        font-size: 0.8rem;
    }

    .history-item {
        padding: 10px 12px;
        border-radius: 7px;
        margin-bottom: 8px;
    }

    .history-item:last-child {
        margin-bottom: 0;
    }

    .history-item-content {
        gap: 10px;
    }

    .history-url {
        font-size: 0.84rem;
        margin-bottom: 5px;
        line-height: 1.4;
    }

    .history-original {
        font-size: 0.77rem;
        line-height: 1.35;
        -webkit-line-clamp: 1;
        line-clamp: 1;
    }

    .history-meta {
        gap: 5px;
    }

    .history-time {
        font-size: 0.72rem;
    }

    .history-delete {
        width: 24px;
        height: 24px;
        font-size: 12px;
        border-width: 1px;
    }

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 7px;
    }

    .image-item {
        border-radius: 7px;
    }

    .live-badge {
        top: 5px;
        left: 5px;
        padding: 2px 5px;
        font-size: 0.68rem;
        border-radius: 5px;
    }

    .gallery-title {
        font-size: 0.95rem;
    }

    .gallery-count {
        padding: 3px 10px;
        font-size: 0.8rem;
        border-radius: 10px;
    }

    .gallery-btn {
        padding: 9px 16px;
        font-size: 0.84rem;
        border-radius: 7px;
        gap: 4px;
    }

    .gallery-actions {
        gap: 8px;
    }

    .modal-close {
        width: 33px;
        height: 33px;
        top: 12px;
        right: 12px;
        font-size: 18px;
    }

    .modal-nav {
        width: 35px;
        height: 35px;
        font-size: 15px;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    .modal-image,
    .modal-video {
        max-height: 75vh;
        border-radius: 7px;
    }

    .modal-controls {
        gap: 12px;
        margin-top: 16px;
    }

    .modal-btn {
        padding: 9px 18px;
        font-size: 0.84rem;
        border-radius: 7px;
    }

    .modal-info {
        font-size: 0.88rem;
        margin-top: 10px;
    }
}
