@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

:root {
    --mc-bg: #000;
    --mc-panel: #080d15;
    --mc-panel-2: #111a27;
    --mc-soft: #1b2636;
    --mc-line: #223047;
    --mc-text: #fff;
    --mc-muted: #9fb6ce;
    --mc-blue: #8ec5f2;
    --mc-accent: #ff7e08;
    --mc-yellow: #ffc400;
    --mc-green: #00dc5a;
    --mc-container: 1400px;
    --mc-radius: 8px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    background: var(--mc-bg);
}

body {
    margin: 0;
    background: var(--mc-bg);
    color: var(--mc-text);
    font-family: Inter, "Inter Fallback", Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    text-rendering: geometricPrecision;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg,
video,
iframe {
    display: block;
}

img,
video,
iframe {
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

button {
    color: inherit;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.mc-container {
    width: min(100% - 32px, var(--mc-container));
    margin-inline: auto;
}

.mc-page {
    min-height: 70vh;
    padding: 24px 0 44px;
}

.mc-page--home {
    padding-top: 24px;
}

.mc-page--detail {
    padding-top: 0;
}

.mc-page--watch {
    padding-top: 28px;
}

.mc-page--watch .mc-container {
    width: min(100% - 32px, 1368px);
}

/* Header */
.mc-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    height: 64px;
    min-height: 64px;
    background: #000;
    border: 0;
    box-shadow: none;
}

.admin-bar .mc-header {
    top: 0;
}

.mc-header__inner {
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.mc-header__desktop {
    width: 100%;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.mc-header__mobile,
.mc-mobile-panel,
.mc-menu-toggle,
.mc-mobile-bars {
    display: none;
}

.mc-header__nav-group,
.mc-desktop-nav,
.mc-header__actions {
    display: flex;
    align-items: center;
}

.mc-header__nav-group {
    min-width: 0;
    gap: 24px;
}

.mc-brand,
.mc-logo-frame {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    height: 64px;
    overflow: hidden;
}

.mc-logo-frame img,
.mc-logo-frame svg {
    width: 100px;
    height: 80px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    opacity: 1;
    filter: none;
}

.mc-logo-frame--mobile img,
.mc-logo-frame--mobile svg {
    width: 100px;
    height: 80px;
}

.mc-desktop-nav {
    gap: 22px;
    white-space: nowrap;
}

.mc-desktop-nav > a,
.mc-nav-dropdown__button,
.mc-login-link {
    display: inline-flex;
    align-items: center;
    min-height: 64px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    cursor: pointer;
}

.mc-desktop-nav > a:hover,
.mc-nav-dropdown__button:hover,
.mc-login-link:hover {
    color: var(--mc-accent);
}

.mc-nav-dropdown {
    position: relative;
}

.mc-nav-dropdown__button {
    gap: 5px;
}

.mc-chevron {
    width: 14px;
    height: 14px;
}

.mc-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    min-width: 190px;
    max-height: none;
    overflow: visible;
    padding: 14px 16px;
    border: 1px solid #222;
    border-radius: 3px;
    background: #000;
    box-shadow: none;
    z-index: 1003;
}

.mc-nav-dropdown:hover .mc-dropdown-menu,
.mc-nav-dropdown:focus-within .mc-dropdown-menu {
    display: grid;
    column-gap: 48px;
    row-gap: 0;
}

.mc-dropdown-menu--genres {
    min-width: 640px;
    grid-template-columns: repeat(4, minmax(118px, 1fr));
}

.mc-dropdown-menu--regions {
    min-width: 500px;
    grid-template-columns: repeat(3, minmax(118px, 1fr));
}

.mc-dropdown-menu--years {
    min-width: 540px;
    grid-template-columns: repeat(3, minmax(120px, 1fr));
}

.mc-dropdown-menu__item {
    padding: 8px 0;
    border-radius: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
}

.mc-dropdown-menu__item:hover {
    background: transparent;
    color: var(--mc-accent);
}

.mc-header__actions {
    flex: 0 0 auto;
    gap: 16px;
}

.mc-search {
    width: 250px;
    height: 38px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #263241;
    border-radius: 999px;
    background: rgba(255, 255, 255, .045);
}

.mc-search input {
    min-width: 0;
    flex: 1 1 auto;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    padding: 0 14px;
    font-size: 14px;
}

.mc-search input::placeholder {
    color: #9aa8b8;
}

.mc-search button {
    width: 46px;
    height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-left: 1px solid #263241;
    background: transparent;
    color: var(--mc-accent);
    cursor: pointer;
}

.mc-search svg,
.mc-login-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
}

.mc-login-link {
    gap: 8px;
    white-space: nowrap;
}

@media (min-width: 1280px) and (max-width: 1535px) {
    .mc-header__desktop {
        gap: 14px;
    }

    .mc-header__nav-group {
        gap: 18px;
    }

    .mc-desktop-nav {
        gap: 18px;
    }

    .mc-search {
        width: 220px;
    }
}

@media (min-width: 768px) {
    .mc-header__desktop {
        display: flex;
    }

    .mc-header__mobile,
    .mc-mobile-panel,
    .mc-menu-toggle,
    .mc-mobile-bars {
        display: none;
    }
}

/* Home and sections */
.mc-home-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
}

.mc-home-layout__main {
    min-width: 0;
}

.mc-home-layout__sidebar,
.mc-archive-sidebar {
    display: grid;
    gap: 16px;
}

.mc-widget-empty {
    min-height: 160px;
    display: grid;
    place-items: center;
    border: 1px dashed #273852;
    border-radius: var(--mc-radius);
    background: #080d15;
    color: var(--mc-muted);
}

.mc-section,
.mc-slide-widget {
    margin-bottom: 28px;
}

.mc-section__header,
.mc-slide-widget__head,
.mc-related-section__head {
    margin-bottom: 12px;
}

.mc-section__heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mc-section__title-group {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mc-section__title,
.mc-related-section__title {
    display: inline-block;
    margin: 0;
    color: #fff;
    font-size: 24px;
    line-height: 32px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2px solid var(--mc-accent);
}

.mc-slide-widget__title {
    display: inline-block;
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 28px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 2px solid var(--mc-accent);
}

.mc-section__title--accent {
    color: var(--mc-accent);
    border-bottom: 0;
}

.mc-section__view-all {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 4px;
    background: #152033;
    color: #fff;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
}

.mc-section__view-icon {
    width: 16px;
    height: 16px;
}

.mc-section__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 0;
    align-items: center;
}

.mc-filter-tab {
    appearance: none;
    min-height: 32px;
    border: 0;
    border-radius: 4px;
    background: #172233;
    color: #fff;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
}

.mc-filter-tab.is-active,
.mc-filter-tab:hover {
    background: var(--mc-accent);
}

.mc-filter-tab:focus {
    outline: none;
}

.mc-filter-tab:focus-visible {
    outline: 2px solid rgba(255, 126, 8, .45);
    outline-offset: 2px;
}

.mc-section__grid--poster,
.mc-archive-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px 14px;
}

.mc-section__grid--landscape {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 154px;
    gap: 12px;
}

.mc-slide-widget__viewport,
.mc-related-track {
    overflow: hidden;
}

.mc-slide-widget__track,
.mc-related-track {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
}

.mc-slide-widget__track::-webkit-scrollbar,
.mc-related-track::-webkit-scrollbar {
    display: none;
}

.mc-slide-widget__track.is-pressed,
.mc-slide-widget__track.is-dragging,
.mc-slide-widget__track.is-momentum,
.mc-related-track.is-pressed,
.mc-related-track.is-dragging,
.mc-related-track.is-momentum {
    cursor: grabbing;
}

.mc-slide-widget__track.is-free-scroll,
.mc-related-track.is-free-scroll {
    scroll-snap-type: none;
}

.mc-slide-widget__track.is-dragging a,
.mc-related-track.is-dragging a {
    pointer-events: none;
}

/* Movie cards */
.mc-movie-card {
    min-width: 0;
}

.mc-movie-card--rail {
    flex: 0 0 160px;
    scroll-snap-align: start;
}

.mc-movie-card__link,
.mc-movie-card__media,
.mc-movie-card__body {
    display: block;
}

.mc-movie-card__media,
.mc-landscape-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--mc-radius);
    background: #000;
}

.mc-movie-card__media {
    aspect-ratio: 2 / 3;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
}

.mc-movie-card__image,
.mc-landscape-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mc-movie-card__body {
    margin-top: 4px;
}

.mc-movie-card__title,
.mc-movie-card__subtitle,
.mc-landscape-card__title,
.mc-landscape-card__subtitle,
.mc-thumb-rank-item__title,
.mc-thumb-rank-item__subtitle {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mc-movie-card__title {
    color: #fff;
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
    margin: 0;
}

.mc-movie-card__subtitle {
    color: var(--mc-blue);
    font-size: 14px;
    line-height: 20px;
}

@media (min-width: 640px) {
    .mc-movie-card--rail {
        flex-basis: 180px;
    }
}

.mc-landscape-cell {
    min-width: 0;
}

.mc-landscape-cell--wide {
    grid-column: span 2;
    grid-row: span 2;
}

.mc-landscape-card {
    display: block;
    width: 100%;
    height: 100%;
}

.mc-landscape-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0, 0, 0, 0) 55%);
}

.mc-landscape-card__badges {
    position: absolute;
    z-index: 2;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.mc-landscape-card__badges .mc-badge {
    position: static;
}

.mc-landscape-card__badges .mc-badge--quality {
    margin-left: auto;
}

.mc-landscape-card__caption {
    position: absolute;
    z-index: 2;
    left: 12px;
    right: 12px;
    bottom: 12px;
}

.mc-landscape-card__title {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

.mc-landscape-card__subtitle {
    color: #fff;
    font-size: 14px;
}

.mc-badge {
    position: absolute;
    z-index: 2;
    min-height: 18px;
    display: inline-flex;
    align-items: center;
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 10px;
    line-height: 1;
    font-weight: 500;
}

.mc-badge--lang {
    top: 6px;
    left: 6px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
}

.mc-badge--quality {
    top: 6px;
    right: 6px;
    background: var(--mc-yellow);
    color: #000;
}

.mc-badge--episode {
    left: 6px;
    bottom: 6px;
    background: rgba(0, 0, 0, .72);
    color: #fff;
}

.mc-card-play {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .25);
    color: #fff;
}

.mc-movie-card__link:hover .mc-card-play,
.mc-landscape-card:hover .mc-card-play {
    display: flex;
}

.mc-card-play .mc-play-icon {
    width: 42px;
    height: 42px;
    padding: 11px;
    border-radius: 999px;
    background: var(--mc-accent);
}

.mc-play-icon {
    width: 22px;
    height: 22px;
}

.mc-clock-icon {
    width: 12px;
    height: 12px;
    margin-right: 3px;
}

.is-filtered-out {
    display: none;
}

/* Sidebar ranks */
.mc-rank-card {
    border-radius: 6px;
    background: #080d15;
    padding: 16px;
}

.mc-rank-card__title {
    margin: 0 0 12px;
    color: var(--mc-accent);
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
}

.mc-rank-card__title--bar {
    padding-left: 10px;
    border-left: 4px solid var(--mc-accent);
    color: #fff;
}

.mc-rank-list {
    display: grid;
    gap: 8px;
}

.mc-rank-row {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 4px;
    background: #1b2636;
}

.mc-rank-row:nth-child(n+4) {
    background: transparent;
}

.mc-rank-row__number {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--mc-accent);
    color: #fff;
    font-weight: 500;
}

.mc-rank-row__number--3 {
    background: #ffc400;
}

.mc-rank-row__number--4 {
    background: #334155;
}

.mc-rank-row__title,
.mc-rank-row__meta {
    display: block;
}

.mc-rank-row__title {
    overflow: hidden;
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mc-rank-row__meta {
    color: var(--mc-blue);
    font-size: 12px;
}

.mc-thumb-rank-list {
    display: grid;
    gap: 16px;
}

.mc-thumb-rank-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.mc-thumb-rank-item__media {
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 6px;
    background: #111;
}

.mc-thumb-rank-item__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mc-thumb-rank-item__title {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
}

.mc-thumb-rank-item__subtitle {
    color: var(--mc-blue);
    font-size: 13px;
}

.mc-thumb-rank-item__rating,
.mc-thumb-rank-item__views {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #fff;
    font-size: 12px;
}

.mc-star-icon {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: var(--mc-yellow);
}

.mc-star-icon.is-on {
    fill: var(--mc-yellow);
}

.mc-view-icon {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
}

/* Detail */
.mc-detail-hero {
    position: relative;
    background: #05080d;
}

.mc-detail-hero__backdrop {
    position: relative;
    display: block;
    height: 300px;
    overflow: hidden;
    color: #fff;
}

.mc-detail-hero__backdrop-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    opacity: .62;
    filter: blur(4px);
    transform: scale(1.02);
}

.mc-detail-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .18), rgba(0, 0, 0, .78) 62%, #000 100%);
}

.mc-detail-hero__play {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--mc-accent);
    color: #fff;
    transform: translate(-50%, -50%);
}

.mc-detail-hero__content {
    position: relative;
    margin-top: -126px;
}

.mc-detail-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.mc-detail-poster {
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: var(--mc-radius);
    background: #111;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}

.mc-detail-poster__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mc-detail-title,
.mc-watch-title {
    margin: 0 0 4px;
    color: #fff;
    font-size: 36px;
    line-height: 40px;
    font-weight: 700;
}

.mc-detail-original {
    margin: 0 0 14px;
    color: var(--mc-muted);
    font-size: 20px;
    font-weight: 400;
}

.mc-source-breadcrumb {
    width: 100%;
    margin: 14px 0;
    color: #9fb3ca;
    font-size: 14px;
}

.mc-source-breadcrumb__list {
    display: flex;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
    margin: 0;
    padding: 10px 0;
    border-top: 1px solid #1d2a3d;
    border-bottom: 1px solid #1d2a3d;
    list-style: none;
}

.mc-source-breadcrumb__item {
    display: inline-flex;
    min-width: 0;
    align-items: center;
}

.mc-source-breadcrumb__sep {
    margin: 0 8px;
    color: #607184;
}

.mc-source-breadcrumb__link:hover {
    color: #fff;
}

.mc-source-breadcrumb__current {
    max-width: 520px;
    display: inline-block;
    overflow: hidden;
    color: #7f8d9f;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mc-action-row,
.mc-meta-row,
.mc-rating-row,
.mc-view-row,
.mc-term-row,
.mc-share {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.mc-button,
.mc-server-btn,
.mc-episode-tab {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 5px;
    padding: 0 16px;
    font-weight: 500;
    cursor: pointer;
}

.mc-button__icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
}

.mc-button--trailer,
.mc-episode-tab,
.mc-server-btn {
    background: #1b2636;
    color: #fff;
}

.mc-button--watch,
.mc-server-btn.is-active {
    background: var(--mc-accent);
    color: #fff;
}

.mc-episode-tab.is-active,
.mc-episode-link.is-current {
    background: var(--mc-green);
    color: #000;
}

.mc-latest-note {
    width: 100%;
    margin-bottom: 16px;
    border: 1px dashed var(--mc-accent);
    color: #fff;
    padding: 12px 10px;
    font-size: 16px;
    white-space: normal;
    overflow-wrap: anywhere;
}

.mc-latest-note a {
    color: #fff;
    white-space: normal;
}

.mc-quality-pill {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
    background: var(--mc-yellow);
    color: #000;
    padding: 0 9px;
    font-size: 12px;
    font-weight: 500;
}

.mc-stars {
    display: inline-flex;
    gap: 3px;
}

.mc-stars svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: var(--mc-yellow);
    cursor: pointer;
}

.mc-stars svg.is-on {
    fill: var(--mc-yellow);
}

.mc-rating-row__count,
.mc-muted {
    color: var(--mc-muted);
}

.mc-share {
    gap: 14px;
}

.mc-share__label,
.mc-share__icon {
    display: inline-flex;
    align-items: center;
}

.mc-share__label {
    gap: 8px;
    font-weight: 500;
}

.mc-share__icon {
    color: #fff;
}

.mc-share__icon--facebook:hover {
    color: #1877f2;
}

.mc-share__icon--twitter:hover {
    color: #1da1f2;
}

.mc-share__icon--pinterest:hover {
    color: #e60023;
}

.mc-share__glyph {
    width: 20px;
    height: 20px;
}

.mc-chip-list,
.mc-tag-list__items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mc-chip,
.mc-tag-chip {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #1b2636;
    color: #fff;
    padding: 0 10px;
    font-size: 13px;
    font-weight: 800;
}

.mc-chip:hover,
.mc-tag-chip:hover {
    background: #263448;
}

.mc-tag-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
    margin: 16px 0;
    padding-top: 14px;
    border-top: 1px solid #1d2a3d;
}

.mc-tag-list__label {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

.mc-tag-chip h4 {
    margin: 0;
    font-size: inherit;
}

/* Cast */
.mc-cast-strip {
    position: relative;
    margin-top: 26px;
}

.mc-strip-head {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
}

.mc-strip-title {
    margin: 0;
    color: #fff;
    font-size: 20px;
    line-height: 28px;
    font-weight: 800;
}

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

.mc-round-btn,
.mc-cast-nav {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: #202c3f;
    color: #fff;
    cursor: pointer;
    transition: background .18s ease, transform .18s ease;
}

.mc-round-btn:hover,
.mc-cast-nav:hover {
    background: #2a394f;
}

.mc-round-btn:active,
.mc-cast-nav:active {
    transform: scale(.96);
}

.mc-round-btn svg,
.mc-cast-nav svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mc-cast-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 2px 0 8px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    cursor: grab;
    user-select: none;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
}

.mc-cast-track.is-pressed,
.mc-cast-track.is-dragging,
.mc-cast-track.is-momentum {
    cursor: grabbing;
}

.mc-cast-track.is-free-scroll {
    scroll-snap-type: none;
}

.mc-cast-track.is-dragging a {
    pointer-events: none;
}

.mc-cast-track::-webkit-scrollbar {
    display: none;
}

.mc-cast-person {
    width: 100px;
    flex: 0 0 100px;
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 8px;
    color: #fff;
    text-align: center;
    scroll-snap-align: start;
}

.mc-cast-person__avatar {
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 999px;
    background: #1b2636;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

.mc-cast-person__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mc-cast-person__name {
    width: 100%;
    margin: 0;
    overflow: hidden;
    color: #fff;
    font-size: 12px;
    line-height: 16px;
    font-weight: 800;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Episodes and content */
.mc-episode-section,
.mc-summary-source,
.mc-related-section,
.mc-watch-player-section {
    margin-top: 28px;
}

.mc-episode-section__title {
    margin: 0 0 16px;
    color: #fff;
    font-size: 20px;
    line-height: 28px;
    font-weight: 700;
}

.mc-watch-rating__title {
    margin: 0 0 16px;
    color: #fff;
    font-size: 18px;
    line-height: 28px;
    font-weight: 700;
}

.mc-episode-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.mc-episode-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mc-section__panel[hidden],
.mc-episode-grid[hidden] {
    display: none;
}

.mc-episode-section [hidden] {
    display: none;
}

.mc-episode-link {
    width: auto;
    min-width: 103px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    padding: 0;
    border-radius: 4px;
    background: #1b2636;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
    font-weight: 400;
    text-decoration: none;
    cursor: pointer;
}

.mc-episode-tab {
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
}

.mc-summary-source__title {
    display: inline-flex;
    margin: 0 0 16px;
    border-radius: 8px;
    background: #1b2636;
    color: #fff;
    padding: 9px 13px;
    font-size: 16px;
    font-weight: 500;
}

.mc-content-body {
    color: #d7e2ee;
    font-size: 15px;
}

.mc-content-body p {
    margin: 0 0 14px;
}

/* Watch */
.mc-player {
    aspect-ratio: 16 / 9;
    width: 100%;
    height: auto;
    max-width: 1368px;
    min-height: 0;
    margin: 0 auto;
    overflow: hidden;
    border-radius: var(--mc-radius);
    background: #000;
}

#mc-player iframe,
#mc-player video,
#mc-player > div {
    width: 100%;
    height: 100%;
    border: 0;
}

.mc-player__frame-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    width: 100%;
    height: 100%;
    background: #000;
}

.mc-player__poster,
.mc-player__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.mc-player__poster {
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
    transition: opacity .2s ease, visibility .2s ease;
}

.mc-player__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .42;
}

.mc-player__spinner {
    position: absolute;
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255, 255, 255, .18);
    border-top-color: var(--mc-accent);
    border-radius: 999px;
    animation: mc-spin .8s linear infinite;
}

.mc-player__frame {
    z-index: 2;
}

.mc-player__frame-shell.is-loaded .mc-player__poster {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@keyframes mc-spin {
    to {
        transform: rotate(360deg);
    }
}

#mc-player video {
    object-fit: contain;
}

.mc-player__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mc-muted);
}

.mc-watch-controls {
    display: grid;
    gap: 20px;
    margin-top: 14px;
}

.mc-server-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Archive */
.mc-archive-head {
    margin-bottom: 24px;
}

.mc-archive-title {
    margin: 0 0 8px;
    color: #fff;
    font-size: 30px;
    line-height: 36px;
    font-weight: 700;
}

.mc-search-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mc-search-result {
    display: flex;
    align-items: stretch;
    min-width: 0;
    gap: 14px;
    padding: 10px;
    border: 1px solid #172233;
    border-radius: 8px;
    background: #080d15;
    color: #fff;
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.mc-search-result:hover {
    border-color: #ff7a00;
    background: #0d141f;
    transform: translateY(-1px);
}

.mc-search-result__thumb {
    width: 84px;
    aspect-ratio: 2 / 3;
    flex: 0 0 84px;
    overflow: hidden;
    border-radius: 6px;
    background: #111;
}

.mc-search-result__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mc-search-result__body {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.mc-search-result__title,
.mc-search-result__subtitle,
.mc-search-result__meta {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mc-search-result__title {
    font-size: 16px;
    line-height: 22px;
    font-weight: 700;
    margin: 0;
}

.mc-search-result__subtitle {
    margin-top: 2px;
    color: var(--mc-blue);
    font-size: 14px;
    line-height: 20px;
}

.mc-search-result__meta {
    margin-top: 8px;
    color: #a1a1aa;
    font-size: 13px;
    line-height: 18px;
}

.mc-archive-description {
    color: var(--mc-muted);
    font-size: 15px;
}

.mc-archive-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}

.mc-filter-form {
    margin-bottom: 24px;
    border-radius: 10px;
    background: #0b111a;
    padding: 8px;
}

.mc-filter-form__grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    align-items: center;
}

.mc-filter-field__select {
    width: 100%;
    min-height: 38px;
    border: 0;
    border-radius: 4px;
    background: #1f2937;
    color: #fff;
    padding: 0 12px;
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
    outline: none;
}

.mc-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.mc-filter-reset,
.mc-filter-submit {
    min-height: 38px;
    border: 0;
    border-radius: 4px;
    padding: 0 16px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    cursor: pointer;
}

.mc-filter-reset {
    background: #1f2937;
    color: #e5e7eb;
}

.mc-filter-submit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f97316;
    color: #fff;
}

.mc-filter-submit__icon svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
}

.mc-empty,
.mc-error-box {
    border-radius: var(--mc-radius);
    background: #0c121c;
    color: var(--mc-muted);
    padding: 24px;
}

.mc-page--error .mc-container {
    width: min(100% - 32px, 1024px);
}

.mc-error-box {
    margin-top: 28px;
    background: transparent;
    padding: 0;
}

.mc-error-box__title {
    margin: 0 0 12px;
    color: #fff;
    font-size: 36px;
    line-height: 40px;
    font-weight: 700;
}

.mc-error-box__subtitle {
    margin: 0 0 18px;
    color: #fff;
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
}

.mc-error-box__hint {
    margin: 0 0 16px;
    color: #fff;
    font-size: 18px;
    line-height: 28px;
    font-weight: 600;
}

.mc-primary-button {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: var(--mc-accent);
    color: #fff;
    padding: 0 16px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
}

.mc-pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 28px 0 0;
}

.mc-pagination a,
.mc-pagination span {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: #1b2636;
}

.mc-pagination .current {
    background: var(--mc-accent);
}

.mc-static-content {
    margin-top: 24px;
}

.mc-static-content__title {
    margin: 0 0 16px;
    font-size: 34px;
}

/* Trailer modal */
.mc-trailer-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: none;
}

.mc-trailer-modal.is-open {
    display: block;
}

.mc-trailer-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .78);
}

.mc-trailer-modal__content {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(900px, calc(100% - 32px));
    transform: translate(-50%, -50%);
}

.mc-trailer-modal__close {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-bottom: 10px;
    border: 0;
    border-radius: 999px;
    background: #1b2636;
    color: #fff;
    cursor: pointer;
}

.mc-trailer-modal__close svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.mc-trailer-modal__frame {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--mc-radius);
    background: #000;
}

.mc-trailer-modal__frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

html.mc-trailer-modal-open {
    overflow: hidden;
}

/* Footer */
.mc-footer {
    width: 100%;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #000;
    padding: 24px 0;
}

.mc-footer__inner {
    width: 100%;
    max-width: var(--mc-container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.mc-footer__description {
    grid-column: span 2;
    display: grid;
    align-content: start;
    gap: 12px;
}

.mc-footer__heading {
    margin: 0 0 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.mc-footer__text {
    margin: 0;
    color: #a1a1aa;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.mc-footer__text a {
    color: inherit;
}

.mc-footer-widget {
    display: grid;
    gap: 12px;
    color: #a1a1aa;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

.mc-footer-widget p {
    margin: 0;
}

.mc-footer-widget a {
    color: inherit;
}

.mc-footer__menus {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.mc-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.mc-footer__links a {
    color: #a1a1aa;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
}

@media (max-width: 1279px) {
    .mc-home-layout,
    .mc-archive-layout {
        grid-template-columns: 1fr;
    }

    .mc-home-layout__sidebar,
    .mc-archive-sidebar {
        display: none;
    }
}

@media (max-width: 1023px) {
    .mc-search-results {
        grid-template-columns: 1fr;
    }

    .mc-section__grid--landscape {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 150px;
    }

    .mc-section__grid--poster,
    .mc-archive-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .mc-filter-actions {
        grid-column: 1 / -1;
    }

    .mc-detail-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

@media (max-width: 767px) {
    .mc-search-results {
        gap: 8px;
    }

    .mc-search-result {
        gap: 10px;
        padding: 8px;
    }

    .mc-search-result__thumb {
        width: 64px;
        flex-basis: 64px;
    }

    .mc-search-result__title {
        font-size: 14px;
        line-height: 20px;
    }

    .mc-search-result__subtitle {
        font-size: 13px;
        line-height: 18px;
    }

    .mc-header__desktop {
        display: none;
    }

    .mc-header__mobile {
        position: relative;
        width: 100%;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .mc-menu-toggle {
        position: absolute;
        top: 10px;
        right: 10px;
        z-index: 1002;
        width: 44px;
        height: 44px;
        display: inline-flex;
        flex: 0 0 44px;
        align-items: center;
        justify-content: center;
        border: 0;
        background: transparent;
        color: #fff;
        cursor: pointer;
    }

    .mc-mobile-panel {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        display: none;
        border-top: 1px solid #172233;
        background: #06090e;
        padding: 16px;
    }

    .admin-bar .mc-mobile-panel {
        top: 110px;
    }

    .mc-mobile-panel.is-open {
        display: block;
    }

    .mc-mobile-panel .mc-search {
        display: none;
    }

    .mc-mobile-nav {
        display: grid;
        gap: 10px;
    }

    .mc-mobile-nav a {
        color: #fff;
        font-weight: 700;
    }

    .mc-container {
        width: min(100% - 32px, var(--mc-container));
    }

    .mc-section__heading-row {
        align-items: flex-start;
    }

    .mc-slide-widget__title {
        display: inline-block;
        font-size: 16px;
        line-height: 24px;
    }

    .mc-section__title,
    .mc-related-section__title {
        font-size: 20px;
        line-height: 28px;
    }

    .mc-section__grid--poster,
    .mc-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 10px;
    }

    .mc-section__grid--landscape {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-auto-rows: 126px;
        gap: 8px;
    }

    .mc-landscape-cell--wide {
        grid-column: span 2;
        grid-row: span 2;
    }

    .mc-detail-hero__backdrop {
        height: 300px;
    }

    .mc-detail-hero__content {
        margin-top: -86px;
    }

    .mc-detail-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .mc-detail-content,
    .mc-watch-source,
    .mc-source-breadcrumb,
    .mc-latest-note {
        max-width: 370px;
    }

    .mc-detail-layout__poster {
        display: none;
    }

    .mc-detail-title,
    .mc-watch-title {
        font-size: 30px;
        line-height: 36px;
        font-weight: 700;
    }

    .mc-detail-original {
        font-size: 20px;
        line-height: 28px;
    }

    .mc-source-breadcrumb__current {
        max-width: 220px;
    }

    .mc-latest-note {
        overflow-wrap: anywhere;
    }

    .mc-episode-link {
        min-width: 62px;
    }

    .mc-filter-tab {
        min-height: 24px;
        padding: 4px 8px;
        font-size: 12px;
        line-height: 16px;
    }

    .mc-filter-form__grid {
        grid-template-columns: 1fr;
    }

    .mc-filter-actions {
        justify-content: stretch;
    }

    .mc-archive-title {
        font-size: 24px;
        line-height: 32px;
    }

    .mc-filter-reset,
    .mc-filter-submit {
        flex: 1;
        justify-content: center;
    }

    .mc-footer__inner {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 0 8px;
    }

    .mc-footer__description {
        grid-column: auto;
    }
}
