/* Video reverse tool page */

.video-page-content {
    max-width: 1120px;
    margin: 0 auto;
}

.video-page-header {
    padding-bottom: 0.5rem;
}

.video-header-kicker {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(79, 209, 197, 0.14);
    color: var(--primary-dark, #319795);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
}

.video-page-header h1 {
    max-width: 850px;
    margin-bottom: 0.75rem;
}

.video-page-header p {
    max-width: 850px;
    margin-bottom: 1rem;
}

.video-hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.video-hero-fact {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--border-ring);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.video-tool-card {
    padding: 1.5rem;
}

.video-tool-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.5rem;
    align-items: start;
}

.video-input-panel,
.video-output-panel {
    min-width: 0;
}

.video-upload-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 1.75rem 1.25rem;
    border: 1.5px dashed rgba(79, 209, 197, 0.7);
    border-radius: var(--radius-xl, 1rem);
    background: linear-gradient(145deg, rgba(240, 253, 250, 0.96), rgba(238, 242, 255, 0.8));
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.video-upload-zone:hover,
.video-upload-zone:focus-visible,
.video-upload-zone.is-dragging {
    border-color: var(--primary, #4fd1c5);
    box-shadow: 0 10px 28px rgba(79, 209, 197, 0.16);
    outline: none;
    transform: translateY(-1px);
}

.video-upload-zone[aria-disabled="true"] {
    cursor: progress;
    opacity: 0.72;
    transform: none;
}

.video-upload-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 0.9rem;
    border-radius: 1rem;
    background: var(--primary-gradient, linear-gradient(135deg, #4fd1c5, #667eea));
    color: #fff;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.2);
}

.video-upload-icon svg {
    width: 28px;
    height: 28px;
}

.video-upload-title {
    margin: 0;
    color: var(--text-color);
    font-size: 1.05rem;
}

.video-upload-subtitle {
    max-width: 30rem;
    margin: 0.45rem 0 1rem;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.6;
}

.video-upload-zone .pill-btn {
    position: relative;
    z-index: 1;
}

.video-input-help {
    margin: 0.85rem 0 0;
    color: var(--text-light);
    font-size: 0.74rem;
}

.video-file-meta {
    margin-top: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--border-ring);
    border-radius: var(--radius-lg, 0.75rem);
    background: rgba(255, 255, 255, 0.7);
}

.video-file-label,
.video-status-label {
    color: var(--text-light);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.video-file-name {
    overflow: hidden;
    margin-top: 0.25rem;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.video-file-details {
    margin-top: 0.25rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
}

.video-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.video-action-row .pill-btn {
    flex: 1 1 10rem;
}

.video-status-box {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--border-ring);
    border-radius: var(--radius-lg, 0.75rem);
    background: rgba(247, 250, 252, 0.8);
}

.video-status-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
}

.video-status-box .status-badge {
    max-width: 100%;
    color: var(--text-secondary);
}

.video-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-light);
}

.status-badge[data-status="loading"] .video-status-dot {
    background: var(--warning, #d69e2e);
    box-shadow: 0 0 0 4px rgba(214, 158, 46, 0.14);
}

.status-badge[data-status="success"] .video-status-dot {
    background: var(--success, #38a169);
    box-shadow: 0 0 0 4px rgba(56, 161, 105, 0.14);
}

.status-badge[data-status="error"] .video-status-dot {
    background: var(--danger, #e53e3e);
    box-shadow: 0 0 0 4px rgba(229, 62, 62, 0.14);
}

.video-progress-label {
    display: block;
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 0.78rem;
    font-weight: 600;
}

.video-status-box progress {
    display: block;
    width: 100%;
    height: 0.55rem;
    margin-top: 0.45rem;
    border: 0;
    border-radius: 999px;
    overflow: hidden;
    background: #e2e8f0;
}

.video-status-box progress::-webkit-progress-bar {
    background: #e2e8f0;
    border-radius: 999px;
}

.video-status-box progress::-webkit-progress-value {
    background: var(--primary-gradient, linear-gradient(90deg, #4fd1c5, #667eea));
    border-radius: 999px;
}

.video-status-box progress::-moz-progress-bar {
    background: var(--primary, #4fd1c5);
    border-radius: 999px;
}

.video-progress-text {
    min-height: 1.2em;
    margin: 0.4rem 0 0;
    color: var(--text-light);
    font-size: 0.75rem;
    text-align: right;
}

.video-output-panel {
    display: grid;
    gap: 1rem;
}

.video-output-block {
    min-width: 0;
}

.video-output-heading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 0.6rem;
}

.video-output-heading h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 0.95rem;
}

.video-output-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 0.55rem;
    background: var(--primary-bg, #e6fffa);
    color: var(--primary-dark, #319795);
    font-size: 0.72rem;
    font-weight: 800;
}

.video-output-number-accent {
    background: rgba(102, 126, 234, 0.12);
    color: #5a67d8;
}

.video-media-frame {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    border: 1px solid var(--border-ring);
    border-radius: var(--radius-lg, 0.75rem);
    background: #111827;
    overflow: hidden;
}

.video-result-frame {
    background: linear-gradient(145deg, #111827, #1f2937);
}

.video-preview {
    display: block;
    width: 100%;
    max-height: 310px;
    background: #111827;
}

.video-empty-state,
.video-result-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.78);
    text-align: center;
}

.video-empty-state p,
.video-result-state p {
    max-width: 22rem;
    margin: 0.65rem 0 0;
    font-size: 0.8rem;
    line-height: 1.55;
}

.video-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.video-result-state.is-error {
    color: #fed7d7;
}

.video-result-state.is-error .video-empty-icon {
    border-color: rgba(252, 129, 129, 0.7);
    color: #fc8181;
}

.video-example-output {
    margin-top: 0.65rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid rgba(79, 209, 197, 0.28);
    border-radius: var(--radius-lg, 0.75rem);
    background: rgba(240, 253, 250, 0.72);
}

.video-example-label {
    color: var(--primary-dark, #319795);
    font-size: 0.72rem;
    font-weight: 800;
}

.video-example-output p {
    margin: 0.3rem 0 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.6;
}

.video-download-btn {
    width: 100%;
    margin-top: 0.65rem;
}

.video-tool-notes {
    display: grid;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.video-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.8rem 0.9rem;
    border-radius: var(--radius-lg, 0.75rem);
    background: rgba(240, 253, 250, 0.7);
}

.video-note-warning {
    background: rgba(255, 251, 235, 0.9);
}

.video-note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(79, 209, 197, 0.18);
    color: var(--primary-dark, #319795);
    font-size: 0.8rem;
    font-weight: 800;
}

.video-note-warning .video-note-icon {
    background: rgba(214, 158, 46, 0.18);
    color: #975a16;
}

.video-note p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.78rem;
    line-height: 1.65;
}

.video-copy-card {
    padding: 1.5rem;
}

.video-copy-card > p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.85;
}

.video-definition-box {
    margin-top: 1rem;
    padding: 1rem;
    border-left: 3px solid var(--primary, #4fd1c5);
    border-radius: 0 var(--radius-lg, 0.75rem) var(--radius-lg, 0.75rem) 0;
    background: rgba(240, 253, 250, 0.68);
}

.video-definition-box strong {
    color: var(--text-color);
    font-size: 0.9rem;
}

.video-definition-box p {
    margin: 0.4rem 0 0;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.7;
}

.video-step-list {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.video-step-list li {
    display: grid;
    grid-template-columns: 2rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.video-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 0.7rem;
    background: var(--primary-gradient, linear-gradient(135deg, #4fd1c5, #667eea));
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
}

.video-step-list strong {
    color: var(--text-color);
    font-size: 0.9rem;
}

.video-step-list p {
    margin: 0.25rem 0 0;
    color: var(--text-secondary);
    font-size: 0.86rem;
    line-height: 1.7;
}

.video-format-table th,
.video-format-table td {
    vertical-align: top;
}

.video-example-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.video-example-card {
    padding: 1rem;
    border: 1px solid var(--border-ring);
    border-radius: var(--radius-lg, 0.75rem);
    background: rgba(255, 255, 255, 0.7);
}

.video-example-card-icon {
    display: block;
    margin-bottom: 0.45rem;
    font-size: 1.45rem;
}

.video-example-card h3,
.video-limit-item h3 {
    margin: 0;
    color: var(--text-color);
    font-size: 0.9rem;
}

.video-example-card p,
.video-limit-item p {
    margin: 0.35rem 0 0;
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.65;
}

.video-limit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.video-limit-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.95rem;
    border: 1px solid rgba(214, 158, 46, 0.2);
    border-radius: var(--radius-lg, 0.75rem);
    background: rgba(255, 251, 235, 0.7);
}

.video-limit-icon {
    flex: 0 0 auto;
    font-size: 1.1rem;
}

.video-check-list,
.video-troubleshooting-list {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.video-check-list li {
    display: flex;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.video-check-list li span {
    color: var(--success, #38a169);
    font-weight: 800;
}

.video-troubleshooting-list li {
    display: grid;
    gap: 0.15rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--border-ring);
}

.video-troubleshooting-list li:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.video-troubleshooting-list strong {
    color: var(--text-color);
    font-size: 0.84rem;
}

.video-troubleshooting-list span {
    color: var(--text-secondary);
    font-size: 0.82rem;
    line-height: 1.6;
}

.video-related-links {
    gap: 0.6rem;
}

.video-related-links .pill-btn {
    font-size: 0.82rem;
}

.video-reverse-page .faq-answer {
    line-height: 1.75;
}

@media (max-width: 860px) {
    .video-tool-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .video-tool-card,
    .video-copy-card {
        padding: 1rem;
    }

    .video-example-grid,
    .video-limit-grid {
        grid-template-columns: 1fr;
    }

    .video-upload-zone {
        min-height: 230px;
        padding: 1.35rem 1rem;
    }

    .video-status-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .video-status-box .status-badge {
        width: 100%;
        justify-content: flex-start;
    }
}
