:root {
    --mm-accent-color: #007aff;
    --mm-bg-light: #f9f9f9;
    --mm-amazon: #232f3e;
    --mm-rakuten: #bf0000;
    --mm-7net: #f39800;
    --mm-tower: #ffcc00;
    --mm-text-dark: #333;
    --mm-text-muted: #666;
    --mm-border-color: #eee;
}

/* Page Level Layout */
.mm-summary-container,
.mm-magazine-container {
    max-width: 800px;
    /* Reduced from 1000px to avoid stretching */
    margin: 0 auto;
}

.mm-pr-notice {
    font-size: 0.75em;
    color: var(--mm-text-muted);
    margin-bottom: 20px;
}

/* Filters */
.mm-filter-section,
.mm-archive-filters {
    margin-bottom: 25px;
    background: #fdfdfd;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
}

.mm-filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.mm-dropdown,
.mm-search-box {
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9em;
}

.mm-search-box {
    flex: 1;
    min-width: 200px;
}

.mm-sort-button {
    padding: 8px 15px;
    border: 2px solid var(--mm-accent-color);
    background: #fff;
    color: var(--mm-accent-color);
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

/* Date Headers */
.mm-date-header {
    font-size: 0.9em;
    font-weight: bold;
    color: #444;
    padding: 10px 0 3px;
    border-bottom: 1px solid #ccc;
    margin: 20px 0 8px !important;
}

/* Hyper-Simple Data Row */
.mm-data-row {
    display: block;
    padding: 8px 5px;
    border-bottom: 1px solid var(--mm-border-color);
    text-decoration: none !important;
    transition: background 0.1s;
}

.mm-row-odd {
    background-color: #ffffff;
}

.mm-row-even {
    background: linear-gradient(to bottom, #f2f6ff 0%, #edf2ff 100%);
    /* Stronger mixed effect */
}

.mm-data-row:hover {
    background: #eef2ff !important;
}

.mm-archive-row:hover {
    background-color: #f9f9ff;
}

.mm-data-content {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    /* Keep badge and info on one line where possible */
}

/* Specific Day Badge */
.mm-data-date-badge {
    display: inline-block;
    font-size: 0.7em;
    font-weight: bold;
    color: #777;
    background: #efefef;
    padding: 1px 6px;
    border-radius: 3px;
    min-width: 48px;
    text-align: center;
    flex-shrink: 0;
}

.mm-data-info {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.mm-data-title {
    font-weight: bold;
    font-size: 0.95em;
    color: var(--mm-text-dark);
}

.mm-data-person {
    font-size: 0.8em;
    color: var(--mm-text-muted);
    font-weight: normal;
}

/* Shop links in summary page */
.mm-shop-links {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.mm-btn {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65em;
    font-weight: bold;
    color: #fff !important;
    text-decoration: none !important;
    white-space: nowrap;
}

.mm-btn-amazon {
    background-color: var(--mm-amazon);
}

.mm-btn-rakuten {
    background-color: var(--mm-rakuten);
}

.mm-btn-7net {
    background-color: var(--mm-7net);
}

.mm-btn-tower {
    background-color: var(--mm-tower);
}

/* Mobile Adjustments */
@media screen and (max-width: 600px) {
    .mm-date-header {
        font-size: 0.85em;
        padding: 8px 0 2px;
        margin: 15px 0 5px !important;
    }

    .mm-data-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    /* Archive specific: badge and info on same line */
    .mm-archive-row .mm-data-content {
        flex-direction: row;
        align-items: flex-start;
        gap: 8px;
    }

    .mm-data-info {
        width: 100%;
        gap: 2px;
    }

    .mm-archive-row .mm-data-info {
        width: auto;
        flex: 1;
    }

    .mm-data-title {
        display: inline;
        width: auto;
        font-size: 0.9em;
        line-height: 1.3;
        margin-bottom: 2px;
    }

    .mm-data-person {
        font-size: 0.75em;
        margin-top: 0;
        display: inline;
    }

    .mm-shop-links {
        width: 100%;
        display: flex;
        flex-wrap: nowrap;
        gap: 2px;
        margin-top: 6px;
        clear: both;
    }

    .mm-btn {
        text-align: center;
        padding: 5px 1px;
        flex: 1;
        font-size: 0.6em;
    }
}

/* Individual Post Optimization */
.single-magazine .eye-catch {
    display: none !important;
}

.mm-post-layout h3 {
    margin: 0 0 15px;
    padding: 0;
    font-size: 1.1em;
    border-bottom: none;
}

.mm-post-main-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
}

/* Sidebar Title Alignment */
.mm-sidebar-title {
    font-size: 1em !important;
    color: #555;
    padding-bottom: 10px !important;
    border-bottom: 2px solid #eee !important;
    margin-bottom: 15px !important;
}

.mm-shop-links-post {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mm-shop-links-post .mm-btn {
    display: block;
    width: 100%;
    padding: 10px;
    font-size: 0.85em;
    text-align: center;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

@media screen and (min-width: 768px) {
    .mm-post-main-content {
        flex-direction: row;
        align-items: stretch;
        /* Height matching */
        gap: 30px;
    }

    .mm-body-visual {
        flex: 1.2;
        display: flex;
        align-items: center;
        background: #000;
        border-radius: 8px;
        overflow: hidden;
    }

    .mm-body-visual img {
        width: 100%;
        height: auto;
        display: block;
    }

    .mm-post-sidebar {
        flex: 0 0 280px;
        display: flex;
        flex-direction: column;
    }

    .mm-shop-links-container {
        height: 100%;
        background: #fff;
        padding: 20px;
        border-radius: 8px;
        border: 1px solid #ddd;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    }
}

.mm-post-details-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.mm-section-title {
    font-size: 1.1em !important;
    font-weight: bold;
    margin-bottom: 15px !important;
}

.mm-post-details {
    background: #fdfdfd;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.mm-post-details p {
    margin: 5px 0 !important;
    font-size: 0.95em;
}

/* Pagination */
.mm-pagination {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-top: 40px;
}