.ccg-reels {
width: 100%;
}

.ccg-filter {
display: flex;
justify-content: space-between;
align-items: center;
gap: 16px;
margin-bottom: 28px;
}

.ccg-filter-categories {
display: flex;
flex-wrap: wrap;
gap: 12px;
}

.ccg-filter-btn,
.ccg-view-all {
padding: 10px 16px;
border: 1px solid #ddd;
background: #fff;
cursor: pointer;
}

.ccg-filter-btn.active {
background: #222;
color: #fff;
}

.ccg-view-all:disabled {
opacity: 0.5;
cursor: not-allowed;
}

.ccg-grid {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 20px;
}

.ccg-card {
min-width: 0;
overflow: hidden;
border: 1px solid #eee;
border-radius: 8px;
}

.ccg-card-media {
position: relative;
aspect-ratio: 3 / 4;
overflow: hidden;
background: #f2f2f2;
}

.ccg-card-media img,
.ccg-card-media iframe {
width: 100%;
height: 100%;
border: 0;
object-fit: cover;
}

.ccg-card-media iframe {
position: absolute;
inset: 0;
}

.ccg-no-image {
display: grid;
place-items: center;
color: #666;
}

.ccg-card-body {
padding: 14px;
}

.ccg-tag {
display: inline-block;
margin-bottom: 10px;
padding: 4px 8px;
background: #eee;
border-radius: 4px;
font-size: 12px;
}

.ccg-card-body h3 {
margin: 0 0 10px;
font-size: 16px;
line-height: 1.5;
}

.ccg-card-body h3 a {
color: inherit;
text-decoration: none;
}

.ccg-card-body time {
color: #777;
font-size: 13px;
}

.ccg-pagination {
display: flex;
justify-content: center;
align-items: center;
gap: 20px;
margin-top: 30px;
}

.ccg-pagination button {
padding: 8px 14px;
cursor: pointer;
}

.ccg-pagination button:disabled {
opacity: 0.4;
cursor: not-allowed;
}

.ccg-status {
margin-bottom: 16px;
}

.ccg-reel-post-playlist {
width: 100%;
margin: 0;
padding: 40px 0 60px;
color: #17151a;
font-family: Arial, "Noto Sans TC", sans-serif;
}

.ccg-reel-post-grid {
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 24px;
}

.ccg-reel-post-card {
display: flex;
min-width: 0;
flex-direction: column;
}

.ccg-reel-post-media {
width: 100%;
aspect-ratio: 9 / 16;
overflow: hidden;
background: #d8d8d8;
}

.ccg-reel-post-media iframe {
display: block;
width: 100%;
height: 100%;
border: 0;
}

.ccg-reel-post-content {
flex: 0 0 auto;
padding-top: 11px;
}

.ccg-reel-post-category {
margin: 0 0 3px;
color: #8746a4;
font-size: 11px;
line-height: 1.4;
}

.ccg-reel-post-meta {
display: flex;
align-items: flex-start;
gap: 10px;
}

.ccg-reel-post-title {
flex: 1;
min-width: 0;
margin: 0;
color: #17151a;
font-size: 14px;
font-weight: 600;
line-height: 1.45;
overflow-wrap: anywhere;
}

.ccg-reel-post-date {
display: flex;
flex: 0 0 46px;
min-height: 46px;
flex-direction: column;
align-items: center;
justify-content: center;
padding: 2px 3px;
border-radius: 5px;
background: #fff;
color: #17151a;
line-height: 1;
white-space: nowrap;
}

.ccg-reel-post-date-year,
.ccg-reel-post-date-month {
font-size: 9px;
}

.ccg-reel-post-date-year {
margin-bottom: 3px;
}

.ccg-reel-post-date-day {
font-size: 18px;
font-weight: 500;
}

.ccg-reel-post-date-month {
margin-top: 2px;
}

.ccg-reel-post-status {
margin: 0;
color: #6b626b;
}

@media (max-width: 1024px) {
.ccg-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ccg-reel-post-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
}
}

@media (max-width: 900px) {
.ccg-reel-post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
}

@media (max-width: 600px) {
.ccg-filter {
align-items: flex-start;
flex-direction: column;
}


.ccg-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.ccg-card-body {
    padding: 10px;
}

.ccg-card-body h3 {
    font-size: 14px;
}

.ccg-reel-post-playlist {
    padding: 24px 0 32px;
}

}

@media (max-width: 640px) {
    .ccg-reel-post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 420px) {
    .ccg-reel-post-grid {
        grid-template-columns: 1fr;
    }
}

.ccg-category-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.ccg-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ccg-category-btn {
    display: inline-block;
    padding: 8px 18px;
    border: 1px solid #ddd;
    border-radius: 24px;
    text-decoration: none;
    white-space: nowrap;
}

.ccg-category-btn.active {
    background: #222;
    color: #fff;
    border-color: #222;
}

.ccg-view-more {
    border: none;
    background: none;
    padding: 8px 0;
    text-decoration: none;
    white-space: nowrap;
    margin-left: auto;
}

.ccg-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.ccg-card-title {
    margin: 0;
    font-size: 16px;
}

.ccg-card-date {
    white-space: nowrap;
    font-size: 13px;
    color: #777;
}

.ccg-card-category {
    margin-bottom: 8px;
    font-size: 12px;
}

/* Latest updates layout */
.ccg-container {
    position: relative;
    box-sizing: border-box;
    width: calc(100% - 48px);
    max-width: 1600px;
    margin: 24px auto;
    padding: 28px 30px 42px;
    background: #f8f4ff;
    color: #17151a;
    font-family: inherit;
}

.ccg-heading {
    display: flex;
    align-items: baseline;
    gap: 18px;
    margin-bottom: 20px;
}

.ccg-heading-title {
    margin: 0;
    color: #303033;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.35;
}

.ccg-heading-subtitle {
    color: #8e49aa;
    font-size: 13px;
    letter-spacing: 0.18em;
}

.ccg-category-filters {
    min-height: 36px;
    margin-bottom: 54px;
    gap: 20px;
}

.ccg-category-list {
    gap: 0;
}

.ccg-category-btn {
    display: inline-flex;
    min-height: 35px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    padding: 7px 20px;
    border: 1px solid #e6d9ed;
    border-radius: 0;
    background: #fff;
    color: #6b626b;
    font-size: 12px;
    line-height: 1.4;
    text-decoration: none;
}

.ccg-category-btn + .ccg-category-btn {
    border-left: 0;
}

.ccg-category-btn.active {
    border-color: #8746a4;
    background: #8746a4;
    color: #fff;
}

.ccg-view-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: #69616b;
    font-size: 11px;
    text-decoration: none;
}

.ccg-view-more strong {
    color: #17151a;
    font-size: 14px;
}

.ccg-view-more-arrow {
    color: #8746a4;
    font-size: 16px;
}

.ccg-carousel {
    position: relative;
}

.ccg-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
}

.ccg-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.ccg-card-media {
    box-sizing: border-box;
    width: 100%;
    height: 440px;
    flex: 0 0 440px;
    aspect-ratio: auto;
    overflow: hidden;
    background: #d8d8d8;
}

.ccg-card-media img,
.ccg-card-media iframe {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ccg-no-image {
    width: 100%;
    height: 100%;
    background: #d8d8d8;
}

.ccg-card-content {
    padding-top: 11px;
}

.ccg-card-category {
    margin: 0 0 3px;
    color: #8746a4;
    font-size: 11px;
    line-height: 1.4;
}

.ccg-card-meta {
    align-items: flex-start;
    gap: 10px;
}

.ccg-card-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    color: #17151a;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
    white-space: normal;
}

.ccg-card-date {
    display: flex;
    flex: 0 0 46px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 46px;
    padding: 2px 3px;
    border-radius: 5px;
    background: #fff;
    color: #17151a;
    line-height: 1;
}

.ccg-card-date-year {
    margin-bottom: 3px;
    font-size: 9px;
}

.ccg-card-date-day {
    font-size: 18px;
    font-weight: 500;
}

.ccg-card-date-month {
    margin-top: 2px;
    font-size: 9px;
}

.ccg-carousel-controls {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.ccg-carousel-arrow {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    box-sizing: border-box;
    border: 1px solid #e5c9f0;
    border-radius: 3px;
    background: #fff;
    color: #17151a;
    font-size: 27px;
    font-weight: 300;
    line-height: 1;
    text-decoration: none;
    pointer-events: auto;
}

.ccg-carousel-prev {
    margin-left: -20px;
}

.ccg-carousel-next {
    margin-right: -20px;
}

.ccg-carousel-arrow.is-disabled {
    opacity: 0.8;
}

.ccg-empty {
    margin: 0;
    color: #6b626b;
}

@media (max-width: 1024px) {
    .ccg-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ccg-container {
        width: calc(100% - 32px);
        margin: 16px auto;
        padding: 24px 20px 32px;
    }

    .ccg-heading {
        gap: 10px;
    }

    .ccg-heading-title {
        font-size: 23px;
    }

    .ccg-heading-subtitle {
        font-size: 10px;
    }

    .ccg-category-filters {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 20px;
    }

    .ccg-category-list {
        max-width: 100%;
        overflow-x: auto;
    }

    .ccg-category-btn {
        padding-right: 13px;
        padding-left: 13px;
    }

    .ccg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px 14px;
    }

    .ccg-card-title {
        font-size: 12px;
    }

    .ccg-card-date {
        flex-basis: 46px;
        min-height: 46px;
    }

    .ccg-card-date-day {
        font-size: 16px;
    }

    .ccg-carousel-prev {
        margin-left: -14px;
    }

    .ccg-carousel-next {
        margin-right: -14px;
    }
}

.ccg-category-btn:focus-visible,
.ccg-view-more:focus-visible,
.ccg-carousel-arrow:focus-visible {
    outline: 2px solid #8746a4;
    outline-offset: 3px;
}

.ccg-empty[hidden] {
    display: none;
}

@media (max-width: 767px) {
    .ccg-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 600px) {
    .ccg-category-list {
        width: 100%;
        flex-wrap: nowrap;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
    }

    .ccg-category-btn {
        flex: 0 0 auto;
    }

    .ccg-view-more {
        margin-left: 0;
    }
}

@media (max-width: 360px) {
    .ccg-container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .ccg-grid {
        gap: 18px 10px;
    }

    .ccg-carousel-arrow {
        width: 34px;
        height: 34px;
    }
}

.ccg-post-list {
    box-sizing: border-box;
    width: 100%;
    padding: 0 17px 20px;
    background: linear-gradient(115deg, #f7f2ff 0%, #f7f3f3 52%, #fff5e6 100%);
    color: #17151a;
}

.ccg-post-list-header {
    display: flex;
    min-height: 49px;
    align-items: center;
    justify-content: flex-end;
    border-bottom: 1px solid rgba(80, 67, 81, 0.12);
}

.ccg-post-list-view-all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #69616b;
    font-size: 11px;
    text-decoration: none;
}

.ccg-post-list-view-all strong {
    color: #17151a;
    font-size: 14px;
}

.ccg-post-list-arrow {
    color: #8746a4;
    font-size: 16px;
}

.ccg-post-list-item {
    display: grid;
    grid-template-columns: minmax(120px, 178px) 80px minmax(0, 1fr) minmax(100px, 126px) 40px;
    min-height: 117px;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid rgba(80, 67, 81, 0.12);
}

.ccg-post-list-items {
    display: block;
    width: 100%;
}

.ccg-post-list .ccg-post-list-items > .ccg-post-list-item {
    display: grid;
    grid-auto-flow: column;
}

.ccg-post-list-image {
    display: block;
    width: 100%;
    height: 80px;
    overflow: hidden;
    border-radius: 7px;
    background: #c7c7c7;
}

.ccg-post-list-image img,
.ccg-post-list-image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ccg-post-list-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.ccg-post-list-year {
    color: #725a36;
    font-size: 15px;
}

.ccg-post-list-day {
    color: #111;
    font-size: 24px;
    line-height: 1.1;
}

.ccg-post-list-title {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    color: #111;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccg-post-list-category {
    display: block;
    overflow: hidden;
    padding: 5px 12px;
    border: 1px solid #e7bff4;
    border-radius: 999px;
    color: #17151a;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ccg-post-list-link {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 7px;
    background: #fff;
    color: #8746a4;
    font-size: 24px;
    line-height: 1;
    text-decoration: none;
}

.ccg-post-list-link.is-disabled {
    visibility: hidden;
}

.ccg-post-list a:focus-visible {
    outline: 2px solid #8746a4;
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .ccg-post-list .ccg-post-list-items > .ccg-post-list-item {
        grid-template-columns: minmax(100px, 150px) 68px minmax(0, 1fr) minmax(88px, 110px) 36px;
        gap: 12px;
        padding: 12px 0;
    }

    .ccg-post-list-category {
        min-width: 0;
        padding: 4px 8px;
        font-size: 12px;
    }

    .ccg-post-list-link {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 600px) {
    .ccg-post-list {
        padding-right: 12px;
        padding-left: 12px;
    }

    .ccg-post-list .ccg-post-list-items > .ccg-post-list-item {
        grid-template-columns: minmax(64px, 24%) minmax(52px, 62px) minmax(0, 1fr) minmax(66px, 86px) 30px;
        min-height: 82px;
        gap: 6px;
        padding: 8px 0;
    }

    .ccg-post-list-image {
        height: 52px;
    }

    .ccg-post-list-date {
        gap: 3px;
    }

    .ccg-post-list-year {
        font-size: 10px;
    }

    .ccg-post-list-day {
        font-size: 14px;
    }

    .ccg-post-list-title {
        font-size: 12px;
        line-height: 1.3;
    }

    .ccg-post-list-category {
        min-width: 0;
        padding: 3px 4px;
        font-size: 9px;
    }

    .ccg-post-list-link {
        width: 30px;
        height: 30px;
        font-size: 18px;
    }
}
