.horizontal-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 1rem 1rem;
    margin-top: 1rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

    .horizontal-scroll::-webkit-scrollbar {
        display: none;
    }

.release-card {
    flex: 0 0 auto;
    width: 261px;
    height: 200px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    scroll-snap-align: start;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
    position: relative;
}

    .release-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    }

    .release-card:active {
        transform: translateY(-2px);
        transition: transform 0.1s;
    }

.orion-bg {
    background: linear-gradient(135deg,#007AFF 0%,#005bb5 100%);
}

.suit-bg {
    background: linear-gradient(135deg,#F4DB39 0%,#e6c62d 100%);
}

.default-bg {
    background: linear-gradient(135deg,#6c757d 0%,#545b62 100%);
}

.logo-bg {
    width: 221px;
    height: 114px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: .5rem;
    position: relative;
    overflow: hidden;
    background-color: #fff;
}

.favorite-star {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 20px;
    height: 20px;
    z-index: 2;
}

    .favorite-star:hover {
        transform: scale(1.1);
    }

    .favorite-star.favorited {
        filter: drop-shadow(0 0 3px rgba(255,193,7,.8));
    }

.gallery-bg {
    background-color: #fff;
}

.product-logo {
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.1));
}

.orion-logo {
    width: 161px;
    height: 17px;
}

.suit-logo {
    width: 138px;
    height: 36px;
}

.qr-menu-icon {
    width: 100%;
    height: auto;
    max-height: 114px;
    object-fit: contain;
    border-radius: 12px;
    background-color: rgba(255,255,255,.95);
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.qr-default-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255,255,255,.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}

.gallery-image {
    width: 100%;
    height: auto;
    max-height: 114px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.gallery-default-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(255,255,255,.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    background-color: #1a1a1a;
    padding: 12px 16px;
    margin: 2.5rem 0 .5rem;
    letter-spacing: -0.025em;
    position: relative;
}

    .section-title:first-child {
        margin-top: 0;
    }

.version {
    width: 218px;
    height: 32px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.date {
    width: 211px;
    height: 32px;
    font-size: .8rem;
    color: #666;
    text-align: center;
    margin-top: .25rem;
    text-decoration: none;
    line-height: 1.3;
    font-weight: 500;
}

.qr-description {
    width: 211px;
    font-size: .75rem;
    color: #666;
    margin-top: .25rem;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
}

.more-card {
    background-color: #f8f9fa;
    border: 2px dashed #ddd;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: .5rem;
}

    .more-card:hover {
        background-color: #f0f0f0;
        border-color: #ccc;
    }

    .more-card .plus-icon {
        font-size: 2rem;
        color: #666;
        font-weight: 300;
    }

.more-text {
    font-size: .9rem;
    font-weight: 500;
    color: #666;
}

.video-card {
    flex: 0 0 auto;
    width: 240px;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    padding: 1rem;
    cursor: pointer;
    transition: all .3s cubic-bezier(0.4,0,0.2,1);
    text-decoration: none;
    color: inherit;
    scroll-snap-align: start;
}

    .video-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0,0,0,.15);
    }

.video-thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 135px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: .75rem;
    background: #f8f9fa;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.video-card:hover .video-thumbnail {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s ease;
    backdrop-filter: blur(4px);
}

.video-card:hover .play-button {
    background: rgba(255,0,0,.9);
    transform: translate(-50%,-50%) scale(1.1);
}

.video-title {
    font-size: .9rem;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    margin: 0;
    line-height: 1.4;
    letter-spacing: -0.01em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.more-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: .5rem;
}

.faq-section {
    margin-top: 2.5rem;
}

.faq-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 1rem 1rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    .faq-container::-webkit-scrollbar {
        display: none;
    }

.faq-item {
    flex: 0 0 auto;
    width: 261px;
    height: 200px;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
    scroll-snap-align: start;
    transition: all .3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

    .faq-item:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0,0,0,.15);
    }

.faq-question {
    font-weight: 700;
    font-size: 1.2rem;
    color: #1a1a1a;
    line-height: 1.3;
}

.faq-answer {
    display: none !important;
}

.faq-more-card {
    background-color: #f8f9fa;
    border: 2px dashed #ddd;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: .5rem;
    display: flex;
    flex-direction: column;
    width: 261px;
    height: 200px;
    border-radius: 16px;
    scroll-snap-align: start;
    text-decoration: none;
}

    .faq-more-card:hover {
        background-color: #f0f0f0;
        border-color: #ccc;
    }

    .faq-more-card .plus-icon {
        font-size: 2rem;
        color: #666;
        font-weight: 300;
        line-height: 1;
    }

    .faq-more-card .more-text {
        font-size: .9rem;
        font-weight: 500;
        color: #666;
        text-align: center;
        margin: 0;
    }

.faq-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    background-color: #1a1a1a;
    padding: 12px 16px;
    margin: 2.5rem 0 .5rem;
    letter-spacing: -0.025em;
    position: relative;
}

.sales-gallery-card .qr-title,
.sales-gallery-card .qr-description {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.3;
    max-height: calc(1.3em * 2);
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: center;
}

.release-card .version,
.release-card .date,
.release-card .qr-title,
.release-card .qr-description,
.video-card .video-title,
.faq-item .faq-question {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.3;
    max-height: calc(1.3em * 2);
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: center;
}

.more-card .more-text {
    display: block;
    -webkit-line-clamp: unset;
    max-height: none;
    overflow: visible;
}

@media (max-width: 576px) {
    .horizontal-scroll, .faq-container {
        gap: 12px;
        padding: 0 12px 16px;
    }

    .release-card,
    .video-card,
    .faq-item,
    .more-card,
    .faq-more-card {
        flex: 0 0 85vw;
        width: 85vw;
        max-width: 360px;
        height: auto;
        min-height: 180px;
    }

    .video-thumbnail-wrapper {
        height: 160px;
    }

    .section-title, .faq-title {
        margin-top: 20px;
        margin-bottom: 8px;
    }
}

@media (min-width: 577px) and (max-width: 1024px) {
    .release-card, .video-card, .faq-item, .more-card, .faq-more-card {
        width: 220px;
        flex: 0 0 220px;
    }
}

@media (min-width: 1025px) {
    .release-card, .video-card, .faq-item, .more-card, .faq-more-card {
        width: 261px;
        flex: 0 0 261px;
    }
}

@media (max-width: 576px) {
    .logo-bg {
        width: 240px;
        height: 125px;
    }

    .orion-logo {
        width: 190px;
        height: auto;
    }

    .suit-logo {
        width: 165px;
        height: auto;
    }

    .btn {
        border-radius: 8px;
        transition: transform 0.15s ease, box-shadow 0.15s ease;
    }

        .btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
}

html, body {
    height: 100%;
}

body {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 16px);
}

.home-footer {
    width: 100%;
    max-width: 520px;
    margin: 18px auto calc(env(safe-area-inset-bottom,0px) + 28px);
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,.06);
}

    .home-footer .btn {
        flex: 1 0 calc(50% - 12px);
        min-width: 140px;
        height: auto;
        min-height: 48px;
        padding: 10px 12px;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        word-break: break-word;
    }

@media (max-width: 360px) {
    .home-footer .btn {
        flex: 1 0 100%;
        min-width: 0;
    }
}

.release-card.qr-menu-card {
    height: auto;
    min-height: 200px;
}

.qr-title {
    margin-top: .25rem;
    font-weight: 700;
    font-size: 1rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-height: 1.3;
    max-height: calc(1.3em * 2);
    word-break: break-word;
    overflow-wrap: anywhere;
}
.release-card .qr-title,
.release-card .qr-description {
    text-align: center;
}

.qr-title,
.qr-description {
    text-align: left;
}

.qr-menu-card .logo-bg {
    margin-bottom: .6rem;
}

.qr-menu-card .qr-title {
    margin-bottom: .15rem;
}
