.media-main {
    width: min(820px, 100% - 40px);
    padding-top: clamp(32px, 6vw, 64px);
}

.media-main .legal-hero { max-width: 720px; }
.media-platforms, .media-access { max-width: 760px; margin: 0 auto 10px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.media-access { margin-bottom: 20px; }

.media-card {
    max-width: 760px;
    margin: 0 auto 16px;
    padding: clamp(20px, 4vw, 32px);
    border: 1px solid rgb(32 41 35 / 7%);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.media-card [hidden] { display: none !important; }
.media-main .hidden { display: none !important; }
.media-purchase { text-align: center; }
.media-purchase p { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.7; }
.media-purchase .launch-button { display: inline-flex; border: 0; cursor: pointer; font: inherit; font-size: 12px; }
.media-purchase .media-status { margin-top: 10px; }

.media-url-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.media-url-row .launch-button { margin-top: 0; }
.media-card input[type="text"], .media-card input[type="url"], .media-card input[type="password"], .media-card input[type="email"], .media-card input[type="tel"], .media-card select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #dfe4dc;
    border-radius: 10px;
    background: #fffefa;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
}
.media-card input:focus-visible, .media-card select:focus-visible { outline: 3px solid rgb(55 120 94 / 25%); outline-offset: 2px; }
.media-card button:disabled { cursor: not-allowed; opacity: .55; }
.media-status, .media-meta { color: var(--muted); font-size: 12px; line-height: 1.6; }
.media-status { min-height: 1.5em; margin: 10px 0 0; }
.media-status.err, .media-card .err { color: #a33b2d; }
.media-card .ok { color: var(--green-strong); }

.media-preview { display: flex; align-items: center; gap: 16px; }
.media-preview img { width: 160px; height: 90px; flex: none; border-radius: 10px; background: #f4f2ec; object-fit: cover; }
.media-preview h2 { margin: 0 0 4px; font: 700 17px Manrope, sans-serif; letter-spacing: -.035em; overflow-wrap: anywhere; }
.media-mode { min-width: 0; margin: 0; padding: 0; border: 0; }
.media-mode .media-label { padding: 0; }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.media-label { display: block; margin-bottom: 7px; color: #34443b; font-size: 12px; font-weight: 700; }
.media-segment { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 0; font-size: 13px; }
.media-segment label, .media-check label { cursor: pointer; }
.media-check { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 13px; }
.media-check input { width: 17px; height: 17px; accent-color: var(--green-strong); }
.media-check select { width: auto; min-width: 100px; }
.media-submit { width: 100%; margin-top: 20px; border: 0; cursor: pointer; font: inherit; font-size: 13px; }
.media-progress { height: 8px; margin: 12px 0; overflow: hidden; border-radius: 8px; background: #e8ebe5; }
.media-progress > div { width: 0; height: 100%; background: var(--green-strong); transition: width .3s ease; }
.files a { display: block; margin-top: 8px; padding: 10px 12px; border: 1px solid #dfe4dc; border-radius: 10px; color: var(--green-strong); text-decoration: none; overflow-wrap: anywhere; }
.files a:hover { background: #f8faf6; }
.media-note { max-width: 760px; margin: 20px auto 28px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.media-main .legal-footer { max-width: 760px; }

@media (max-width: 700px) {
    .media-main { width: min(100% - 28px, 760px); }
    .media-card { border-radius: 19px; }
}

@media (max-width: 520px) {
    .media-url-row, .media-grid { grid-template-columns: 1fr; }
    .media-url-row .launch-button { justify-content: center; }
    .media-preview { align-items: flex-start; flex-direction: column; }
    .media-preview img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
}
