﻿
.media-page {
    max-width: 1050px;
    margin: 0 auto;
    padding: 36px 24px 56px;
    color: var(--text-primary, #e8edf7);
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

    .page-heading h1 {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        letter-spacing: -0.04em;
        margin: 10px 0;
    }

    .page-heading p,
    .muted {
        color: var(--text-muted, #9ba8bd);
    }

.eyebrow {
    color: #829cfb;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
    border-radius: 16px;
    font-size: 1.6rem;
}

.download-icon {
    background: #263968;
    color: #a7bdff;
}

.transcription-icon {
    background: #164638;
    color: #8de4bd;
}

.media-card,
.info-card {
    background: var(--surface, #151d2d);
    border: 1px solid var(--border, #2b3548);
    border-radius: 18px;
    padding: 26px;
    margin-bottom: 22px;
}

    .media-card h2 {
        margin-top: 0;
        font-size: 1.25rem;
    }

    .media-card label {
        display: block;
        margin: 20px 0 8px;
        font-size: .9rem;
        font-weight: 600;
    }

.media-input {
    display: block;
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--border, #39445a);
    border-radius: 10px;
    background: var(--input-bg, #0d1422);
    color: inherit;
    font: inherit;
}

.form-grid,
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card h3 {
    margin-top: 0;
    font-size: 1rem;
}

.info-card p {
    margin-bottom: 0;
    color: var(--text-muted, #9ba8bd);
    font-size: .9rem;
    line-height: 1.6;
}

.primary-button,
.secondary-button {
    border: 0;
    border-radius: 10px;
    padding: 13px 18px;
    margin-top: 24px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.primary-button {
    width: 100%;
    color: white;
    background: #536ff4;
}

.secondary-button {
    margin-top: 0;
    color: white;
    background: #34435f;
}

    .primary-button:disabled,
    .secondary-button:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

.upload-area {
    padding: 26px;
    border: 1px dashed #52617a;
    border-radius: 12px;
    background: var(--input-bg, #0d1422);
}

    .upload-area input {
        max-width: 100%;
    }

.selected-file {
    overflow-wrap: anywhere;
    font-weight: 600;
}

.progress-track {
    height: 8px;
    margin-top: 22px;
    border-radius: 10px;
    overflow: hidden;
    background: #303a50;
}

.progress-fill {
    height: 100%;
    border-radius: inherit;
    background: #7188ff;
    transition: width .25s ease;
}

.status-message {
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 9px;
    overflow-wrap: anywhere;
}

.error {
    color: #ffb7b7;
    background: #48242c;
}

.success {
    color: #a6f0c5;
    background: #173e30;
}

.transcript-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.transcript-output {
    width: 100%;
    padding: 16px;
    margin-top: 14px;
    border-radius: 10px;
    border: 1px solid var(--border, #39445a);
    background: var(--input-bg, #0d1422);
    color: inherit;
    font: inherit;
    line-height: 1.7;
    resize: vertical;
}

@media (max-width: 700px) {
    .media-page {
        padding: 24px 16px;
    }

    .media-card {
        padding: 20px;
    }

    .form-grid,
    .info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .page-heading {
        align-items: flex-start;
    }

    .transcript-heading {
        align-items: flex-start;
        flex-direction: column;
    }
}

.file-picker-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.clear-file-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 14px;
    flex-shrink: 0;
    border: 1px solid #dc3545;
    border-radius: 8px;
    background: transparent;
    color: #dc3545;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

    .clear-file-button:hover:not(:disabled) {
        background: #dc3545;
        color: #fff;
    }

    .clear-file-button:disabled {
        opacity: 0.4;
        cursor: not-allowed;
    }


.usage-policy {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border: 1px solid rgba(0, 217, 255, 0.25);
    border-radius: 12px;
    background: rgba(10, 18, 35, 0.75);
    color: #e5eaf2;
}

    .usage-policy h3 {
        color: #00d9ff;
        font-size: 1.15rem;
        margin-bottom: 0.75rem;
    }

    .usage-policy p,
    .policy-content li {
        color: #c3ccda;
        line-height: 1.7;
    }

.policy-details summary {
    color: #00d9ff;
    cursor: pointer;
    font-weight: 600;
    padding: 0.75rem 0;
}

.policy-content {
    padding-top: 0.75rem;
}

    .policy-content h4 {
        color: #fff;
        font-size: 1rem;
        margin-top: 1.25rem;
    }

    .policy-content ul {
        padding-left: 1.5rem;
    }

.terms-acceptance {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.25rem;
    cursor: pointer;
    line-height: 1.6;
}

    .terms-acceptance input[type="checkbox"] {
        flex-shrink: 0;
        width: 18px;
        height: 18px;
        margin-top: 4px;
        accent-color: #00d9ff;
    }

.terms-reminder {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: #f0c674;
}

.legal-footer-note {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #aab5c5;
}

