.poster {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.poster-lg {
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.card {
    border-color: rgba(255, 255, 255, .08);
}

.badge.text-bg-warning {
    color: #111 !important;
}

/* Horizontal rail */
.mmr-rail {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.25rem 0.25rem 0.5rem 0.25rem;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;

    scrollbar-width: none;
    /* Firefox */
}

.mmr-rail::-webkit-scrollbar {
    display: none;
}

.mmr-rail-card {
    flex: 0 0 auto;
    width: 160px;
    scroll-snap-align: start;
}

/* Wrap + side buttons */
.mmr-rail-wrap {
    position: relative;
}

/* rail buttons */
.mmr-rail-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    width: 40px;
    height: 64px;

    padding: 0 !important;
    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 16px;
    backdrop-filter: blur(6px);
}

.mmr-rail-btn i {
    font-size: 2rem;
    line-height: 1;
}

.mmr-rail-btn {
    background: rgba(0, 0, 0, .35);
    border-color: rgba(255, 255, 255, .25);
}

.mmr-rail-btn:hover {
    background: rgba(0, 0, 0, .55);
}

.mmr-rail-btn-left {
    left: -20px;
}

.mmr-rail-btn-right {
    right: -20px;
}

/* Keep buttons off small screens (touch scroll is better there) */
@media (max-width: 576px) {
    .mmr-rail-btn {
        display: none;
    }
}

@media (min-width: 768px) {
    .mmr-rail-card {
        width: 180px;
    }
}

@media (min-width: 1200px) {
    .mmr-rail-card {
        width: 200px;
    }
}

/* Hero image */
.mmr-hero {
    position: relative;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    overflow: hidden;
    min-height: 220px;
}

.mmr-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(18px) saturate(1.1);
    transform: scale(1.15);
    opacity: .35;
}

.mmr-hero-content {
    position: relative;
    padding: 18px;
}

.mmr-hero-poster {
    width: 110px;
    height: 165px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, .14);
}

.clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* review detail sidebar */
/* Sidebar similar list — prevent overflow */
.mmr-similar-item {
  display: block;              /* anchors can be inline by default in some cases */
  overflow: hidden;            /* clip anything trying to spill out */
}

.mmr-similar-text {
  min-width: 0;                /* REQUIRED for flex truncation to work */
}

.mmr-similar-title {
    display: block;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;     /* the actual truncation */
    color: inherit;
}

.mmr-similar-item:hover {
    background-color: rgba(255,255,255,.04);
    transform: translateY(-1px);
}

.mmr-similar-poster {
    width: 54px;
    height: 78px;
    object-fit: cover;
}

/* navbar log */
.navbar-logo {
    width: 40px;      /* adjust as needed */
    height: 40px;     /* keep square to make a perfect circle */
    object-fit: cover;
}
