.gdrs-related {
    display: block;
    margin: 28px 0 18px;
    padding: 25px 24px 22px;
    border-top: 1px solid #eceef1;
    border-bottom: 1px solid #eceef1;
    background: #fff;
    color: #222;
    font-family: inherit;
}

.gdrs-related[hidden] { display: none !important; }
.gdrs-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.gdrs-heading h2 { margin: 0; font-size: 21px; line-height: 1.35; font-weight: 700; letter-spacing: -.7px; }
.gdrs-heading h2 span { color: #df334d; }
.gdrs-heading p { margin: 5px 0 0; color: #777; font-size: 13px; line-height: 1.4; }
.gdrs-heading > a { flex: none; color: #555; font-size: 13px; text-decoration: none; }
.gdrs-heading > a span { font-size: 18px; vertical-align: -1px; }
.gdrs-carousel { position: relative; }

.gdrs-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 50px) / 6);
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.gdrs-track::-webkit-scrollbar { display: none; }
.gdrs-card { min-width: 0; overflow: hidden; border: 1px solid #e4e4e4; border-radius: 12px; background: #fff; scroll-snap-align: start; }
.gdrs-card > a { display: flex; height: 100%; flex-direction: column; color: inherit; text-decoration: none; }
.gdrs-image { position: relative; display: block; overflow: hidden; width: 100%; aspect-ratio: 3 / 2; background: #f1f2f4; }
.gdrs-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.gdrs-card > a:hover .gdrs-image img { transform: scale(1.025); }
.gdrs-image em { position: absolute; left: 7px; bottom: 7px; padding: 3px 7px; border-radius: 4px; background: #df334d; color: #fff; font-size: 10px; font-style: normal; font-weight: 700; line-height: 1.3; }

.gdrs-body { display: flex; min-width: 0; flex: 1; flex-direction: column; padding: 10px 10px 12px; }
.gdrs-name { display: block; overflow: hidden; color: #222; font-size: 14px; font-weight: 700; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.gdrs-meta { display: block; overflow: hidden; margin-top: 3px; color: #777; font-size: 11px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.gdrs-meta i { padding: 0 4px; color: #bbb; font-style: normal; }
.gdrs-course { display: flex; overflow: hidden; align-items: center; gap: 5px; margin-top: 9px; color: #777; font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.gdrs-course i { flex: none; color: #8c8c8c; font-size: 10px; }
.gdrs-price { display: block; min-height: 38px; margin-top: 5px; white-space: nowrap; }
.gdrs-price del { display: block; overflow: hidden; color: #aaa; font-size: 10.5px; line-height: 1.45; text-overflow: ellipsis; }
.gdrs-price-final { display: flex; overflow: hidden; align-items: baseline; gap: 4px; min-width: 0; margin-top: 1px; }
.gdrs-price-final b { flex: none; color: #ff304c; font-size: 12px; font-weight: 700; }
.gdrs-price-final strong { overflow: hidden; color: #161616; font-size: 14px; font-weight: 700; text-overflow: ellipsis; }

.gdrs-arrow { position: absolute; z-index: 2; top: calc(50% - 26px); display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; padding: 0; border: 1px solid #e1e3e7; border-radius: 50%; background: rgba(255,255,255,.96); color: #333; box-shadow: 0 2px 8px rgba(0,0,0,.1); font-size: 25px; line-height: 1; }
.gdrs-prev { left: -19px; }
.gdrs-next { right: -19px; }
.gdrs-arrow:disabled { visibility: hidden; }
.gdrs-progress { display: none; margin-top: 13px; color: #999; font-size: 12px; text-align: center; }
.gdrs-progress span { color: #333; font-weight: 700; }

@media (max-width: 767px) {
    .gdrs-related { margin: 22px -15px 14px; padding: 21px 15px 18px; }
    .gdrs-heading { align-items: center; margin-bottom: 14px; }
    .gdrs-heading h2 { font-size: 18px; }
    .gdrs-heading p { font-size: 12px; }
    .gdrs-heading > a { font-size: 12px; }
    .gdrs-track { grid-auto-columns: calc((100% - 16px) / 3); gap: 8px; }
    .gdrs-card { border-radius: 10px; }
    .gdrs-body { padding: 8px 7px 10px; }
    .gdrs-name { font-size: 12px; }
    .gdrs-meta { font-size: 10px; }
    .gdrs-meta i { padding: 0 2px; }
    .gdrs-course { gap: 3px; margin-top: 7px; font-size: 10px; }
    .gdrs-course i { font-size: 9px; }
    .gdrs-price { min-height: 34px; margin-top: 4px; }
    .gdrs-price del { font-size: 9.5px; }
    .gdrs-price-final { gap: 3px; }
    .gdrs-price-final b { font-size: 11px; }
    .gdrs-price-final strong { font-size: 12px; }
    .gdrs-image em { left: 5px; bottom: 5px; padding: 2px 5px; font-size: 9px; }
    .gdrs-arrow { top: calc(50% - 24px); width: 34px; height: 34px; font-size: 22px; }
    .gdrs-prev { left: -9px; }
    .gdrs-next { right: -9px; }
    .gdrs-progress { display: block; }
}

@media (prefers-reduced-motion: reduce) {
    .gdrs-track { scroll-behavior: auto; }
    .gdrs-image img { transition: none; }
}
