:root {
    --mgv-accent: #ff3158;
    --mgv-accent-dark: #df123a;
    --mgv-ink: #111318;
    --mgv-muted: #6f7480;
    --mgv-line: #e7e9ee;
    --mgv-soft: #f6f7f9;
    --mgv-card: #fff;
    --mgv-radius: 18px;
    --mgv-shadow: 0 18px 45px rgba(18, 22, 33, .09);
}

.mgv-board,
.mgv-watch,
.mgv-write {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    color: var(--mgv-ink);
    font-family: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
    box-sizing: border-box;
}

.mgv-board *,
.mgv-watch *,
.mgv-write * {
    box-sizing: border-box;
}

.mgv-board a,
.mgv-watch a,
.mgv-write a {
    color: inherit;
    text-decoration: none;
}

.mgv-kicker {
    display: block;
    margin-bottom: 8px;
    color: var(--mgv-accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .18em;
}

.mgv-board-head,
.mgv-write-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 34px 2px 28px;
    border-bottom: 1px solid var(--mgv-line);
}

.mgv-board-head h2,
.mgv-write-head h2 {
    margin: 0;
    font-size: clamp(27px, 4vw, 42px);
    line-height: 1.18;
    letter-spacing: -.045em;
}

.mgv-board-head p,
.mgv-write-head p {
    margin: 10px 0 0;
    color: var(--mgv-muted);
    font-size: 15px;
}

.mgv-head-actions,
.mgv-bottom-actions,
.mgv-submit-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.mgv-count {
    margin-right: 5px;
    color: var(--mgv-muted);
    font-size: 13px;
    font-weight: 700;
}

.mgv-btn {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0 17px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.mgv-btn:hover {
    transform: translateY(-1px);
}

.mgv-btn-primary {
    border-color: var(--mgv-accent);
    background: var(--mgv-accent);
    color: #fff !important;
    box-shadow: 0 9px 22px rgba(255, 49, 88, .23);
}

.mgv-btn-primary:hover {
    background: var(--mgv-accent-dark);
    box-shadow: 0 12px 26px rgba(255, 49, 88, .3);
}

.mgv-btn-ghost {
    border-color: var(--mgv-line);
    background: #fff;
    color: #363a43 !important;
}

.mgv-categories {
    overflow-x: auto;
    padding: 20px 0 7px;
    scrollbar-width: none;
}

.mgv-categories::-webkit-scrollbar {
    display: none;
}

.mgv-categories ul {
    display: flex;
    width: max-content;
    min-width: 100%;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mgv-categories li {
    margin: 0;
    padding: 0;
}

.mgv-categories a {
    display: block;
    padding: 9px 15px;
    border: 1px solid var(--mgv-line);
    border-radius: 999px;
    background: #fff;
    color: #4e535e;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.mgv-categories a:hover,
.mgv-categories #bo_cate_on {
    border-color: var(--mgv-ink);
    background: var(--mgv-ink);
    color: #fff;
}

.mgv-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0;
}

.mgv-toolbar > strong {
    color: var(--mgv-muted);
    font-size: 13px;
}

.mgv-search {
    display: grid;
    grid-template-columns: auto minmax(130px, 220px) 42px;
    min-height: 42px;
    overflow: hidden;
    border: 1px solid var(--mgv-line);
    border-radius: 999px;
    background: #fff;
}

.mgv-search select,
.mgv-search input,
.mgv-search button {
    height: 42px;
    border: 0;
    outline: 0;
    background: transparent;
}

.mgv-search select {
    padding: 0 8px 0 15px;
    color: #555b65;
    font-size: 12px;
}

.mgv-search input {
    width: 100%;
    padding: 0 8px;
    color: var(--mgv-ink);
    font-size: 13px;
}

.mgv-search button {
    display: grid;
    width: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--mgv-ink);
    color: #fff;
    font-size: 21px;
    cursor: pointer;
}

.mgv-admin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff4f6;
    color: #6c2634;
    font-size: 13px;
}

.mgv-admin-bar button {
    margin-left: 6px;
    padding: 7px 11px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #5e2b35;
    cursor: pointer;
}

.mgv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 22px;
}

.mgv-card {
    position: relative;
    min-width: 0;
}

.mgv-card.is-current .mgv-thumb {
    outline: 3px solid var(--mgv-accent);
    outline-offset: 3px;
}

.mgv-card-check {
    position: absolute;
    z-index: 3;
    top: 10px;
    left: 10px;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 8px;
    background: rgba(0, 0, 0, .7);
}

.mgv-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: var(--mgv-radius);
    background: #111318;
    box-shadow: 0 8px 24px rgba(18, 22, 33, .08);
}

.mgv-thumb img,
.mgv-playlist-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease, opacity .35s ease;
}

.mgv-card:hover .mgv-thumb img {
    opacity: .86;
    transform: scale(1.035);
}

.mgv-thumb-empty {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background: radial-gradient(circle at 70% 30%, #353a46 0, #171a21 36%, #090a0d 100%);
    color: #fff;
}

.mgv-thumb-empty b {
    font-size: clamp(18px, 3vw, 28px);
    letter-spacing: -.05em;
}

.mgv-thumb-empty small {
    margin-top: 4px;
    color: var(--mgv-accent);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .28em;
}

.mgv-play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    padding-left: 4px;
    border: 1px solid rgba(255, 255, 255, .52);
    border-radius: 50%;
    background: rgba(8, 10, 14, .64);
    color: #fff;
    font-size: 18px;
    opacity: 0;
    transform: translate(-50%, -45%) scale(.92);
    transition: opacity .22s ease, transform .22s ease, background .22s ease;
}

.mgv-card:hover .mgv-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.mgv-duration,
.mgv-notice {
    position: absolute;
    z-index: 2;
    right: 10px;
    bottom: 10px;
    padding: 4px 7px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .82);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.mgv-notice {
    top: 10px;
    bottom: auto;
    background: var(--mgv-accent);
}

.mgv-card-body {
    position: relative;
    padding: 14px 3px 0;
}

.mgv-category {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    margin-bottom: 7px;
    padding: 0 9px;
    border-radius: 999px;
    background: #fff0f3;
    color: var(--mgv-accent-dark) !important;
    font-size: 11px;
    font-weight: 900;
}

.mgv-card h3 {
    display: -webkit-box;
    overflow: hidden;
    min-height: 46px;
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -.025em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mgv-card h3 a:hover {
    color: var(--mgv-accent-dark);
}

.mgv-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin-top: 9px;
    color: var(--mgv-muted);
    font-size: 12px;
}

.mgv-card-meta span + span {
    position: relative;
}

.mgv-card-meta span + span::before {
    position: absolute;
    top: 50%;
    left: -7px;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: #a7abb3;
    content: "";
}

.mgv-comments,
.mgv-new {
    display: inline-block;
    margin-top: 8px;
    margin-right: 5px;
    color: #777d87;
    font-size: 11px;
    font-weight: 700;
}

.mgv-new {
    color: var(--mgv-accent);
}

.mgv-empty-list {
    grid-column: 1 / -1;
    display: flex;
    min-height: 320px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px dashed #d9dce2;
    border-radius: 22px;
    background: var(--mgv-soft);
    color: var(--mgv-muted);
}

.mgv-empty-list span {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    margin-bottom: 16px;
    padding-left: 4px;
    border-radius: 50%;
    background: #fff;
    color: var(--mgv-accent);
    box-shadow: var(--mgv-shadow);
}

.mgv-empty-list strong {
    color: var(--mgv-ink);
    font-size: 18px;
}

.mgv-empty-list p {
    margin: 7px 0 0;
}

.mgv-bottom-actions,
.mgv-submit-row {
    margin-top: 28px;
}

.mgv-pages {
    margin: 34px 0 10px;
    text-align: center;
}

.mgv-pages .pg_page,
.mgv-pages .pg_current {
    display: inline-grid;
    min-width: 38px;
    height: 38px;
    place-items: center;
    margin: 0 2px;
    border: 1px solid var(--mgv-line);
    border-radius: 10px;
    background: #fff;
    color: #555b65;
}

.mgv-pages .pg_current {
    border-color: var(--mgv-ink);
    background: var(--mgv-ink);
    color: #fff;
}

/* View */
.mgv-watch {
    padding: 22px 0 0;
}

.mgv-watch-layout {
    display: block;
}

.mgv-watch-main {
    min-width: 0;
}

.mgv-player-shell {
    overflow: hidden;
    border-radius: 20px;
    background: #050607;
    box-shadow: 0 20px 55px rgba(9, 12, 18, .2);
}

.mgv-player-ratio {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050607;
}

.mgv-player-ratio iframe,
.mgv-player-ratio video {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}

.mgv-player-empty {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #fff;
    text-align: center;
}

.mgv-empty-play {
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    margin-bottom: 18px;
    padding-left: 5px;
    border-radius: 50%;
    background: var(--mgv-accent);
    font-size: 24px;
}

.mgv-player-empty strong {
    font-size: 18px;
}

.mgv-player-empty small {
    margin-top: 8px;
    color: #9ea3ad;
}

.mgv-watch-head {
    padding: 21px 2px 14px;
}

.mgv-watch-head h1 {
    margin: 2px 0 12px;
    font-size: clamp(23px, 3vw, 34px);
    line-height: 1.3;
    letter-spacing: -.04em;
}

.mgv-watch-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 17px;
    color: var(--mgv-muted);
    font-size: 13px;
}

.mgv-watch-meta .mgv-author {
    color: var(--mgv-ink);
    font-weight: 800;
}

.mgv-watch-meta a:hover {
    color: var(--mgv-accent-dark);
}

.mgv-watch-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0 20px;
    border-top: 1px solid var(--mgv-line);
    border-bottom: 1px solid var(--mgv-line);
}

.mgv-watch-actions > div {
    display: flex;
    align-items: center;
    gap: 7px;
}

.mgv-action {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--mgv-soft);
    color: #454a55 !important;
    font-size: 13px;
    font-weight: 800;
}

.mgv-action:hover {
    color: var(--mgv-accent-dark) !important;
}

.mgv-video-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin: 22px 0 0;
    border: 1px solid var(--mgv-line);
    border-radius: 14px;
    background: var(--mgv-line);
}

.mgv-video-details > div {
    min-width: 0;
    padding: 15px 16px;
    background: #fff;
}

.mgv-video-details dt {
    margin-bottom: 5px;
    color: var(--mgv-muted);
    font-size: 11px;
    font-weight: 700;
}

.mgv-video-details dd {
    overflow: hidden;
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mgv-description,
.mgv-files,
.mgv-comment-section,
.mgv-comment-write {
    margin-top: 26px;
    padding: 24px;
    border: 1px solid var(--mgv-line);
    border-radius: var(--mgv-radius);
    background: #fff;
}

.mgv-description h2,
.mgv-files h2,
.mgv-comment-head h2,
.mgv-comment-write h2 {
    margin: 0 0 17px;
    font-size: 17px;
    letter-spacing: -.025em;
}

.mgv-description {
    color: #3d424c;
    font-size: 15px;
    line-height: 1.8;
}

.mgv-description img {
    max-width: 100%;
    height: auto;
}

.mgv-files ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.mgv-files li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 0;
    border-top: 1px solid var(--mgv-line);
    font-size: 13px;
}

.mgv-files li span {
    color: var(--mgv-muted);
    white-space: nowrap;
}

.mgv-prev-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.mgv-prev-next a {
    display: flex;
    min-width: 0;
    padding: 15px 17px;
    border: 1px solid var(--mgv-line);
    border-radius: 13px;
    flex-direction: column;
}

.mgv-prev-next span {
    margin-bottom: 5px;
    color: var(--mgv-muted);
    font-size: 11px;
    font-weight: 700;
}

.mgv-prev-next strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mgv-playlist {
    position: relative;
    top: auto;
    overflow: hidden;
    margin-top: 24px;
    border: 1px solid var(--mgv-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(18, 22, 33, .07);
}

.mgv-playlist-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 17px 18px;
    border-bottom: 1px solid var(--mgv-line);
    font-size: 13px;
}

.mgv-playlist-head > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mgv-playlist-head > span {
    color: var(--mgv-muted);
    font-size: 11px;
}

.mgv-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mgv-accent);
    box-shadow: 0 0 0 5px rgba(255, 49, 88, .11);
}

.mgv-playlist-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: none;
    overflow-y: visible;
    padding: 9px;
}

.mgv-playlist-item {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 11px;
    padding: 8px;
    border-radius: 12px;
    transition: background .18s ease;
}

.mgv-playlist-item:hover {
    background: var(--mgv-soft);
}

.mgv-playlist-thumb {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 9px;
    background: #111318;
}

.mgv-playlist-thumb i {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    padding-left: 2px;
    border-radius: 50%;
    background: rgba(0, 0, 0, .68);
    color: #fff;
    font-size: 10px;
    font-style: normal;
    transform: translate(-50%, -50%);
}

.mgv-playlist-thumb em {
    position: absolute;
    right: 4px;
    bottom: 4px;
    padding: 2px 4px;
    border-radius: 4px;
    background: rgba(0, 0, 0, .82);
    color: #fff;
    font-size: 9px;
    font-style: normal;
}

.mgv-playlist-copy {
    display: flex;
    min-width: 0;
    justify-content: center;
    flex-direction: column;
}

.mgv-playlist-copy strong {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mgv-playlist-copy small {
    overflow: hidden;
    color: var(--mgv-muted);
    font-size: 10px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mgv-playlist-empty {
    padding: 45px 15px;
    color: var(--mgv-muted);
    text-align: center;
}

/* Comments */
.mgv-comment-head strong {
    color: var(--mgv-accent);
}

.mgv-comment {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    margin-left: calc(var(--comment-depth) * 26px);
    padding: 18px 0;
    border-top: 1px solid var(--mgv-line);
}

.mgv-comment-avatar img,
.mgv-comment-avatar .profile_img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.mgv-comment-body header {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 9px;
    align-items: center;
    font-size: 12px;
}

.mgv-comment-body header span,
.mgv-comment-body time {
    color: var(--mgv-muted);
    font-size: 11px;
}

.mgv-comment-content {
    margin-top: 9px;
    color: #3d424c;
    font-size: 14px;
    line-height: 1.7;
}

.mgv-secret {
    display: inline-block;
    margin-right: 6px;
    padding: 3px 6px;
    border-radius: 5px;
    background: #fff0f3;
    color: var(--mgv-accent-dark);
    font-size: 10px;
    font-weight: 800;
}

.mgv-comment-actions {
    display: flex;
    gap: 12px;
    margin-top: 10px;
    color: var(--mgv-muted);
    font-size: 11px;
}

.mgv-comment-actions a:hover {
    color: var(--mgv-accent-dark);
}

.mgv-comment-empty {
    margin: 0;
    padding: 34px 0;
    border-top: 1px solid var(--mgv-line);
    color: var(--mgv-muted);
    text-align: center;
}

.mgv-comment-write textarea {
    width: 100%;
    min-height: 110px;
    padding: 15px;
    resize: vertical;
    border: 1px solid var(--mgv-line);
    border-radius: 12px;
    outline: 0;
    color: var(--mgv-ink);
    font: inherit;
}

.mgv-comment-write textarea:focus {
    border-color: var(--mgv-accent);
    box-shadow: 0 0 0 3px rgba(255, 49, 88, .09);
}

.mgv-comment-count {
    margin-top: 5px;
    color: var(--mgv-muted);
    font-size: 11px;
    text-align: right;
}

.mgv-comment-guest {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.mgv-comment-guest input {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--mgv-line);
    border-radius: 9px;
}

.mgv-comment-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 12px;
}

/* Write */
.mgv-write-head {
    display: block;
}

.mgv-form-card {
    margin-top: 22px;
    padding: clamp(18px, 4vw, 32px);
    border: 1px solid var(--mgv-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--mgv-shadow);
}

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

.mgv-form-grid.mgv-meta-fields {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mgv-field {
    display: block;
    margin-bottom: 20px;
}

.mgv-field > span,
.mgv-editor-field > span {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 800;
}

.mgv-field > span b,
.mgv-editor-field > span b {
    color: var(--mgv-accent);
}

.mgv-field input[type="text"],
.mgv-field input[type="password"],
.mgv-field input[type="email"],
.mgv-field input[type="url"],
.mgv-field select {
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--mgv-line);
    border-radius: 11px;
    outline: 0;
    background: #fff;
    color: var(--mgv-ink);
    font: inherit;
    font-size: 14px;
}

.mgv-field input:focus,
.mgv-field select:focus {
    border-color: var(--mgv-accent);
    box-shadow: 0 0 0 3px rgba(255, 49, 88, .09);
}

.mgv-field small,
.mgv-editor-field > small {
    display: block;
    margin-top: 7px;
    color: var(--mgv-muted);
    font-size: 11px;
    line-height: 1.5;
}

.mgv-video-url-field input {
    border-color: rgba(255, 49, 88, .4) !important;
    background: #fffafb !important;
}

.mgv-legacy-note {
    margin: -6px 0 22px;
    padding: 11px 13px;
    border-radius: 10px;
    background: #fff7e8;
    color: #8b5b13;
    font-size: 12px;
    line-height: 1.55;
}

.mgv-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 13px 15px;
    border-radius: 11px;
    background: var(--mgv-soft);
    font-size: 12px;
}

.mgv-options strong {
    margin-right: 4px;
}

.mgv-option {
    cursor: pointer;
}

.mgv-editor-field {
    margin-bottom: 20px;
}

.mgv-editor-field .cke,
.mgv-editor-field textarea {
    max-width: 100%;
}

.mgv-upload-group {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--mgv-line);
}

.mgv-upload-group h3 {
    margin: 0;
    font-size: 16px;
}

.mgv-upload-group > p {
    margin: 7px 0 16px;
    color: var(--mgv-muted);
    font-size: 12px;
    line-height: 1.55;
}

.mgv-file-row {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 12px 0;
    border-top: 1px solid var(--mgv-line);
    font-size: 12px;
}

.mgv-file-row > label:first-child {
    font-weight: 800;
}

.mgv-file-row > small {
    color: var(--mgv-muted);
}

.mgv-file-row > input[type="text"] {
    grid-column: 2 / -1;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--mgv-line);
    border-radius: 9px;
}

.mgv-file-delete {
    grid-column: 2 / -1;
    color: var(--mgv-accent-dark);
}

.mgv-captcha {
    margin-top: 20px;
}

@media (max-width: 1100px) {
    .mgv-watch-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .mgv-playlist-item {
        grid-template-columns: 112px minmax(0, 1fr);
    }
}

@media (max-width: 900px) {
    .mgv-board,
    .mgv-watch,
    .mgv-write {
        padding-right: 14px;
        padding-left: 14px;
    }

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

    .mgv-watch-layout {
        display: block;
    }

    .mgv-playlist {
        position: relative;
        top: auto;
        margin-top: 24px;
    }

    .mgv-playlist-items {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: none;
    }
}

@media (max-width: 640px) {
    .mgv-board-head {
        display: block;
        padding-top: 24px;
    }

    .mgv-head-actions {
        justify-content: flex-start;
        margin-top: 18px;
    }

    .mgv-count {
        display: none;
    }

    .mgv-toolbar {
        display: block;
    }

    .mgv-toolbar > strong {
        display: none;
    }

    .mgv-search {
        grid-template-columns: 78px minmax(0, 1fr) 42px;
        width: 100%;
    }

    .mgv-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .mgv-play {
        opacity: 1;
        transform: translate(-50%, -50%) scale(.88);
    }

    .mgv-watch {
        padding-top: 10px;
    }

    .mgv-player-shell {
        margin-right: -14px;
        margin-left: -14px;
        border-radius: 0;
    }

    .mgv-watch-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .mgv-watch-actions > div:last-child {
        width: 100%;
        overflow-x: auto;
    }

    .mgv-video-details {
        grid-template-columns: 1fr;
    }

    .mgv-description,
    .mgv-files,
    .mgv-comment-section,
    .mgv-comment-write {
        padding: 19px;
    }

    .mgv-prev-next {
        grid-template-columns: 1fr;
    }

    .mgv-playlist-items {
        display: block;
    }

    .mgv-playlist-item {
        grid-template-columns: 128px minmax(0, 1fr);
    }

    .mgv-form-grid,
    .mgv-form-grid.mgv-meta-fields {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .mgv-file-row {
        grid-template-columns: 1fr;
    }

    .mgv-file-row > input[type="text"],
    .mgv-file-delete {
        grid-column: auto;
    }

    .mgv-submit-row .mgv-btn {
        flex: 1;
    }

    .mgv-comment {
        margin-left: calc(var(--comment-depth) * 12px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mgv-board *,
    .mgv-watch *,
    .mgv-write * {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
