:root {
    --bo-gold: #FFD700;
    --bo-green: #27ae60;
    --bo-red: #E50914;
    --bo-dark: #0F111A;
    --bo-blue: #2980b9;
    --bo-bg: #0F111A;
    --bo-text-main: #FFFFFF;
    --bo-text-sub: #C4C4C4;
    --bo-border: #FFD700;
    --bo-inst-bg: linear-gradient(135deg, #0F111A 0%, #1a1c29 100%);
    /* Show-specific colors */
    --bo-watch-btn-bg: #e50914;
    --bo-show-meta-color: #999;
    --bo-show-text-muted: #666;
}

body {
    font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: var(--bo-bg);
    color: var(--bo-text-sub);
    font-size: 14px;
}

/* --- 1. CORE LAYOUT --- */

/* High specificity wrapper to override theme styles */
.bo-infobox-centered,
.bo-poster-box,
div.bo-infobox-centered,
article .bo-infobox-centered,
main .bo-infobox-centered {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 800px !important;
    margin: 25px auto !important;
    background: #0F111A !important;
    /* V3 FIX: Softer, more organic border styling */
    border: 1px solid rgba(255, 215, 0, 0.3) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 215, 0, 0.1) !important;
    padding: 0 !important;
}

.bo-chart-container,
div.bo-chart-container,
article .bo-chart-container,
main .bo-chart-container {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 800px !important;
    margin: 25px auto !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body.widget-mode .bo-infobox-centered,
body.widget-mode .bo-chart-container {
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    max-width: 100% !important;
}

/* --- 2. BOXY TABLE STYLES --- */
.bo-social-header {
    background: #0F111A;
    color: var(--bo-text-main);
    padding: 15px;
    text-align: center;
    border: 1px solid var(--bo-border);
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.bo-social-header h3 {
    color: var(--bo-text-main) !important;
    margin: 0 0 5px 0;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 900;
    background: none;
}

.bo-social-sub {
    font-size: 13px;
    color: var(--bo-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bo-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
    margin-bottom: 0;
}

.bo-chart-table {
    width: 100%;
    min-width: 600px;
    border-collapse: separate;
    border-spacing: 0 8px;
    font-size: 14px;
}

.bo-chart-table th {
    background: transparent;
    color: var(--bo-gold);
    padding: 0 10px 5px 10px;
    text-align: left;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

.bo-chart-table td {
    background: #151823;
    padding: 12px 10px;
    text-align: left;
    vertical-align: middle !important;
    color: var(--bo-text-sub);
    font-weight: 500;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}

.bo-chart-table td:first-child {
    border-left: 1px solid #333;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

.bo-chart-table td:last-child {
    border-right: 1px solid #333;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}

.bo-chart-table tbody tr:hover {
    transform: translateY(-3px);
    transition: transform 0.2s;
}

.bo-chart-table tbody tr:hover td {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    border-color: var(--bo-gold);
}

.col-poster img {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    background: #333;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.col-title a {
    text-decoration: none;
    color: var(--bo-gold) !important;
    font-weight: 700;
    font-size: 14px;
}

.col-today {
    color: var(--bo-red);
    font-weight: 800;
    background: #2a0e0e;
    border: 1px solid var(--bo-red);
    border-radius: 6px;
    font-size: 13px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    margin: 0 auto !important;
    height: 26px;
    padding: 0 10px;
    line-height: 1;
    box-sizing: border-box;
}

.col-ww,
.col-net {
    font-weight: 800;
    color: var(--bo-text-main);
}

.bo-chart-footer {
    text-align: center;
    padding: 10px;
    margin-top: 5px;
    font-size: 11px;
    font-weight: bold;
}

.bo-chart-footer a {
    color: var(--bo-text-sub);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bo-chart-footer a:hover {
    color: var(--bo-red);
}

/* --- 3. MOVIE INFOBOX --- */
.bo-infobox-body {
    display: flex;
    flex-wrap: wrap;
    padding: 20px;
    gap: 20px;
}

.bo-poster-area {
    width: 160px;
    flex-shrink: 0;
    text-align: center;
    position: relative;
}

.bo-poster-img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.bo-milestone-badge-poster {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 6px;
    border-radius: 4px;
    white-space: nowrap;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
    z-index: 5;
    border: 2px solid #fff;
    max-width: 95%;
}

.bo-content-area {
    flex: 1 1 0%;
    min-width: 250px;
    display: flex;
    flex-direction: column;
}

.bo-header-row {
    margin-bottom: 10px;
}

.bo-movie-title {
    font-size: 26px;
    margin: 0;
    color: var(--bo-text-main);
    font-weight: 900;
    line-height: 1.2;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.bo-day-super {
    font-size: 10px;
    color: var(--bo-text-sub);
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 3px 8px;
    border-radius: 6px;
    vertical-align: middle;
    letter-spacing: 0.5px;
}

.bo-budget-line {
    font-size: 13px;
    color: var(--bo-text-sub);
    font-weight: 500;
    margin-bottom: 5px;
}

.bo-verdict-bar-wrap {
    margin-top: 10px;
    border-top: 1px dashed #333;
    padding-top: 10px;
}

.bo-verdict-tag {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    color: #fff;
    display: inline-block;
}

.bo-verdict-tag.green {
    background: var(--bo-green);
}

.bo-verdict-tag.red {
    background: var(--bo-red);
    box-shadow: 0 0 8px var(--bo-red);
}

.bo-verdict-tag.gray {
    background: #555;
}

.bo-chase-bar {
    height: 6px;
    background: #333;
    border-radius: 3px;
    width: 100%;
    margin-top: 5px;
    overflow: hidden;
}

.bo-chase-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff9966, #ff5e62);
}

.bo-chase-txt {
    font-size: 11px;
    color: var(--bo-text-sub);
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

.bo-full-row {
    width: 100%;
    margin-top: 15px;
}

.bo-tools-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bo-curr-btn,
.bo-tool-btn,
.bo-inf-btn {
    border: 1px solid var(--bo-gold);
    background: transparent;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    color: var(--bo-gold);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.bo-curr-btn.active,
.bo-curr-btn:hover {
    background: var(--bo-red);
    color: #fff;
    border-color: var(--bo-red);
}

.bo-fun-box {
    margin-top: 10px;
    background: #2a2a00;
    border: 1px solid var(--bo-gold);
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    color: #fff;
    display: none;
}

.bo-fun-ans {
    display: block;
    margin-top: 5px;
    font-weight: bold;
    font-size: 15px;
    border-top: 1px dashed #555;
    padding-top: 5px;
}

.bo-stats-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.bo-stats-row {
    display: flex;
    gap: 8px;
}

/* Stats Item */
.bo-stat-item {
    flex: 1 1 0%;
    padding: 10px;
    border: 1px solid #333;
    border-radius: 6px;
    text-align: center;
    background: #151823;
    width: 0;
    min-width: 0;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

.bo-stat-item.highlight {
    border-bottom: 2px solid var(--bo-green);
}

.bo-label {
    font-size: 10px;
    color: var(--bo-text-sub);
    text-transform: uppercase;
    font-weight: 700;
    display: block;
    margin-bottom: 2px;
}

.bo-value {
    font-size: 15px;
    font-weight: 800;
    color: var(--bo-text-main);
}

.bo-roi-box {
    padding: 10px;
    background: #151823;
    border: 1px solid #333;
    border-radius: 6px;
    text-align: center;
    font-weight: 800;
    cursor: pointer;
    margin-top: 8px;
    width: 100%;
    box-sizing: border-box;
    transition: 0.2s;
}

.bo-roi-box:hover {
    background: #1f2330;
}

.bo-roi-btns {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    width: 100%;
}

.bo-roi-btn {
    flex: 1 1 0%;
    padding: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
}

/* --- 4. SHOW-SPECIFIC STYLES --- */
/* Shows use same .bo-infobox-centered wrapper for consistency */

.bo-hero-image {
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 12px 12px 0 0;
}

.bo-watch-btn {
    background: var(--bo-watch-btn-bg);
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    margin: 5px 5px 5px 0;
    font-size: 13px;
    font-weight: 700;
    transition: opacity 0.2s, transform 0.2s;
}

.bo-watch-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.bo-watch-buttons {
    margin: 15px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bo-show-meta {
    margin-bottom: 15px;
}

.bo-show-meta div {
    font-size: 13px;
    margin-bottom: 5px;
    color: var(--bo-text-sub);
}

.bo-media-section {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.bo-media-section img {
    max-width: 200px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
}

.bo-media-section iframe {
    border-radius: 8px;
    max-width: 100%;
}

.bo-shows-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.bo-shows-container.bo-view-list {
    grid-template-columns: 1fr;
}

.bo-days-badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
}

/* --- 4. OTHERS --- */
.bo-poster-box {
    background: #0F111A;
    border: 1px solid var(--bo-border);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    max-width: 800px;
    width: 95%;
    margin: 30px auto 20px auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    position: relative;
}

.bo-poster-box h2 {
    font-size: 22px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--bo-red);
    display: inline-block;
    padding-bottom: 8px;
    margin-bottom: 20px;
    color: var(--bo-text-main);
    letter-spacing: -0.5px;
}

.bo-poster-box p {
    font-size: 16px;
    line-height: 1.7;
    color: var(--bo-text-sub);
    margin: 0;
}

.bo-poster-actions {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 5px;
}

.bo-poster-icon-btn {
    background: #151823;
    border: 1px solid #333;
    font-size: 14px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: 0.2s;
    color: var(--bo-text-sub);
}

.bo-poster-icon-btn:hover {
    background: var(--bo-gold);
    color: #000;
}

/* V3 FIX 2026-01-08: Small copy button for budget/collection section */
.bo-copy-btn-small {
    background: #27ae60;
    border: 1px solid #2ecc71;
    font-size: 11px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 8px;
    transition: 0.3s;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.bo-copy-btn-small:hover {
    background: #2ecc71;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.5);
}

.bo-vs-container {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    border: 1px solid #333;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background: #0F111A;
}

.bo-vs-left,
.bo-vs-right {
    flex: 1 1 0%;
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.bo-vs-mid {
    flex: 0 0 120px;
    background: #151823;
    border-left: 1px dashed #333;
    border-right: 1px dashed #333;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.bo-vs-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--bo-text-main);
}

.bo-vs-lbl {
    font-size: 10px;
    color: var(--bo-text-sub);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-top: 5px;
}

.bo-vs-icon {
    font-size: 16px;
    font-weight: 900;
    color: var(--bo-red);
    background: rgba(229, 9, 20, 0.1);
    padding: 5px 10px;
    border-radius: 20px;
    margin-bottom: 5px;
}

.bo-compare-ui {
    padding: 30px;
    border: 1px solid var(--bo-border);
    border-radius: 12px;
    text-align: center;
    background: #0F111A;
    margin-top: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.bo-compare-ui h3 {
    color: var(--bo-text-main);
}

.bo-search-res {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #151823;
    border: 1px solid var(--bo-gold);
    z-index: 99;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.bo-search-item {
    padding: 12px;
    border-bottom: 1px solid #333;
    cursor: pointer;
    font-size: 14px;
    color: var(--bo-text-main);
}

.bo-search-item:hover {
    background: #2a2a2a;
    color: var(--bo-gold);
}

.bo-share-buttons {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #333;
    text-align: center;
}

.bo-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    margin: 0 5px 5px 5px;
    border: none;
    cursor: pointer;
    transition: opacity 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.5);
}

.bo-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.bo-modal-content {
    background: #0F111A;
    padding: 30px;
    border-radius: 16px;
    max-width: 450px;
    width: 90%;
    text-align: left;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid var(--bo-border);
    color: var(--bo-text-sub);
}

.bo-modal-content h3 {
    color: var(--bo-text-main);
}

.bo-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--bo-text-sub);
    font-weight: bold;
    z-index: 10;
    transition: 0.2s;
}

.bo-modal-close:hover {
    color: var(--bo-red);
}

.bo-business-table {
    width: 100%;
    font-size: 13px;
    margin-top: 0;
    border-collapse: collapse;
}

.bo-business-table td {
    padding: 10px;
    border-bottom: 1px solid #333;
    text-align: left;
    color: var(--bo-text-sub);
}

.bo-business-val {
    text-align: right !important;
    font-weight: 700;
    color: var(--bo-text-main);
}

/* --- NET TO NET CLASH SEGMENT --- */
.bo-net-to-net-clash {
    padding: 20px;
    border-top: 1px dashed #333;
    background: #0F111A;
}

.bo-clash-title {
    text-align: center;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--bo-text-main);
    text-transform: uppercase;
    font-size: 13px;
}

.bo-clash-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    gap: 10px;
}

.bo-clash-val {
    flex: 1 1 0%;
    text-align: center;
    font-weight: 900;
    font-size: 14px;
    color: var(--bo-text-main);
}

.bo-clash-day {
    flex: 0 0 80px;
    text-align: center;
    font-size: 10px;
    color: var(--bo-text-sub);
    background: #151823;
    padding: 3px 0;
    border-radius: 15px;
    border: 1px solid #333;
    font-weight: 700;
}

/* --- EMBED/WIDGET SPECIFIC --- */
body.widget-mode .bo-net-to-net-clash {
    display: none;
    /* Already existing logic to hide net-to-net in embeds */
}

/* New: Branding Footer for Embeds */
.bo-brand-footer {
    text-align: center;
    padding: 8px;
    background: #0F111A;
    font-size: 11px;
    font-weight: 800;
    color: var(--bo-text-sub);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-top: 1px solid #333;
}

/* New: Full Width Button for Embeds */
.bo-embed-btn {
    display: block;
    width: 100%;
    background: var(--bo-red);
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 15px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(229, 9, 20, 0.4);
}

.bo-embed-btn:hover {
    background: #c0392b;
    color: #fff;
}

/* --- RELATED POSTS SECTION --- */
.related-posts {
    margin-top: 30px;
}

.related-title {
    font-size: 20px;
    margin-bottom: 15px;
    font-weight: 600;
    border-bottom: 2px solid #333;
    padding-bottom: 5px;
    color: var(--bo-text-main);
}

.related-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.related-item {
    flex: 1 1 calc(20% - 20px);
    min-width: 200px;
    background: #151823;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    text-align: center;
}

.related-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-color: var(--bo-gold);
}

.related-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #333;
    border-radius: 8px 8px 0 0;
}

.related-heading {
    font-size: 14px;
    margin: 10px;
    font-weight: 500;
    line-height: 1.4em;
}

.related-heading a {
    color: var(--bo-text-sub);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-heading a:hover {
    color: var(--bo-gold);
}

/* Custom Also Read Box */
.also-read-box {
    background-color: #1a1c29;
    border-left: 5px solid var(--bo-blue);
    padding: 15px;
    margin: 20px 0;
    font-family: sans-serif;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.also-read-box span {
    font-weight: bold;
    color: var(--bo-red);
    text-transform: uppercase;
    font-size: 12px;
}

.also-read-box a {
    text-decoration: none;
    font-weight: 600;
    color: var(--bo-text-main);
    font-size: 16px;
    display: block;
    margin-top: 5px;
}

.also-read-box a:hover {
    color: var(--bo-blue);
    text-decoration: underline;
}

/* --- WEEK/WEEKEND TABLE STYLES --- */
.bo-week-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
    margin-top: 20px;
}

.bo-week-table th {
    text-align: left;
    color: var(--bo-gold);
    font-size: 11px;
    text-transform: uppercase;
    padding: 5px 10px;
}

.bo-week-table td {
    background: #151823;
    padding: 10px;
    color: var(--bo-text-main);
    border: 1px solid #333;
    font-weight: bold;
    vertical-align: middle !important;
}

.bo-week-table .bo-hl-row td {
    border-color: var(--bo-gold);
    background: #1a1c29;
}

/* MOBILE OPTIMIZATION */
@media (max-width: 600px) {
    .bo-infobox-body {
        flex-direction: column;
        align-items: center;
    }

    .bo-poster-area {
        width: 160px;
        margin: 0 auto;
    }

    .bo-content-area {
        width: 100%;
        text-align: center;
    }

    .bo-header-row {
        text-align: center;
    }

    .bo-movie-title {
        font-size: 22px;
        justify-content: center;
    }

    .bo-tools-row {
        justify-content: center;
    }

    .bo-stats-row {
        flex-direction: row;
    }

    .bo-roi-btns {
        flex-direction: row;
    }

    .bo-vs-container {
        font-size: 12px;
    }

    .bo-vs-mid {
        flex: 0 0 90px;
    }

    .bo-clash-val {
        font-size: 13px;
    }

    .related-item {
        flex: 1 1 100%;
    }
}

@media(max-width: 768px) {
    .related-item {
        flex: 1 1 calc(50% - 20px);
    }
}

/* --- 15. WIDGET MODE ENHANCEMENTS --- */

/* Widget Mode: Clean iframe embedding */
body.widget-mode {
    background: #0F111A;
    padding: 0;
    margin: 0;
}

body.widget-mode .bo-infobox-centered,
body.widget-mode .bo-chart-container,
body.widget-mode .bo-poster-box {
    margin: 0;
    border: none;
    box-shadow: none;
    border-radius: 0;
    max-width: 100%;
    width: 100%;
}

/* Hide share buttons in widget mode */
body.widget-mode .bo-share-buttons {
    display: none !important;
}

/* Brand footer for widgets */
.bo-brand-footer {
    text-align: center;
    padding: 10px;
    background: #0F111A;
    border-top: 1px solid #333;
    font-size: 12px;
}

.bo-brand-footer a {
    color: var(--bo-gold) !important;
    text-decoration: none !important;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.bo-brand-footer a:hover {
    color: var(--bo-red) !important;
}

/* Hide comparison tools in widget mode */
body.widget-mode .bo-compare-ui,
body.widget-mode .bo-net-to-net-clash {
    display: none !important;
}

/* Embed button styling */
.bo-embed-btn {
    display: block;
    width: 100%;
    background: var(--bo-red);
    color: #fff;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 15px;
    font-size: 13px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(229, 9, 20, 0.4);
}

.bo-embed-btn:hover {
    background: #c0392b;
    color: #fff;
}

/* Widget responsive adjustments */
@media (max-width: 600px) {
    body.widget-mode .bo-infobox-body {
        padding: 15px;
    }

    body.widget-mode .bo-poster-area {
        width: 100px;
    }

    body.widget-mode .bo-movie-title {
        font-size: 16px;
    }
}

/* =================================================================
   MOBILE RESPONSIVE STYLES - Issues #3, #9, #20-#23 FIXES
   ================================================================= */

/* Tablet Styles (768px and below) */
@media (max-width: 768px) {

    /* V3 FIX 2026-01-08: Chart Mobile Fix + Vertical Scroll for Many Days */
    .bo-chart-canvas-wrapper {
        min-height: 350px !important;
        max-height: 500px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 10px !important;
    }

    /* V3 FIX: Mobile Movie Infobox - Keep Side-by-Side Layout */
    .bo-infobox-body {
        flex-direction: row !important;
        /* Keep side-by-side */
        padding: 15px;
        gap: 15px !important;
    }

    .bo-poster-area {
        width: 120px !important;
        /* Fixed width for mobile */
        flex-shrink: 0 !important;
    }

    .bo-content-area {
        flex: 1 !important;
        min-width: 0 !important;
    }

    /* Keep buttons side-by-side */
    .bo-tools-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 4px;
    }

    /* Keep collection stats side-by-side */
    .bo-stats-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 8px;
    }

    .bo-stat-item {
        flex: 1 1 auto !important;
        min-width: 120px !important;
    }

    /* Table Styles - Issue #20 */
    .bo-chart-table {
        min-width: 400px;
        /* Reduced from 600px */
        font-size: 12px;
    }

    .bo-chart-table th,
    .bo-chart-table td {
        padding: 8px 5px;
    }

    .col-poster img {
        width: 40px;
        height: 60px;
    }

    /* Chart Toggle Buttons - Issue #9 */
    .bo-chart-controls {
        flex-direction: column;
        gap: 10px;
    }

    .bo-chart-type-toggle,
    .bo-chart-metric-toggle {
        width: 100%;
    }

    .bo-chart-btn,
    .bo-metric-btn {
        flex: 1;
        font-size: 11px;
        padding: 10px 8px;
    }

    /* Infobox Adjustments */
    .bo-infobox-body {
        padding: 15px;
    }

    .bo-movie-title {
        font-size: 22px;
    }

    /* Tools Row */
    .bo-tools-row {
        gap: 4px;
    }

    .bo-curr-btn,
    .bo-inf-btn {
        font-size: 10px;
        padding: 5px 8px;
    }

    /* Stats Container */
    .bo-stats-row {
        gap: 5px;
    }

    .bo-value {
        font-size: 13px;
    }
}

/* Mobile Styles (480px and below) */
@media (max-width: 480px) {

    /* V3 FIX 2026-01-08: Chart Mobile Fix + Vertical Scroll */
    .bo-chart-canvas-wrapper {
        min-height: 300px !important;
        max-height: 450px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 5px !important;
    }

    /* V3 FIX: Infobox stays side-by-side on mobile */
    .bo-poster-area {
        width: 100px !important;
        flex-shrink: 0 !important;
    }

    .bo-infobox-body {
        flex-direction: row !important;
        /* Override to keep side-by-side */
        gap: 12px !important;
    }

    .bo-poster-img {
        width: 100% !important;
        max-width: 100px !important;
    }

    .bo-milestone-badge-poster {
        font-size: 8px;
        padding: 2px 4px;
        max-width: 90%;
    }

    /* Content Area */
    .bo-content-area {
        min-width: 200px;
    }

    .bo-movie-title {
        font-size: 18px;
    }

    .bo-day-super {
        font-size: 8px;
        padding: 2px 5px;
    }

    /* V3 FIX: Stats stay side-by-side, just wrap if needed */
    .bo-stats-row {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 6px;
    }

    .bo-stat-item {
        flex: 1 1 auto !important;
        min-width: 100px !important;
    }

    /* V3 FIX: ROI Buttons stay side-by-side */
    .bo-roi-btns {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 5px;
    }

    .bo-roi-btn {
        flex: 1 1 auto !important;
        min-width: 80px !important;
    }

    /* Table Further Optimized - Issue #20 */
    .bo-chart-table {
        min-width: 100%;
        font-size: 11px;
    }

    .bo-chart-table th {
        font-size: 9px;
        padding: 0 5px 3px 5px;
    }

    .bo-chart-table td {
        padding: 8px 5px;
    }

    /* Hide less critical columns on very small screens */
    .bo-chart-table .hide-mobile {
        display: none;
    }

    .col-poster img {
        width: 35px;
        height: 52px;
    }

    .col-title {
        font-size: 11px;
    }

    .col-title a {
        font-size: 12px;
    }

    /* VS Comparison Mobile - Issue #22 */
    .bo-vs-container {
        flex-direction: column;
    }

    .bo-vs-mid {
        flex: 0 0 auto;
        width: 100%;
        border-left: none;
        border-right: none;
        border-top: 1px dashed #333;
        border-bottom: 1px dashed #333;
        padding: 8px;
    }

    .bo-vs-left,
    .bo-vs-right {
        width: 100%;
        padding: 12px;
    }

    .bo-vs-val {
        font-size: 14px;
    }

    .bo-vs-lbl {
        font-size: 9px;
    }

    .bo-vs-icon {
        font-size: 14px;
        padding: 4px 8px;
    }

    /* Modal Mobile - Issue #23 */
    .bo-modal-content {
        padding: 20px !important;
        max-height: 90vh !important;
        width: 95% !important;
        max-width: 95% !important;
    }

    .bo-modal-close {
        top: 10px;
        right: 10px;
        font-size: 24px;
    }

    .bo-modal-content h3 {
        font-size: 16px;
        margin-top: 0;
    }

    /* Share Buttons */
    .bo-share-btn {
        font-size: 10px;
        padding: 8px 10px;
        margin: 0 2px 5px 2px;
    }

    /* Compare UI */
    .bo-compare-ui {
        padding: 15px;
    }

    .bo-compare-ui h3 {
        font-size: 16px;
    }

    /* Social Header */
    .bo-social-header h3 {
        font-size: 16px;
    }

    .bo-social-sub {
        font-size: 11px;
    }

    /* Poster Box */
    .bo-poster-box {
        padding: 15px;
    }

    .bo-poster-box h2 {
        font-size: 18px;
    }

    .bo-poster-box p {
        font-size: 14px;
    }
}

/* Extra Small Mobile (360px and below - iPhone SE, etc.) */
@media (max-width: 360px) {
    .bo-poster-area {
        width: 80px !important;
    }

    .bo-poster-img {
        max-width: 80px !important;
    }

    .bo-movie-title {
        font-size: 16px;
    }

    .bo-infobox-body {
        padding: 10px;
        gap: 10px;
    }

    .bo-chart-canvas-wrapper {
        min-height: 250px !important;
    }

    .bo-curr-btn,
    .bo-inf-btn {
        font-size: 9px;
        padding: 4px 6px;
    }

    .col-poster img {
        width: 30px;
        height: 45px;
    }
}

/* Landscape Mobile Optimization */
@media (max-height: 500px) and (orientation: landscape) {
    .bo-modal-content {
        max-height: 85vh !important;
        overflow-y: auto !important;
    }

    .bo-chart-canvas-wrapper {
        min-height: 200px !important;
    }
}

/* Print Styles */
@media print {

    .bo-tools-row,
    .bo-share-buttons,
    .bo-compare-ui,
    .bo-curr-btn,
    .bo-inf-btn {
        display: none !important;
    }

    .bo-chart-table {
        min-width: 100%;
        font-size: 10px;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

/* ========================================
   V3: SEO-OPTIMIZED TABLE STYLES
   Schema.org + Featured Snippet Enhancement
   ======================================== */

/* Summary card above tables */
.bo-table-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    margin-bottom: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.bo-table-summary h3 {
    margin: 0 0 15px 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    color: #fff !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
}

.stat-item .label {
    display: block;
    font-size: 11px;
    opacity: 0.85;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stat-item strong {
    font-size: 16px;
    display: block;
    font-weight: 900;
}

/* Table caption styling */
.bo-chart-table caption {
    caption-side: top;
    padding: 15px 20px;
    background: #f8f9fa;
    font-weight: 700;
    text-align: left;
    border: 1px solid #dee2e6;
    border-bottom: none;
    font-size: 14px;
    color: #2c3e50;
    border-radius: 8px 8px 0 0;
}

/* Enhanced table structure for SEO */
.bo-table-summary+.bo-table-scroll .bo-chart-table {
    border-radius: 0 !important;
}

.bo-table-summary+.bo-table-scroll .bo-chart-table caption {
    border-radius: 0 !important;
}

/* Footer row styling */
.bo-chart-table tfoot {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    font-weight: 900;
}

.bo-chart-table tfoot th,
.bo-chart-table tfoot td {
    padding: 15px 10px !important;
    font-size: 14px !important;
    color: #000 !important;
    border-top: 3px solid #d4a005 !important;
    background: transparent !important;
}

.bo-chart-table tfoot th[scope='row'] {
    background: transparent !important;
}

/* Row headers (first column) - Semantic HTML */
.bo-chart-table tbody th[scope="row"] {
    background: #151823;
    font-weight: 700;
    color: var(--bo-text-main);
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    border-left: 1px solid #333;
    padding: 12px 10px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}

/* Mobile responsive summary */
@media (max-width: 768px) {
    .summary-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-item {
        padding: 10px;
    }

    .stat-item strong {
        font-size: 14px;
    }

    .bo-table-summary h3 {
        font-size: 16px !important;
    }

    .bo-chart-table caption {
        font-size: 12px;
        padding: 12px 15px;
    }
}

@media (max-width: 480px) {
    .summary-stats {
        grid-template-columns: 1fr;
    }

    .bo-table-summary {
        padding: 15px;
    }
}

/* Print optimization for SEO tables */
@media print {
    .bo-table-summary {
        background: #f0f0f0 !important;
        color: #000 !important;
        border: 1px solid #ccc;
    }

    .stat-item {
        border: 1px solid #ccc !important;
        background: #fff !important;
    }

    .bo-chart-table caption {
        background: #fff !important;
        color: #000 !important;
    }
}

/* =================================================================
   PHASE 4: UI/UX ENHANCEMENTS (2026-01-18)
   ================================================================= */

/* PHASE 4.5: Mobile-Responsive Tables with Sticky First Column */
@media (max-width: 768px) {
    .bo-table-scroll {
        border: 1px solid #333;
        border-radius: 8px;
        margin: 15px 0;
    }

    .bo-table-scroll table {
        min-width: 600px;
    }

    .bo-table-scroll th:first-child,
    .bo-table-scroll td:first-child {
        position: sticky;
        left: 0;
        background: #1a1c29;
        z-index: 2;
        border-right: 2px solid #333;
        box-shadow: 2px 0 4px rgba(0, 0, 0, 0.3);
    }

    .bo-table-scroll thead th:first-child {
        z-index: 3;
        background: #0F111A;
    }

    .bo-chart-table tbody tr:hover td:first-child {
        background: #1f2330;
    }
}

/* PHASE 4.6: Export to Image Button */
.bo-export-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    margin: 10px 5px;
    transition: all 0.3s ease;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.bo-export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

.bo-export-btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

/* =================================================================
   MOVIE & SHOW DETAILS BOX
   ================================================================= */

.bo-details-box {
    border: 2px solid #333;
    border-radius: 8px;
    background: #1a1c29;
    padding: 0;
    margin: 20px 0;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.bo-details-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 20px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    border-radius: 6px 6px 0 0;
}

.bo-details-content {
    padding: 15px 20px;
}

.bo-detail-row {
    padding: 8px 0;
    font-size: 14px;
    color: #e0e0e0;
    border-bottom: 1px solid #2a2c3a;
}

.bo-detail-row:last-child {
    border-bottom: none;
}

.bo-detail-row strong {
    color: #fff;
    margin-left: 5px;
    margin-right: 5px;
}

/* Light mode adjustments */
@media (prefers-color-scheme: light) {
    .bo-details-box {
        background: #ffffff;
        border-color: #ddd;
    }

    .bo-detail-row {
        color: #333;
        border-bottom-color: #eee;
    }

    .bo-detail-row strong {
        color: #000;
    }
}

/* =================================================================
   INLINE STYLE REPLACEMENT CLASSES (Added 2026-01-18)
   These classes replace inline styles from shortcodes.php and daily-chart.php
   ================================================================= */

/* Chart/Table Header Styles */
.bo-chart-header {
    margin: 0;
}

.bo-chart-subheader {
    font-size: 12px;
    color: #e74c3c;
    font-weight: 700;
    margin-top: 5px;
}

/* Error and Status Messages */
.bo-error-message {
    color: red;
    text-align: center;
    padding: 20px;
}

.bo-empty-state {
    text-align: center;
    padding: 20px;
}

/* Table Cell Styles */
.bo-cell-budget {
    font-size: 10px;
    color: #999;
}

/* Widget Footer (already exists but ensuring consistency) */
.bo-brand-footer {
    text-align: center;
    padding: 10px;
    background: #0F111A;
    border-top: 1px solid #333;
}

.bo-brand-footer a {
    color: #FFD700 !important;
    text-decoration: none !important;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 1px;
}

/* Helper Classes */
.bo-mb-30 {
    margin-bottom: 30px;
}

.bo-col-gross-muted {
    color: #666;
}