/* Video posts. Kept separate from app.css so the frozen page styles stay untouched. */
.mtv-post__media.is-video {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
}
/* The player takes the clip's own shape: a vertical reel stays a tall, centred
   frame instead of being stretched across the column and letterboxed. */
.mtv-post__video {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 78vh;
    object-fit: contain;
    border-radius: 14px;
    background: #0b141c;
}
.mtv-post__media.is-video.is-portrait .mtv-post__video { max-width: min(100%, 430px); }
/* Phones and tablets: a reel previews as a 4:5 card, the shape social feeds use,
   instead of a 9:16 clip that swallows the whole screen. The post page keeps the
   clip's full frame, because watching it is the reason the reader is there. */
@media (max-width: 820px) {
    .mtv-post__media.is-video.is-portrait .mtv-post__video,
    .mtv-post__media.is-video.is-unknown .mtv-post__video {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 68vh;
        aspect-ratio: 4 / 5;
        object-fit: cover;
    }
    .mtv-thread .mtv-post__media.is-video.is-portrait .mtv-post__video,
    .mtv-thread .mtv-post__media.is-video.is-unknown .mtv-post__video {
        width: auto;
        height: auto;
        max-height: 78vh;
        aspect-ratio: auto;
        object-fit: contain;
    }
}
/* A still of the clip covers the player until frames really advance. iOS drops the
   poster as soon as play() is tried, so without this a refused or stalled clip shows
   a black rectangle. The image follows the player's own box: contained on desktop and
   in the thread, a 4:5 crop on phone feeds, exactly like the video it covers. */
.mtv-post__media.is-video { position: relative; }
.mtv-post__still {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    overflow: hidden;
    background: #0b141c;
    pointer-events: none;
}
.mtv-post__still img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Wait a moment before inviting a tap, so a clip that autoplays never flashes a
   play button on its way into motion. The button is the only part of the still that
   takes taps; everywhere else lets the touch reach the native controls. */
.mtv-post__still .mtv-post__play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58px;
    height: 58px;
    margin: -29px 0 0 -29px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(8, 27, 44, .74) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5.2v13.6L19 12z'/%3E%3C/svg%3E") center / 24px 24px no-repeat;
    opacity: 0;
    pointer-events: auto;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    animation: mtv-still-invite 0s linear 1.2s forwards;
}
.mtv-post__still .mtv-post__play:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@keyframes mtv-still-invite { to { opacity: 1; } }
@media (max-width: 820px) {
    .mtv-post__media.is-video.is-portrait .mtv-post__still img,
    .mtv-post__media.is-video.is-unknown .mtv-post__still img { object-fit: cover; }
    .mtv-thread .mtv-post__media.is-video.is-portrait .mtv-post__still img,
    .mtv-thread .mtv-post__media.is-video.is-unknown .mtv-post__still img { object-fit: contain; }
}
/* The square composer chip keeps the whole clip visible instead of cropping a reel. */
video.mtv-composer__thumb { background: #0b141c; object-fit: contain; }
.mtv-pitem__media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mtv-video-badge {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 1;
    background: rgba(8, 27, 44, .78);
    color: #fff;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 9px;
    border-radius: 999px;
    pointer-events: none;
}
video.mtv-adminrow__thumb { background: #0b141c; }
.story-share__thumb { object-fit: cover; }

/* Creator profile media grid — photos, video covers and text notes in the same
   3-column rhythm as the reference. Videos open the reels player on tap. */
.mtv-mediagrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    margin: 0 0 18px;
}
@media (min-width: 700px) { .mtv-mediagrid { gap: 10px; } }
.mtv-mediatile {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 4px;
    background: #0b141c;
    color: #fff;
    text-decoration: none;
    isolation: isolate;
}
.mtv-mediatile img,
.mtv-mediatile video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mtv-mediatile__text {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 12px;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(155deg, #243040, #0b141c);
}
.mtv-mediatile__play {
    position: absolute;
    top: 8px;
    right: 8px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: rgba(8, 27, 44, .68);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.mtv-mediatile__play svg { width: 13px; height: 13px; fill: #fff; margin-left: 2px; }
.mtv-mediatile__badge {
    position: absolute;
    top: 6px;
    left: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(8, 27, 44, .74);
    color: #fff;
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.mtv-mediatile__badge--count {
    top: auto;
    left: auto;
    right: 6px;
    bottom: 6px;
    text-transform: none;
    letter-spacing: 0;
}
.mtv-mediatile:focus-visible {
    outline: 2px solid var(--mtv-magenta);
    outline-offset: 2px;
}
/* The Creators page mixes authors in one grid, so every tile carries the person
   who posted it. The pill is a sibling link, never nested inside the media link. */
.mtv-mediatile-wrap { position: relative; min-width: 0; }
.mtv-mediatile__author {
    position: absolute;
    left: 6px;
    bottom: 6px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: calc(100% - 44px);
    padding: 3px 9px 3px 3px;
    border-radius: 999px;
    background: rgba(8, 27, 44, .72);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    text-decoration: none;
}
.mtv-mediatile__author img,
.mtv-mediatile__author-initials {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    object-fit: cover;
    background: linear-gradient(140deg, var(--mtv-magenta), #102F43);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .04em;
}
.mtv-mediatile__author-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mtv-mediatile__author:focus-visible {
    outline: 2px solid var(--mtv-magenta);
    outline-offset: 2px;
}
@media (hover: hover) {
    .mtv-mediatile::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(8, 27, 44, .16);
        opacity: 0;
        transition: opacity .18s ease;
        pointer-events: none;
    }
    .mtv-mediatile:hover::after { opacity: 1; }
}

/* Full-screen reels player. One slide per snap, muted autoplay, sound on request. */
body.mtv-reels-open { overflow: hidden; }
.mtv-reels {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}
.mtv-reels[hidden] { display: none; }
.mtv-reels__frame {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}
.mtv-reels__track {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mtv-reels__track::-webkit-scrollbar { display: none; }
.mtv-reel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background: #000;
}
.mtv-reel__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    background: #000;
}
.mtv-reel.is-portrait .mtv-reel__video { object-fit: cover; }
.mtv-reel__glyph {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: -32px 0 0 -32px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .48);
    opacity: 0;
    transition: opacity .18s ease;
    pointer-events: none;
    z-index: 2;
}
.mtv-reel.is-paused .mtv-reel__glyph { opacity: 1; }
.mtv-reel__glyph svg { width: 26px; height: 26px; fill: #fff; margin-left: 3px; }
.mtv-reel__shade {
    position: absolute;
    inset: auto 0 0 0;
    height: 48%;
    background: linear-gradient(to top, rgba(0, 0, 0, .82), rgba(0, 0, 0, 0));
    pointer-events: none;
    z-index: 1;
}
.mtv-reel__meta {
    position: absolute;
    left: 16px;
    right: 78px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 2;
    color: #fff;
}
.mtv-reel__author {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.mtv-reel__author span { font-size: 13px; font-weight: 400; color: rgba(255, 255, 255, .72); }
.mtv-reel__caption {
    margin: 8px 0 0;
    max-height: 4.2em;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.4;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .45);
}
.mtv-reel__open {
    display: inline-block;
    margin-top: 10px;
    color: #fff;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .5);
}
.mtv-reel__views {
    margin: 6px 0 0;
    font-size: 12px;
    color: rgba(255, 255, 255, .76);
    letter-spacing: .02em;
}
/* Action rail: like, comments, save and share stay under the thumb on the right. */
.mtv-reel__rail {
    position: absolute;
    right: 10px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.mtv-reel__act {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
.mtv-reel__icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(8, 27, 44, .52);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.mtv-reel__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mtv-reel__act.is-on .mtv-reel__icon {
    background: var(--mtv-magenta);
}
.mtv-reel__count {
    max-width: 64px;
    overflow: hidden;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}
.mtv-reel__act:focus-visible { outline: none; }
.mtv-reel__act:focus-visible .mtv-reel__icon { outline: 2px solid #fff; outline-offset: 2px; }
.mtv-reels__toast {
    position: absolute;
    left: 50%;
    bottom: calc(34px + env(safe-area-inset-bottom));
    z-index: 5;
    margin: 0;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(8, 27, 44, .9);
    color: #fff;
    font-size: 12px;
    letter-spacing: .04em;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 8px);
    transition: opacity .18s ease, transform .18s ease;
}
.mtv-reels__toast.is-on {
    opacity: 1;
    transform: translate(-50%, 0);
}
.mtv-reels__bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: calc(10px + env(safe-area-inset-top)) 14px 26px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .7), rgba(0, 0, 0, 0));
    color: #fff;
}
.mtv-reels__title {
    margin: 0;
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.mtv-reels__title span { margin-left: 6px; opacity: .6; }
.mtv-reels__sound {
    margin-left: auto;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}
.mtv-reels__sound[aria-pressed="true"] { background: rgba(255, 255, 255, .92); color: #081b2c; }
.mtv-reels__close {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}
.mtv-reels__nav {
    position: absolute;
    right: 14px;
    z-index: 3;
    display: none;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    background: rgba(0, 0, 0, .45);
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}
.mtv-reels__nav--prev { top: 50%; transform: translateY(-58px); }
.mtv-reels__nav--next { top: 50%; transform: translateY(18px); }
@media (min-width: 900px) {
    .mtv-reels { padding: 18px; }
    .mtv-reels__frame { max-width: 460px; border-radius: 20px; }
    .mtv-reels__nav { display: grid; }
}
@media (prefers-reduced-motion: reduce) {
    .mtv-mediatile::after,
    .mtv-reel__glyph { transition: none; }
}

/* ---------- Post composer ---------- */

.mtv-postbox { padding: 18px 20px; }
.mtv-postbox__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; }
.mtv-postbox__fields { min-width: 0; display: grid; gap: 10px; }
.mtv-postbox__fields textarea { min-height: 54px; font-size: 17px; line-height: 1.45; }
.mtv-postbox__preview { margin-top: 2px; }

.mtv-postbox__foot {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 69, 116, .12);
}
/* The tool row never shrinks or wraps: if space runs out, the Post button drops instead. */
.mtv-postbox__tools { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; flex-wrap: nowrap; }
.mtv-postbox__tool {
    position: relative;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(0, 69, 116, .62);
    cursor: pointer;
    transition: background .16s ease, color .16s ease;
}
.mtv-postbox__tool:hover,
.mtv-postbox__tool:focus-within,
.mtv-postbox__tool.is-on { background: rgba(216, 30, 91, .10); color: var(--mtv-magenta); }
.mtv-postbox__tool:focus-visible { outline: 2px solid rgba(216, 30, 91, .5); outline-offset: 2px; }
.mtv-postbox__tool svg { pointer-events: none; }
.mtv-postbox__fileinput {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    font-size: 0;
    cursor: pointer;
}
.mtv-postbox__giftag {
    font: 800 10.5px/1 var(--mtv-font-ui);
    letter-spacing: .04em;
    border: 1.6px solid currentColor;
    border-radius: 5px;
    padding: 3px 4px;
}
.mtv-postbox__submitwrap { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mtv-postbox__count {
    font: 600 11.5px var(--mtv-font-ui);
    color: rgba(0, 69, 116, .48);
    font-variant-numeric: tabular-nums;
}
.mtv-postbox__count.is-near { color: var(--mtv-magenta); }
.mtv-postbox__post {
    border: 0;
    border-radius: 999px;
    padding: 9px 22px;
    background: linear-gradient(140deg, var(--mtv-magenta), #B41650);
    color: #fff;
    font: 700 13.5px/1 var(--mtv-font-ui);
    cursor: pointer;
    box-shadow: 0 10px 20px -12px rgba(216, 30, 91, .8);
}
.mtv-postbox__post:disabled { opacity: .42; cursor: default; box-shadow: none; }
.mtv-postbox__options { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mtv-postbox__options .mtv-composer__hint { margin-right: 0; }

.mtv-postbox__panel {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid rgba(0, 69, 116, .14);
    border-radius: 14px;
    background: rgba(0, 69, 116, .03);
}
.mtv-postbox__panel[hidden] { display: none; }
.mtv-postbox__panelhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mtv-postbox__paneltitle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: 700 11.5px var(--mtv-font-ui);
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--mtv-magenta);
}
.mtv-postbox__panelclose {
    border: 0;
    background: none;
    padding: 2px;
    color: rgba(0, 69, 116, .55);
    font: 600 11.5px var(--mtv-font-ui);
    cursor: pointer;
}
.mtv-postbox__panelclose:hover { color: var(--mtv-magenta); }
.mtv-postbox__pollopts { display: grid; gap: 6px; }
.mtv-postbox__pollopt { display: flex; align-items: center; gap: 6px; }
.mtv-postbox__pollopt input,
.mtv-postbox__place input {
    width: 100%;
    border: 1px solid rgba(0, 69, 116, .16);
    border-radius: 10px;
    background: #fff;
    padding: 8px 10px;
    font: 500 13px var(--mtv-font-ui);
    color: var(--mtv-navy-ink);
}
.mtv-postbox__pollopt input:focus,
.mtv-postbox__place input:focus {
    outline: none;
    border-color: rgba(216, 30, 91, .55);
    box-shadow: 0 0 0 3px rgba(216, 30, 91, .10);
}
.mtv-postbox__pollopt input::placeholder,
.mtv-postbox__place input::placeholder { color: rgba(0, 69, 116, .42); }
.mtv-postbox__pollopt button,
.mtv-postbox__place button {
    border: 0;
    background: transparent;
    padding: 2px 6px;
    color: rgba(0, 69, 116, .4);
    font-size: 19px;
    line-height: 1;
    cursor: pointer;
}
.mtv-postbox__pollopt button:hover,
.mtv-postbox__place button:hover { color: var(--mtv-magenta); }
.mtv-postbox__polladd {
    justify-self: start;
    border: 0;
    background: none;
    padding: 2px 0;
    color: var(--mtv-magenta);
    font: 700 12px var(--mtv-font-ui);
    cursor: pointer;
}
.mtv-postbox__place { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.mtv-postbox__place > svg { color: var(--mtv-magenta); }

.mtv-postbox__emoji {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 2px;
    max-height: 182px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid rgba(0, 69, 116, .14);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 36px -24px rgba(9, 34, 56, .5);
}
.mtv-postbox__emoji[hidden] { display: none; }
.mtv-postbox__emojiitem {
    border: 0;
    background: transparent;
    padding: 5px 2px;
    border-radius: 8px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.mtv-postbox__emojiitem:hover,
.mtv-postbox__emojiitem:focus-visible { background: rgba(216, 30, 91, .10); }

/* ---------- Polls and places on a post ---------- */

.mtv-post__place {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: -2px 0 8px;
    font: 600 12px var(--mtv-font-ui);
    color: rgba(0, 69, 116, .6);
}
.mtv-poll { display: grid; gap: 6px; max-width: 520px; margin: 10px 0 4px; }
.mtv-poll form { margin: 0; }
.mtv-poll__option {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    overflow: hidden;
    padding: 9px 12px;
    border: 1px solid rgba(0, 69, 116, .18);
    border-radius: 11px;
    background: #fff;
    color: var(--mtv-navy-ink);
    font: 600 13px/1.3 var(--mtv-font-ui);
    text-align: left;
    cursor: pointer;
}
.mtv-poll__option:disabled { cursor: default; }
.mtv-poll__option.is-voted { border-color: rgba(216, 30, 91, .5); }
.mtv-poll__fill {
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--pct, 0%);
    background: rgba(216, 30, 91, .10);
    transition: width .3s ease;
}
.mtv-poll__label { position: relative; z-index: 1; min-width: 0; overflow-wrap: anywhere; }
.mtv-poll__pct {
    position: relative;
    z-index: 1;
    flex: none;
    font-weight: 800;
    color: var(--mtv-magenta);
    font-variant-numeric: tabular-nums;
}
.mtv-poll__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 2px 0 0;
    font: 600 11.5px var(--mtv-font-ui);
    color: rgba(0, 69, 116, .5);
}
.mtv-poll__meta a { color: var(--mtv-magenta); text-decoration: underline; }

:root[data-theme="dark"] .mtv-postbox__tool { color: rgba(206, 223, 238, .66); }
:root[data-theme="dark"] .mtv-postbox__tool:hover,
:root[data-theme="dark"] .mtv-postbox__tool:focus-within,
:root[data-theme="dark"] .mtv-postbox__tool.is-on { background: rgba(255, 135, 172, .14); color: #FF87AC; }
:root[data-theme="dark"] .mtv-postbox__foot { border-top-color: rgba(166, 196, 222, .14); }
:root[data-theme="dark"] .mtv-postbox__count { color: rgba(206, 223, 238, .5); }
:root[data-theme="dark"] .mtv-postbox__count.is-near { color: #FF87AC; }
:root[data-theme="dark"] .mtv-postbox__panel { border-color: rgba(166, 196, 222, .16); background: rgba(255, 255, 255, .035); }
:root[data-theme="dark"] .mtv-postbox__pollopt input,
:root[data-theme="dark"] .mtv-postbox__place input,
:root[data-theme="dark"] .mtv-postbox__emoji {
    border-color: rgba(166, 196, 222, .2);
    background: rgba(255, 255, 255, .055);
    color: #E3EDF6;
}
:root[data-theme="dark"] .mtv-postbox__pollopt input::placeholder,
:root[data-theme="dark"] .mtv-postbox__place input::placeholder { color: rgba(206, 223, 238, .4); }
:root[data-theme="dark"] .mtv-postbox__pollopt button,
:root[data-theme="dark"] .mtv-postbox__place button,
:root[data-theme="dark"] .mtv-postbox__panelclose { color: rgba(206, 223, 238, .55); }
:root[data-theme="dark"] .mtv-postbox__emojiitem:hover,
:root[data-theme="dark"] .mtv-postbox__emojiitem:focus-visible { background: rgba(255, 135, 172, .14); }
:root[data-theme="dark"] .mtv-post__place { color: rgba(206, 223, 238, .62); }
:root[data-theme="dark"] .mtv-poll__option {
    border-color: rgba(166, 196, 222, .22);
    background: rgba(255, 255, 255, .05);
    color: #E3EDF6;
}
:root[data-theme="dark"] .mtv-poll__fill { background: rgba(255, 135, 172, .16); }
:root[data-theme="dark"] .mtv-poll__meta { color: rgba(206, 223, 238, .55); }

@media (max-width: 640px) {
    .mtv-postbox { padding: 14px; }
    .mtv-postbox__row { gap: 10px; }
    .mtv-postbox__fields textarea { font-size: 16px; }
    .mtv-postbox__tools { gap: 0; }
    .mtv-postbox__tool { width: 30px; height: 30px; }
    /* The counter is redundant until the limit is close; the six tools need the room. */
    .mtv-postbox__count { display: none; }
    .mtv-postbox__count.is-near { display: inline; margin-right: 8px; }
    .mtv-postbox__post { padding: 8px 16px; }
    .mtv-postbox__emoji { grid-template-columns: repeat(8, minmax(0, 1fr)); }
    .mtv-postbox__options .mtv-composer__hint { flex-basis: 100%; order: 3; }

    /* The action row normally shares the avatar-indented column, which leaves no room for
       readable icons. On phones let it span the whole card and spread the controls out. */
    .mtv-post__actions {
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 0;
        margin-left: calc(-1 * (44px + 14px));
    }
    .mtv-post__actions button,
    .mtv-post__action { min-width: 0; min-height: 44px; padding: 7px 6px; gap: 4px; font-size: 12px; }
    .mtv-post__actions svg,
    .mtv-post__action svg,
    .mtv-post__actions .mtv-report summary svg { width: 20px; height: 20px; }
    .mtv-post__storytext { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .mtv-poll__fill { transition: none; }
}
