.content.video-home,
.content.video-wrap {
    max-width: none;
    padding-left: 75px;
    padding-right: 75px;
    box-sizing: border-box;
}
.stage { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.stage > div { min-width: 0; }
#slot { width: 100%; background: #000; border-radius: 12px; aspect-ratio: var(--ar, 1.7778); max-height: 70vh; overflow: hidden; }
.stage.is-browse { display: block; }
.stage.is-browse > div:first-child { display: none; }
.stage.is-browse .side {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    max-height: none;
    overflow: visible;
}
@media (min-width: 1320px) {
    .stage.is-browse .side { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1620px) {
    .stage.is-browse .side { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.stage.is-browse .card { display: flex; flex-direction: column; gap: 6px; padding: 0; }
.stage.is-browse .card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.stage.is-browse .card strong { font-size: 15px; }
.stage.is-browse #more-previews { grid-column: 1 / -1; height: 1px; }
.video-actions form { width: auto; margin: 0; padding: 0; background: transparent; border: 0; display: flex; }
.stage.is-search { display: block; }
.stage.is-search > div:first-child { display: none; }
.stage.is-search .side { max-height: none; }
.stage.is-search .card { grid-template-columns: min(50%, 28rem) 1fr; text-decoration: none; }
#slot video, #slot img { width: 100%; height: 100%; background: #000; object-fit: contain; }
#slot .still { display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: #000; cursor: pointer; }
.side { display: flex; flex-direction: column; gap: 8px; max-height: calc(100vh - 220px); overflow: auto; }
.card { display: grid; grid-template-columns: 168px 1fr; gap: 8px; border: 0; background: transparent; text-align: left; cursor: pointer; padding: 4px; border-radius: 8px; color: inherit; text-decoration: none; }
.card.on { background: #f2f2f2; }
.card img { width: 168px; height: 94px; object-fit: cover; background: #111; border-radius: 8px; }
.card strong { display: block; font-size: 14px; }
#park { position: absolute; width: 1px; height: 1px; overflow: hidden; left: -9999px; }
@media (max-width: 800px) {
    .content.video-home,
    .content.video-wrap { padding-left: 16px; padding-right: 16px; }
    .stage { grid-template-columns: 1fr; }
    .side { max-height: none; }
    .stage.is-browse .side { grid-template-columns: 1fr; }
}
.share-dialog { border: 0; border-radius: 12px; padding: 1.1rem 1.2rem 1.2rem; max-width: 32rem; width: calc(100% - 2rem); }
.share-dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.share-dialog h2 { margin: 0 0 0.6rem; font-size: 1.15rem; }
.share-nets { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0 0 0.8rem; }
.share-nets a, .share-dialog button { border: 0; background: #065fd4; color: #fff; padding: 6px 12px; border-radius: 4px; font-weight: 600; text-decoration: none; cursor: pointer; font-size: 14px; }
.share-dialog .share-close { background: #444; }
.share-note { min-height: 1.2em; margin: 0.6rem 0 0; }
.video-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
    column-gap: 16px;
    row-gap: 12px;
    align-items: start;
}
.video-main { display: contents; }
.video-frame { grid-column: 1; grid-row: 1; width: 100%; margin: 0; }
.video-below { grid-column: 1; grid-row: 2; }
.video-stage .video-side {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
}
.video-side-card { display: grid; grid-template-columns: 148px 1fr; gap: 8px; text-decoration: none; color: inherit; padding: 4px; border-radius: 8px; }
.video-side-card.is-on { background: #f2f2f2; }
.video-side-card img, .video-side-blank { width: 148px; height: 84px; object-fit: cover; background: #111; border-radius: 8px; }
.video-side-card strong { display: block; font-size: 0.92rem; }
@media (max-width: 800px) {
    .video-stage { display: block; }
    .video-stage .video-side { height: auto; max-height: none; overflow: visible; }
}
.video-bar, .video-bar-links, .video-filters, .video-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.video-bar { justify-content: space-between; }
.video-filters {
    width: 100%;
    max-width: none;
    margin: 0 0 16px;
    padding: 0;
    background: transparent;
    border: 0;
}
.video-filters input, .video-filters select, .video-form input[type="text"], .video-form textarea, .video-form select { width: auto; max-width: 16rem; }
.video-filters button, .video-actions button, .video-actions .reset-filters, .share-dialog button, .share-nets a { width: auto; }
.stage.is-search .side { width: 100%; max-height: none; overflow: visible; }
.stage.is-search .card { width: 100%; grid-template-columns: 336px 1fr; }
.stage.is-search .card img { width: 336px; height: 188px; }
.video-results { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.video-result { display: block; color: inherit; text-decoration: none; }
.video-result img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #111; border-radius: 8px; }
.video-result strong { display: block; margin-top: 6px; }
.video-result span, .reset-filters { font-size: 14px; }
.video-stats { border-collapse: collapse; width: 100%; max-width: 52rem; }
.video-stats th, .video-stats td { border-bottom: 1px solid #ddd; text-align: left; padding: 0.35rem 0.5rem; }
.reset-filters { display: inline-block; border: 0; background: #065fd4; color: #fff; padding: 6px 12px; border-radius: 4px; font-weight: 600; text-decoration: none; cursor: pointer; }
.avail { font-weight: 600; }
@media (max-width: 800px) {
    .video-results { grid-template-columns: 1fr; }
}
.video-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0.8rem; }
.video-grid a { display: block; padding: 0.8rem; border: 1px solid #ccc; border-radius: 6px; text-decoration: none; }
.video-card-thumb { display: block; width: 100%; height: 124px; object-fit: cover; background: #111; margin: -0.8rem -0.8rem 0.6rem; width: calc(100% + 1.6rem); }
.video-card-meta, .video-by, .video-desc { color: #444; }
.video-el { width: 100%; height: auto; display: block; background: #111; aspect-ratio: var(--ar, 1.7778); }
.video-quality { display: flex; gap: 0.4rem; align-items: center; margin: 0.4rem 0 0.8rem; }
.video-quality[hidden] { display: none; }
.video-tag-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.video-tag-list a { border: 1px solid #ccc; border-radius: 999px; padding: 0.15rem 0.55rem; text-decoration: none; }
.video-form fieldset, .video-comment textarea { margin: 0.6rem 0; }
.video-check { display: inline-flex; gap: 0.3rem; margin-right: 0.8rem; }
.video-notes { background: #fff8e6; padding: 0.6rem 1rem; }
.video-comments { list-style: none; padding: 0; }
.video-comments li { border-top: 1px solid #ddd; padding: 0.5rem 0; }
@media (max-width: 640px) {
    .video-bar { align-items: flex-start; flex-direction: column; }
}
