/**
 * Single "فارسی ساز" (Farsi Saz / Gamesub) Post Styles
 * Figma Node: 30:2714 — "Gamesub - Page" (single post view)
 *
 * Design tokens:
 *   Background:              #101114
 *   Neutral/09 - Section:    #1C1E22
 *   Neutral/08 - Frame:      #25272D
 *   Neutral/07 - Border:     #30343B
 *   Neutral/06 - Frame 2:    #3C4049
 *   Primary:                 #1081DF
 *   Neutral/01:              #C4C8CF
 *   Neutral/02 - Secondary:  #8F96A3
 *   Font:                    IRANSansX / Vazir
 *
 * @package Strategic_Club
 * @since 1.0.0
 */

/* --- Custom properties ------------------------------------------------------- */
.gamesub-post-main {
    --gs-bg-page:        #101114;
    --gs-bg-section:     #1c1e22;
    --gs-bg-frame:       #25272d;
    --gs-bg-frame2:      #3c4049;
    --gs-border:         #30343b;
    --gs-text-primary:   #ffffff;
    --gs-text-secondary: #8f96a3;
    --gs-text-muted:     #c4c8cf;
    --gs-primary:        #1081df;
    --gs-radius-card:    8px;
    --gs-radius-btn:     4px;
    --gs-transition:     0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --gs-font:           'Vazir', 'IRANSansX', 'Tahoma', sans-serif;

    background-color: var(--gs-bg-page);
    direction: rtl;
    font-family: var(--gs-font);
    padding: 64px 0 64px;
    margin: 0;
    flex: 1;
}

/* --- Container --------------------------------------------------------------- */
.gamesub-post-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 108px;
    box-sizing: border-box;
}

.gamesub-post-article {
    display: flex;
    flex-direction: column;
    gap: 48px;
    width: 100%;
}

/* --- Header ------------------------------------------------------------------ */
.gamesub-header {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.gamesub-header__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 23px;
    width: 100%;
}

.gamesub-header__content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 24px;
    align-items: flex-end;
    min-width: 0;
    direction: ltr;
}

.gamesub-header__thumb {
    flex: 0 0 auto;
    order: -1;
    width: 392px;
    max-width: 100%;
    height: 176px;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    background-color: var(--gs-bg-section);
}

.gamesub-header__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Breadcrumb */
.gamesub-breadcrumb {
    width: 100%;
}

.gamesub-breadcrumb__list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.gamesub-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    font-family: var(--gs-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: var(--gs-text-muted);
    white-space: nowrap;
    /* Parent header content is LTR; keep breadcrumb text RTL so the
       "فارسی ساز" label renders to the right of the game name. */
    direction: rtl;
}

.gamesub-breadcrumb__item--current {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    direction: rtl;
}

.gamesub-breadcrumb__link {
    color: var(--gs-text-muted);
    text-decoration: none;
    transition: color var(--gs-transition);
}

.gamesub-breadcrumb__link:hover {
    color: var(--gs-text-primary);
}

.gamesub-breadcrumb__sep {
    display: inline-flex;
    width: 18px;
    height: 18px;
}

.gamesub-breadcrumb__sep svg {
    width: 18px;
    height: 18px;
}

/* Title block */
.gamesub-title-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-end;
    text-align: right;
    width: 100%;
}

.gamesub-title {
    margin: 0;
    font-family: var(--gs-font);
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    color: var(--gs-text-primary);
    /* The parent header content is LTR; keep the title RTL so the
       "فارسی ساز" label renders to the right of the Latin game name. */
    direction: rtl;
    text-align: right;
}

/* Subtitle + version meta row — mirrors the native card meta styling. */
.gamesub-title-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    /* Parent header content is LTR; force RTL so the Persian label and
       Latin version number order correctly. */
    direction: rtl;
}

.gamesub-subtitle {
    margin: 0;
    font-family: var(--gs-font);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--gs-text-secondary);
}

.gamesub-title-meta__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--gs-text-secondary);
    flex-shrink: 0;
}

.gamesub-version {
    font-family: var(--gs-font);
    font-size: 14px;
    font-weight: 400;
    color: var(--gs-text-secondary);
    white-space: nowrap;
    direction: rtl;
}

/* Actions */
.gamesub-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.gamesub-actions__buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 440px;
    max-width: 100%;
}

.gamesub-btn {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    min-width: 0;
    padding: 8px 12px;
    border-radius: var(--gs-radius-btn);
    font-family: var(--gs-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.2;
    color: #ffffff;
    text-decoration: none;
    transition: background-color var(--gs-transition), transform var(--gs-transition);
}

.gamesub-btn--secondary {
    background-color: var(--gs-bg-frame);
}

.gamesub-btn--secondary:hover {
    background-color: var(--gs-border);
}

.gamesub-btn--primary {
    background-color: var(--gs-primary);
}

.gamesub-btn--primary:hover {
    background-color: #0d6fbf;
}

.gamesub-btn:hover {
    transform: translateY(-1px);
}

.gamesub-btn__icon {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
}

.gamesub-btn__icon svg {
    width: 24px;
    height: 24px;
}

.gamesub-price {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    /* Parent header content is LTR; keep the price RTL so its text
       renders in the correct right-to-left order. */
    direction: rtl;
}

.gamesub-price__value {
    font-family: var(--gs-font);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--gs-text-primary);
    white-space: nowrap;
}

/* --- Gallery ----------------------------------------------------------------- */
.gamesub-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.gamesub-gallery__main {
    width: 100%;
    height: 455px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--gs-bg-section);
}

.gamesub-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gamesub-gallery__thumbs-wrap {
    position: relative;
    width: 100%;
}

.gamesub-gallery__thumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    direction: ltr;
}

.gamesub-gallery__thumbs::-webkit-scrollbar {
    display: none;
}

.gamesub-gallery__thumb {
    position: relative;
    flex: 0 0 auto;
    width: 184px;
    height: 96px;
    padding: 0;
    border: 2px solid var(--gs-border);
    border-radius: 4px;
    overflow: hidden;
    background-color: var(--gs-bg-section);
    cursor: pointer;
    transition: border-color var(--gs-transition);
}

.gamesub-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gamesub-gallery__thumb.is-active {
    border-color: var(--gs-primary);
}

.gamesub-gallery__thumb--video {
    display: block;
}

.gamesub-gallery__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: rgba(28, 30, 34, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gamesub-gallery__play svg {
    width: 24px;
    height: 24px;
}

.gamesub-gallery__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 31px;
    height: 44px;
    padding: 4px;
    border: 0;
    background-color: var(--gs-bg-frame);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--gs-transition);
}

.gamesub-gallery__nav:hover {
    background-color: var(--gs-bg-frame2);
}

.gamesub-gallery__nav svg {
    width: 24px;
    height: 24px;
}

.gamesub-gallery__nav--prev {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.gamesub-gallery__nav--next {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.gamesub-gallery__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.gamesub-gallery__dot {
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 8px;
    background-color: var(--gs-bg-frame);
    transition: background-color var(--gs-transition);
}

.gamesub-gallery__dot.is-active {
    background-color: var(--gs-primary);
}

/* --- Carousel (mirrors game/mod download galleries) ------------------------- */
.gamesub-carousel {
    position: relative;
    width: 100%;
    height: 455px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--gs-bg-section);
}

.gamesub-carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.gamesub-carousel-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.gamesub-carousel-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    cursor: zoom-in;
}

/* Overlay navigation arrows */
.gamesub-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 31px;
    height: 31px;
    background-color: var(--gs-bg-frame);
    border: none;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background-color 0.15s ease;
}

.gamesub-carousel-nav:hover {
    background-color: #2e3038;
}

.gamesub-carousel-nav--prev {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.gamesub-carousel-nav--next {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.gamesub-carousel-nav svg,
.gamesub-carousel-nav img {
    width: 24px;
    height: 24px;
    display: block;
}

/* Video embed */
.gamesub-video-embed {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gamesub-video-embed iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    border-radius: 8px;
}

.gamesub-video-embed--with-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gamesub-video-placeholder {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gamesub-video-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    transition: background 0.3s ease;
}

.gamesub-video-placeholder:hover::after {
    background: rgba(0, 0, 0, 0.4);
}

.gamesub-video-play-btn {
    position: relative;
    z-index: 2;
    width: 40px;
    height: 40px;
    background: var(--gs-primary);
    border: none;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.gamesub-video-play-btn:hover {
    transform: scale(1.1);
}

.gamesub-video-play-btn svg,
.gamesub-video-play-btn img {
    width: 24px;
    height: 24px;
    display: block;
}

.gamesub-video-embed--playing .gamesub-video-placeholder {
    opacity: 0;
    pointer-events: none;
}

/* Thumbnails row */
.gamesub-thumbnails-wrap {
    position: relative;
    width: 100%;
    flex-shrink: 0;
    z-index: 1;
}

.gamesub-thumbnails {
    position: relative;
    display: flex;
    gap: 15px;
    align-items: center;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    box-sizing: border-box;
    scrollbar-width: none;
    flex-direction: row;
}

.gamesub-thumbnails::-webkit-scrollbar {
    display: none;
}

.gamesub-thumb {
    position: relative;
    flex-shrink: 0;
    width: 184px;
    height: 96px;
    border-radius: 4px;
    border: 2px solid var(--gs-border);
    overflow: hidden;
    padding: 0;
    background: none;
    cursor: pointer;
    transition: border-color 0.15s ease;
    box-sizing: border-box;
}

.gamesub-thumb.is-active {
    border-color: var(--gs-primary);
}

.gamesub-thumb-placeholder {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
    background: linear-gradient(135deg, #1e2024 0%, #262a30 100%);
    border-style: dashed;
    border-color: #3a3f47;
}

.gamesub-thumb-placeholder .gamesub-thumb-inner {
    display: none;
}

.gamesub-thumb-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.5'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'/%3E%3Cpath d='M21 15l-5-5L5 21'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

.gamesub-thumb-inner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gamesub-thumb-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.gamesub-thumb-inner::after {
    content: '';
    position: absolute;
    inset: 2.08% 0.98%;
    background-color: rgba(25, 26, 30, 0.3);
    border-radius: 2px;
    pointer-events: none;
}

.gamesub-thumb.is-active .gamesub-thumb-inner::after {
    display: none;
}

.gamesub-thumb-inner--video {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gamesub-thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--gs-bg-section);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    width: 24px;
    height: 24px;
    box-sizing: content-box;
}

.gamesub-thumb-play svg,
.gamesub-thumb-play img {
    width: 24px;
    height: 24px;
    display: block;
}

/* Dot indicators */
.gamesub-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-shrink: 0;
    flex-direction: row;
}

.gamesub-dot {
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 8px;
    background-color: var(--gs-bg-frame);
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.gamesub-dot.is-active {
    background-color: var(--gs-primary);
}

/* --- Details ----------------------------------------------------------------- */
.gamesub-details {
    width: 100%;
    background-color: var(--gs-bg-section);
    border-radius: var(--gs-radius-card);
    overflow: hidden;
}

.gamesub-details__inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
}

.gamesub-toast {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background-color: var(--gs-bg-frame);
    border: 1px solid var(--gs-border);
    border-radius: var(--gs-radius-btn);
    box-sizing: border-box;
    direction: ltr;
}

.gamesub-toast__text {
    flex: 1 1 0;
    min-width: 0;
    margin: 0;
    font-family: var(--gs-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--gs-text-primary);
    text-align: right;
    direction: rtl;
}

.gamesub-toast__icon {
    flex: 0 0 auto;
    display: inline-flex;
    width: 24px;
    height: 24px;
}

.gamesub-toast__icon svg {
    width: 24px;
    height: 24px;
}

/* Post content */
.gamesub-content {
    width: 100%;
    font-family: var(--gs-font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--gs-text-primary);
    text-align: right;
    direction: rtl;
}

.gamesub-content p {
    margin: 0 0 16px;
}

.gamesub-content p:last-child {
    margin-bottom: 0;
}

.gamesub-content h2,
.gamesub-content h3,
.gamesub-content h4 {
    color: var(--gs-text-primary);
    font-family: var(--gs-font);
}

.gamesub-content a {
    color: var(--gs-primary);
}

.gamesub-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.gamesub-content ul,
.gamesub-content ol {
    margin: 0 0 16px;
    padding-right: 24px;
}

/* --- Similar posts ----------------------------------------------------------- */
.gamesub-similar {
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: 100%;
}

.gamesub-similar__head {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.gamesub-similar__title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    flex-direction: row-reverse;
}

.gamesub-similar__title {
    margin: 0;
    font-family: var(--gs-font);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--gs-text-primary);
    white-space: nowrap;
}

.gamesub-similar__icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
}

.gamesub-similar__icon svg {
    width: 32px;
    height: 32px;
}

.gamesub-similar__line {
    flex: 1 1 auto;
    height: 1px;
    background-color: var(--gs-border);
}

.gamesub-similar__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    width: 100%;
    align-items: start;
}

/* Card */
.gamesub-card {
    display: flex;
    flex-direction: column;
    background-color: var(--gs-bg-section);
    border: 1px solid var(--gs-border);
    border-radius: var(--gs-radius-card);
    overflow: hidden;
    transition: transform var(--gs-transition), box-shadow var(--gs-transition), border-color var(--gs-transition);
}

.gamesub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    border-color: var(--gs-primary);
}

.gamesub-card__image-wrap {
    display: block;
    position: relative;
    width: 100%;
    height: 184px;
    overflow: hidden;
    background-color: var(--gs-bg-section);
}

.gamesub-card__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gamesub-card:hover .gamesub-card__image {
    transform: scale(1.05);
}

.gamesub-card__image-placeholder {
    position: absolute;
    inset: 0;
    display: block;
    background: linear-gradient(135deg, #25272d 0%, #1c1e22 100%);
}

.gamesub-card__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
    padding: 16px;
    flex: 1;
}

.gamesub-card__title {
    margin: 0;
    font-family: var(--gs-font);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.5;
    text-align: right;
    direction: rtl;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gamesub-card__title-link {
    color: var(--gs-text-primary);
    text-decoration: none;
    transition: color var(--gs-transition);
}

.gamesub-card__title-link:hover {
    color: var(--gs-primary);
}

.gamesub-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: rtl;
    flex-wrap: wrap;
}

.gamesub-card__version,
.gamesub-card__update {
    font-family: var(--gs-font);
    font-size: 14px;
    font-weight: 400;
    color: var(--gs-text-secondary);
    white-space: nowrap;
    direction: rtl;
}

.gamesub-card__dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--gs-text-secondary);
    flex-shrink: 0;
}

.gamesub-card__desc {
    margin: 0;
    font-family: var(--gs-font);
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    color: var(--gs-text-secondary);
    text-align: right;
    direction: rtl;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gamesub-card__divider {
    width: 100%;
    height: 1px;
    background-color: var(--gs-border);
    flex-shrink: 0;
}

.gamesub-card__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    direction: rtl;
}

.gamesub-card__price {
    font-family: var(--gs-font);
    font-size: 16px;
    font-weight: 400;
    color: var(--gs-text-primary);
    white-space: nowrap;
    direction: rtl;
}

.gamesub-card__price-label {
    font-family: var(--gs-font);
    font-size: 16px;
    font-weight: 400;
    color: var(--gs-text-secondary);
    white-space: nowrap;
    direction: rtl;
}

.gamesub-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 8px 12px;
    background-color: var(--gs-primary);
    border-radius: var(--gs-radius-btn);
    font-family: var(--gs-font);
    font-size: 16px;
    font-weight: 400;
    color: #ffffff;
    text-decoration: none;
    line-height: 1.2;
    transition: background-color var(--gs-transition), transform var(--gs-transition);
}

.gamesub-card__btn:hover {
    background-color: #0d6fbf;
    transform: translateY(-1px);
}

/* --- Responsive -------------------------------------------------------------- */
@media (max-width: 1439px) {
    .gamesub-post-container {
        padding: 0 48px;
    }
}

@media (max-width: 1199px) {
    .gamesub-post-container {
        padding: 0 32px;
    }

    .gamesub-header__thumb {
        width: 320px;
        height: 160px;
    }

    .gamesub-carousel {
        height: 380px;
    }

    .gamesub-thumb {
        width: 150px;
        height: 78px;
    }

    .gamesub-similar__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1023px) {
    .gamesub-post-container {
        padding: 0 24px;
    }

    .gamesub-post-main {
        padding: 40px 0;
    }

    .gamesub-carousel {
        height: 320px;
    }

    .gamesub-header__top {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .gamesub-header__thumb {
        order: 0;
        width: 100%;
        height: auto;
        aspect-ratio: 392 / 176;
        border-radius: 8px;
    }

    .gamesub-header__content {
        align-items: stretch;
    }

    .gamesub-title-block {
        align-items: flex-start;
        text-align: right;
    }

    .gamesub-actions {
        flex-wrap: wrap;
    }

    .gamesub-actions__buttons {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .gamesub-post-container {
        padding: 0 16px;
    }

    .gamesub-post-article {
        gap: 32px;
    }

    .gamesub-title {
        font-size: 20px;
        line-height: 1.6;
        white-space: normal;
    }

    .gamesub-subtitle {
        font-size: 16px;
    }

    .gamesub-version {
        font-size: 13px;
    }

    .gamesub-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .gamesub-price {
        justify-content: flex-start;
    }

    .gamesub-carousel {
        height: 240px;
    }

    .gamesub-thumb {
        width: 120px;
        height: 63px;
    }

    .gamesub-details__inner {
        padding: 16px;
    }

    .gamesub-similar__grid {
        grid-template-columns: 1fr;
    }

    .gamesub-card__title {
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gamesub-card,
    .gamesub-card__image,
    .gamesub-btn,
    .gamesub-card__btn {
        transition: none;
    }
}
