/* Single app page */
.app-single-page {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0 26px;
}

.app-single-top-slot {
    margin-bottom: 10px;
}

.app-single-top-title {
    margin: 0;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
}

.app-single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 14px;
}

.app-single-layout > * {
    min-width: 0;
}

.app-single-sidebar {
    padding-top: 16px;
}

.app-single-sidebar-note {
    margin: 0 0 8px;
    font-size: 0.9rem;
    text-align: center;
    color: #374151;
}

.app-single-hero {
    position: relative;
    margin-bottom: 8px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.app-single-hero-image {
    width: 100%;
    height: 224px;
    object-fit: cover;
    display: block;
}

.app-single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.36), rgba(0, 0, 0, 0));
}

.app-single-hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    text-align: center;
    padding: 10px 16px;
}

.app-single-hero-row,
.app-single-head-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.app-single-head-row {
    margin-bottom: 18px;
}

.app-single-hero-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.2);
    border: 2px solid #f3f4f6;
}

.app-single-hero-title {
    margin: 0;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
    font-size: 1.12rem;
    line-height: 1.2;
}

.app-single-title {
    margin: 0;
    color: #111827;
    font-size: 1.12rem;
    line-height: 1.2;
}

.app-single-hero-meta,
.app-single-post-meta {
    margin: 0 0 8px;
    font-size: 0.74rem;
    color: #d1d5db;
}

.app-single-post-meta {
    color: #4b5563;
}

.app-single-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 24px;
}

.app-single-btn {
    border-radius: 10px;
    color: #ffffff;
    font-weight: 700;
    padding: 14px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.16);
}

.app-single-btn:hover {
    transform: translateY(-1px);
}

.app-single-btn-play {
    background: #16a34a;
}

.app-single-btn-play:hover {
    background: #15803d;
}

.app-single-btn-store {
    background: #1f2937;
}

.app-single-btn-store:hover {
    background: #111827;
}

.app-single-btn-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    object-fit: cover;
    background: #ffffff;
}

.app-single-btn-icon-large {
    width: 28px;
    height: 28px;
}

.app-single-btn-svg {
    width: 20px;
    height: 20px;
}

.app-single-action-note {
    margin: 2px 0 0;
    text-align: center;
    color: #6b7280;
    font-size: 0.74rem;
}

.app-single-rating {
    margin-top: 4px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.app-single-rating-star {
    color: #f59e0b;
    font-size: 1.1rem;
}

.app-single-rating-value {
    color: #1f2937;
    font-weight: 700;
}

.app-single-rating-label {
    color: #6b7280;
    font-size: 0.87rem;
}

.app-single-card {
    background: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 16px;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    padding: 24px;
}

.app-single-meta-card {
    margin-bottom: 24px;
}

.app-single-meta-list {
    border-top: 1px solid #e5e7eb;
    padding-top: 14px;
}

.app-single-meta-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.92rem;
}

.app-single-meta-row:last-child {
    border-bottom: 0;
}

.app-single-meta-label {
    color: #6b7280;
}

.app-single-meta-value {
    color: #374151;
    font-weight: 600;
}

.app-single-content {
    width: 100%;
}

.app-single-desc-card,
.app-single-screens-card,
.app-single-tax-card,
.app-single-related-card {
    margin-bottom: 28px;
}

.app-single-card-title {
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.25rem;
    color: #1f2937;
}

.app-single-description {
    color: #374151;
    line-height: 1.8;
}

.app-single-description img,
.app-single-description video,
.app-single-description iframe,
.app-single-description canvas,
.app-single-description svg {
    max-width: 100%;
    height: auto;
}

.app-single-description pre,
.app-single-description code,
.app-single-description table {
    max-width: 100%;
}

.app-single-description pre,
.app-single-description table {
    overflow-x: auto;
}

.app-single-screens-scroll {
    overflow-x: auto;
}

.app-single-screens-track {
    display: flex;
    gap: 16px;
    padding-bottom: 8px;
}

.app-single-screen-item {
    flex: 0 0 288px;
}

.app-single-screen-frame {
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    background: #f3f4f6;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.app-single-screen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-single-tax-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.app-single-subtitle {
    margin: 0 0 10px;
    color: #374151;
    font-size: 1rem;
}

.app-single-pill-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.app-single-pill {
    display: inline-block;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.84rem;
    font-weight: 600;
}

.app-single-pill-category {
    background: #eff6ff;
    color: #1d4ed8;
}

.app-single-pill-tag {
    background: #faf5ff;
    color: #7e22ce;
}

.app-single-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.app-single-related-empty {
    margin: 0;
    grid-column: 1 / -1;
    text-align: center;
    color: #6b7280;
    padding: 18px 0;
}

.app-single-author-wrap {
    width: min(820px, 100%);
    margin: 28px auto 0;
}

.app-single-author-card {
    display: flex;
    align-items: center;
    gap: 18px;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
    padding: 24px;
}

.app-single-author-avatar-wrap {
    min-width: 96px;
    display: flex;
    justify-content: center;
}

.app-single-author-avatar {
    width: 96px;
    height: 96px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
}

.app-single-author-name {
    margin: 0 0 6px;
    color: #1f2937;
    font-size: 1.1rem;
}

.app-single-author-bio {
    color: #4b5563;
    font-size: 0.9rem;
}

@media (max-width: 1100px) {
    .app-single-layout {
        grid-template-columns: 1fr;
    }

    .app-single-sidebar {
        padding-top: 8px;
    }

    .app-single-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .app-single-page {
        width: min(1280px, calc(100% - 22px));
        overflow-x: hidden;
    }

    .app-single-card {
        padding: 18px;
    }

    .app-single-screen-item {
        flex-basis: 240px;
    }

    .app-single-tax-grid,
    .app-single-related-grid {
        grid-template-columns: 1fr;
    }

    .app-single-author-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-single-author-avatar {
        width: 80px;
        height: 80px;
    }

    .app-single-description {
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}
