/* Movie Release Schedule - Frontend Styles */

.mrs-wrapper {
    font-family: inherit;
    max-width: 100%;
    overflow-x: auto;
}

/* -----------------------------------------------------------------------
   Year navigation — prev / current / next
----------------------------------------------------------------------- */

.mrs-year-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.mrs-year-tab {
    display: inline-block;
    padding: 7px 18px;
    border: 2px solid #222;
    color: #222;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border-radius: 3px;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.mrs-year-tab:hover,
.mrs-year-tab.active {
    background: #222;
    color: #fff;
    text-decoration: none;
}

/* -----------------------------------------------------------------------
   Month jump nav
----------------------------------------------------------------------- */

.mrs-month-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 28px;
    padding: 6px 0 28px;
    border-bottom: 1px solid #e5e5e5;
}

.mrs-month-link {
    display: inline-block;
    padding: 3px 9px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 2px;
    line-height: 1.6;
    text-decoration: none;
    transition: background 0.12s, color 0.12s;
}

a.mrs-month-link.has-data {
    color: #222;
    background: #f0f0f0;
}

a.mrs-month-link.has-data:hover {
    background: #222;
    color: #fff;
    text-decoration: none;
}

a.mrs-month-link.current {
    background: #222;
    color: #fff;
}

span.mrs-month-link.no-data {
    color: #ccc;
    cursor: default;
    background: transparent;
}

/* -----------------------------------------------------------------------
   Group headings
----------------------------------------------------------------------- */

.mrs-group {
    margin-bottom: 40px;
    scroll-margin-top: 90px;
}

.mrs-group-heading {
    font-size: 1.3em;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #222;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* -----------------------------------------------------------------------
   Table
----------------------------------------------------------------------- */

.mrs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.mrs-table thead th {
    text-align: left;
    padding: 8px 12px;
    background: #222;
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.mrs-table tbody tr {
    border-bottom: 1px solid #e5e5e5;
    transition: background 0.1s;
}

.mrs-table tbody tr:hover {
    background: #f9f9f9;
}

.mrs-table td {
    padding: 9px 12px;
    vertical-align: top;
    line-height: 1.4;
}

.mrs-col-date {
    white-space: nowrap;
    font-weight: 600;
    color: #555;
    width: 70px;
}

.mrs-col-title {
    font-weight: 500;
    position: relative;
}

.mrs-col-title a {
    color: #8B1A1A;
    font-weight: 700;
    text-decoration: none;
}

.mrs-col-title a:hover {
    text-decoration: underline;
    text-decoration-color: #8B1A1A;
}

/* -----------------------------------------------------------------------
   Poster hover tooltip
----------------------------------------------------------------------- */

.mrs-title-wrap {
    position: relative;
    display: inline-block;
}

/* The indicator dot shown when a poster exists */
.mrs-title-wrap[data-poster]::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    background: #aaa;
    border-radius: 50%;
    margin-left: 5px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

.mrs-poster-tooltip {
    display: none;
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.35);
    overflow: hidden;
    width: 140px;
    background: #111;
}

.mrs-poster-tooltip img {
    display: block;
    width: 140px;
    height: auto;
}

.mrs-poster-tooltip.is-visible {
    display: block;
}

/* -----------------------------------------------------------------------
   Columns
----------------------------------------------------------------------- */

.mrs-col-studio {
    color: #666;
    font-size: 13px;
    width: 160px;
}

.mrs-col-type {
    width: 80px;
}

.mrs-col-notes {
    color: #666;
    font-size: 13px;
    font-style: italic;
}

/* -----------------------------------------------------------------------
   Badges
----------------------------------------------------------------------- */

.mrs-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2px;
    white-space: nowrap;
}

.mrs-badge--wide      { background: #1a1a2e; color: #fff; }
.mrs-badge--limited   { background: #e8e8e8; color: #444; }
.mrs-badge--streaming { background: #0070f3; color: #fff; }
.mrs-badge--vod       { background: #7c3aed; color: #fff; }
.mrs-badge--festival  { background: #c2410c; color: #fff; }
.mrs-badge--other     { background: #d1d5db; color: #333; }

.mrs-no-results {
    color: #666;
    font-style: italic;
}

/* -----------------------------------------------------------------------
   Mobile
----------------------------------------------------------------------- */

@media (max-width: 600px) {
    .mrs-col-studio,
    .mrs-col-notes,
    .mrs-table thead th.mrs-col-studio,
    .mrs-table thead th.mrs-col-notes {
        display: none;
    }

    .mrs-table {
        font-size: 13px;
    }

    .mrs-month-link {
        padding: 3px 7px;
        font-size: 10px;
    }

    /* Disable hover poster on touch devices */
    .mrs-poster-tooltip {
        display: none !important;
    }
}
