/* ==========================================================================
   RS Musashi Videos — Frontend Styles
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
    --rsmv-primary: #0A2F86;
    --rsmv-text: #333333;
    --rsmv-gray-bg: #EFEFEF;
    --rsmv-light-bg: #EFF1F5;
    --rsmv-border: #DDDDDD;
    --rsmv-blue-accent: #0085D8;
}

/* ---------- Category Navigation ---------- */
.rsmv-cats-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.rsmv-cat-item {
    width: calc(25% - 15px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--rsmv-gray-bg);
    border-radius: 4px;
    text-decoration: none;
    color: var(--rsmv-text);
    font-size: 18px;
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 400;
    line-height: 28.8px;
    letter-spacing: 1.8px;
    transition: background 0.2s ease, transform 0.15s ease;
    box-sizing: border-box;
}

.rsmv-cat-item:hover {
    background: #e2e2e2;
    transform: translateY(-1px);
    color: var(--rsmv-text);
    text-decoration: none;
}

.rsmv-cat-arrow {
    display: flex;
    flex-shrink: 0;
}

/* ---------- Section Loop ---------- */
.rsmv-loop-wrap {
    display: flex;
    flex-direction: column;
    gap: 70px;
}

.rsmv-section-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 40px;
}

.rsmv-section-bar {
    display: block;
    width: 4px;
    height: 32px;
    background: var(--rsmv-blue-accent);
    flex-shrink: 0;
}

.rsmv-section-title {
    font-size: 32px;
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 700;
    line-height: 41.6px;
    letter-spacing: 3.2px;
    color: var(--rsmv-text);
    margin: 0;
    padding: 0;
}

/* ---------- Cards Grid ---------- */
.rsmv-cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.rsmv-card {
    width: calc(33.333% - 27px);
    display: inline-flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 17px;
}

/* Card body: thumbnail + title */
.rsmv-card-body {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rsmv-card-thumb-wrap {
    align-self: stretch;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.rsmv-card-thumb {
    align-self: stretch;
    height: 213px;
    border-radius: 8px;
    object-fit: cover;
}

.rsmv-card-title {
    align-self: stretch;
    color: var(--rsmv-text);
    font-size: 16px;
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 700;
    line-height: 25.6px;
    letter-spacing: 1.6px;
    word-wrap: break-word;
}

/* ---------- Action Buttons ---------- */
.rsmv-card-actions {
    align-self: stretch;
    border-radius: 4px;
    display: inline-flex;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;
}

.rsmv-action-btn {
    flex: 1 1 0;
    padding: 10px;
    background: var(--rsmv-light-bg);
    border-radius: 4px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.rsmv-action-btn:hover {
    background: #dde1ea;
    text-decoration: none;
}

.rsmv-action-btn span {
    color: var(--rsmv-primary);
    font-size: 15px;
    font-family: "Noto Sans TC", sans-serif;
    font-weight: 500;
    line-height: 19.5px;
    letter-spacing: 1.5px;
}

.rsmv-action-btn svg {
    flex-shrink: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .rsmv-cat-item {
        width: calc(50% - 10px);
    }
    .rsmv-card {
        width: calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .rsmv-cat-item {
        width: 100%;
    }
    .rsmv-card {
        width: 100%;
    }
    .rsmv-section-title {
        font-size: 24px;
        line-height: 32px;
        letter-spacing: 2px;
    }
    .rsmv-card-thumb {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .rsmv-card-actions {
        flex-direction: column;
        gap: 10px;
    }
    .rsmv-action-btn {
        width: 100%;
    }
}
