/* Phone layouts for reading, project downloads and discussions. */
@media (max-width: 767px) {
    .product-page .product-title-row { gap: 20px; }
    .product-page .project-tags { gap: 7px; font-size: 12px; }
    .product-page .project-rating-aside { width: 100%; }
    .product-page .project-rating-summary { min-height: 76px; padding: 14px 16px; }
    .product-page .product-layout { gap: 18px; margin-bottom: 24px; }
    .product-page .product-layout.is-reading { gap: 18px; }
    .product-page .product-layout.is-reading .product-gallery-shell {
        grid-template-rows: 1fr;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .product-page :is(.product-summary .prose, .detail-section .prose, .project-description) {
        font-size: 16px;
        line-height: 1.75;
    }
    .product-page .description-toggle {
        min-height: 44px;
        font-size: 14px;
        padding: 10px 0;
        margin-top: 8px;
    }
    .product-page .project-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .product-page .project-actions .link-button { min-height: 48px; margin: 0; justify-content: center; }
    .product-page .product-summary .download-actions { margin-top: 20px; gap: 10px; }
    .product-page .download-option { min-height: 76px; gap: 12px; padding: 14px 12px; }
    .product-page .download-platform { flex-basis: 36px; height: 36px; border-radius: 10px; }
    .product-page .download-title { font-size: 15px; line-height: 1.45; }
    .product-page .download-meta { font-size: 12px; line-height: 1.6; }
    .product-page .download-state { font-size: 11px; padding: 5px 7px; }
    .product-page .download-symbol { flex-basis: 20px; }
    .product-page .requirements-grid { grid-template-columns: 1fr; gap: 24px; }
    .product-page .requirements-grid > div { min-width: 0; }
    .product-page .requirements-grid h3 { margin-bottom: 12px; font-size: 18px; }
    .product-page .media-hint { font-size: 12px; margin: 10px 0 14px; }
    .product-page .breadcrumb-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; margin-bottom: 8px; }
    :is(.product-page, .news-page, .about-page, .sg-page) .prose table {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        overscroll-behavior-x: contain;
    }

    .news-page .news-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; padding: 12px; gap: 10px; }
    .news-page .news-search { grid-column: 1 / -1; min-height: 48px; padding-inline: 12px; }
    .news-page .news-toolbar input { font-size: 16px; }
    .news-page .news-year { min-width: 0; }
    .news-page .news-year :is(select, .mgn-select, .mgn-select-button) { width: 100%; min-width: 0; min-height: 46px; }
    .news-page .news-year :is(select, .mgn-select-button) { font-size: 14px; }
    .news-page .news-toolbar .link-button { font-size: 14px; min-height: 46px; padding: 11px 16px; }
    .news-page .news-feed { grid-template-columns: 1fr; gap: 18px; }
    .news-page .news-card.content-block { padding: 0; }
    .news-page :is(.news-card-content, .news-card-featured .news-card-content) { padding: 20px; }
    .news-page .news-card h2 { font-size: 22px; line-height: 1.4; }
    .news-page .news-card-featured h2 { font-size: 25px; }
    .news-page .news-card .news-meta { font-size: 12px; margin-bottom: 12px; }
    .news-page .news-excerpt { font-size: 15px; line-height: 1.7; margin-bottom: 18px; }
    .news-page .news-card-bottom { flex-wrap: wrap; font-size: 12px; padding-top: 12px; gap: 6px 12px; }
    .news-page .news-card-bottom .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
    .news-page .news-card-text-only:not(.news-card-featured) { min-height: 0; }
    .news-page .news-list-meta { flex-wrap: wrap; font-size: 13px; gap: 8px; }
    .news-page .news-pagination .link-button { min-width: 44px; min-height: 44px; font-size: 14px; }
    .news-reading-page .news-back { min-height: 44px; font-size: 14px; margin-bottom: 20px; }
    .news-reading-page .news-article-heading .news-meta { font-size: 12px; gap: 8px 14px; flex-wrap: wrap; }
    .news-reading-page .news-article-body.content-block { padding: 22px 18px; }
    .news-reading-page .news-article-body .news-copy,
    .news-reading-page .news-article-body .news-copy p { font-size: 16px; line-height: 1.8; }
    .news-reading-page .news-article-attachments { margin-top: 26px; }
    .news-reading-page .news-adjacent { grid-template-columns: 1fr; gap: 12px; margin-top: 26px; }
    .news-reading-page .news-adjacent > a { padding: 20px; }
    .news-reading-page .news-adjacent time { font-size: 12px; }

    .sg-page .catalog-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-bottom: 20px; }
    .sg-page .catalog-tabs a { display: flex; align-items: center; justify-content: center; min-height: 46px; font-size: 14px; padding: 10px 12px; }
    .sg-page .catalog-tabs .catalog-lab-link { grid-column: 1 / -1; margin-left: 0; gap: 8px; }
    .sg-page .catalog-meta { font-size: 13px; margin: 20px 0; gap: 12px; }
    .sg-page .sg-grid { gap: 18px; }
    .sg-page .sg-grid .sg-entry { grid-template-columns: 96px minmax(0, 1fr); gap: 16px; padding: 18px; }
    .sg-page .sg-cover { width: 96px; min-width: 0; grid-column: 1; grid-row: 1; }
    .sg-page .sg-copy { display: contents; }
    .sg-page .sg-copy h2 { grid-column: 2; grid-row: 1; align-self: center; font-size: 21px; margin: 0; }
    .sg-page .sg-copy .prose { grid-column: 1 / -1; font-size: 16px; line-height: 1.75; }
    .sg-page .sg-cover .status-badge { min-height: 44px; font-size: 11px; padding: 6px; margin-top: 8px; }
    .sg-page .source-link { display: inline-flex; align-items: center; grid-column: 1 / -1; min-height: 44px; font-size: 14px; margin-top: 0; width: fit-content; }

    .about-page .about-intro { grid-template-columns: 1fr; gap: 24px; }
    .about-page .about-intro .prose { font-size: 16px; line-height: 1.8; }
    .about-page .about-intro .text-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
    .about-page .office-photo figcaption { font-size: 13px; padding: 12px 16px; }
    .about-page .team-heading { margin: 36px 0 20px; gap: 12px; flex-wrap: wrap; }
    .about-page .team-heading > span { font-size: 13px; }
    .about-page .team-grid { gap: 16px; }
    .about-page .team-card { grid-template-columns: 64px minmax(0, 1fr); gap: 12px 16px; padding: 20px; }
    .about-page .team-photo { grid-column: 1; grid-row: 1 / span 2; width: 64px; }
    .about-page .team-card > div { display: contents; }
    .about-page .team-card h3 { grid-column: 2; margin: 0; font-size: 20px; line-height: 1.4; }
    .about-page .team-card .team-role { grid-column: 2; font-size: 14px; line-height: 1.65; margin: 0; }
    .about-page .team-card dl { grid-column: 1 / -1; margin-top: 0; font-size: 15px; line-height: 1.7; }
    .about-page .team-card dt { font-size: 13px; margin-top: 14px; }

    .readiness-page .readiness-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .readiness-page .readiness-filters button { min-width: 0; min-height: 46px; justify-content: space-between; font-size: 14px; padding: 10px 12px; }
    .readiness-page .readiness-filters button > span { font-size: 11px; }
    .readiness-page .readiness-note { font-size: 14px; line-height: 1.75; margin-bottom: 20px; }
    .readiness-page .readiness-list { gap: 18px; }
    .readiness-page .readiness-card.content-block { padding: 0; }
    .readiness-page .readiness-overview { gap: 18px; padding: 18px; }
    .readiness-page .readiness-card-meta { font-size: 12px; margin-bottom: 12px; }
    .readiness-page .readiness-state { font-size: 11px; }
    .readiness-page .readiness-card h2 { font-size: 22px; line-height: 1.4; margin-bottom: 18px; }
    .readiness-page .readiness-overall { font-size: 14px; gap: 12px; }
    .readiness-page .readiness-overall strong { font-size: 22px; }
    .readiness-page .readiness-project-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; margin-top: 12px; }
    .readiness-page .readiness-details summary { min-height: 52px; font-size: 15px; padding: 14px 18px; gap: 8px; }
    .readiness-page .readiness-details summary > span { font-size: 12px; }
    .readiness-page .readiness-stage-grid { padding: 16px; gap: 12px; }
    .readiness-page .readiness-stage { padding: 16px; }
    .readiness-page .readiness-stage h3 { font-size: 17px; line-height: 1.45; margin-bottom: 18px; }
    .readiness-page .readiness-stage h3 > span { font-size: 14px; flex-shrink: 0; }
    .readiness-page .readiness-task-label { font-size: 14px; line-height: 1.6; gap: 12px; }
    .readiness-page .readiness-task-label strong { font-size: 13px; }
    .readiness-page .readiness-stage li > small { font-size: 12px; line-height: 1.5; }

    .project-comments .comments-heading { align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
    .project-comments .comments-heading p:last-child { font-size: 15px; line-height: 1.6; }
    .project-comments .comments-guest-label { font-size: 12px; }
    .project-comments .comment-composer { grid-template-columns: minmax(0, 1fr); }
    .project-comments .comment-composer .comment-form-bottom { grid-column: 1; }
    .project-comments .comment-field > span { font-size: 14px; }
    .project-comments .comment-field input,
    .project-comments .comment-field textarea { font-size: 16px; padding: 12px; min-height: 48px; line-height: 1.6; }
    .project-comments .comment-field textarea { min-height: 150px; }
    .project-comments .comment-form-hint { font-size: 13px; margin-bottom: 20px; }
    .project-comments .comment-form-note { font-size: 12px; }
    .project-comments .comment-form-bottom small { font-size: 12px; }
    .project-comments .comment-form-bottom .link-button { font-size: 15px; min-height: 48px; }
    .project-comments .comment-compose-toggle { min-height: 48px; font-size: 15px; padding: 12px 16px; }
    .project-comments .comment-copy header { align-items: flex-start; flex-direction: column; gap: 6px; margin-bottom: 12px; }
    .project-comments .comment-copy h3 { font-size: 15px; }
    .project-comments .comment-copy time { font-size: 12px; white-space: normal; }
    .project-comments .comment-copy p { font-size: 16px; line-height: 1.75; }
    .project-comments .comments-empty.content-block { min-height: 220px; padding: 28px 20px; }
    .project-comments .comments-empty p { font-size: 15px; }
    .project-comments .comment-score { font-size: 11px; }
    .project-comments .comment-admin-reply { margin-left: 0; padding: 16px; }
    .project-comments .comment-admin-identity strong { font-size: 14px; }
    .project-comments .comment-admin-badge { font-size: 11px; }
    .project-comments .comment-pagination { gap: 12px; }
    .project-comments .comment-pagination > a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px; font-size: 14px; }
    .project-comments .comment-pagination > span { font-size: 13px; }
    .comment-reactions { gap: 8px; }
    .comment-reactions .comment-reaction { min-width: 50px; min-height: 44px; padding: 8px 10px; font-size: 14px; }
    .comment-reactions .reaction-picker summary { width: 44px; height: 44px; }
    .comment-reactions .reaction-picker-menu { display: grid; grid-template-columns: repeat(4, 44px); gap: 4px; padding: 8px; }
    .comment-reactions .reaction-picker-menu button { width: 44px; height: 44px; }
    .comment-reactions .comment-reaction-status { font-size: 12px; }
    .project-comments .comment-rating-choice { grid-column: 1; width: 100%; max-width: none; }
    .project-comments .comment-rating-choice summary { min-height: 46px; font-size: 14px; }
    .project-comments .comment-rating-choice summary strong { font-size: 13px; }
    .project-comments .comment-rating-options { position: static; width: 100%; max-width: none; margin-top: 10px; padding: 16px; box-shadow: none; }
    .project-comments .comment-rating-options legend { font-size: 14px; line-height: 1.6; }
    .project-comments .comment-no-rating { min-height: 44px; font-size: 14px; }
    .project-comments .comment-no-rating input { width: 18px; height: 18px; flex-shrink: 0; }
    .rating-options { grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 6px; }
    .rating-options span { min-height: 44px; font-size: 15px; }
    .project-rating-label { font-size: 13px; }
    .project-rating-label > small { font-size: 11px; }
    .project-rating-meta { font-size: 11px; }
    .project-rating-edit { font-size: 12px; }
    .project-rating-form { padding: 16px; }
    .project-rating-form .project-rating-help,
    .project-rating-form .project-rating-mine { font-size: 13px; }
    .project-rating-form .project-rating-actions { gap: 10px; flex-wrap: wrap; }
    .project-rating-form .project-rating-actions .link-button,
    .project-rating-form .rating-remove { font-size: 14px; min-height: 44px; }
    .news-reading-page .news-reaction-block { padding: 18px; gap: 14px; }
    .news-reading-page .news-reaction-block > p { font-size: 15px; line-height: 1.6; }

    .may-player-page .wrap { width: calc(100% - 32px); }
    .may-player-page .hero { min-height: 0; padding: 38px 0 26px; gap: 24px; }
    .may-player-page .lead { font-size: 16px; line-height: 1.7; }
    .may-player-page .hero-actions { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .may-player-page .btn { width: 100%; min-height: 50px; font-size: 15px; border-radius: 12px; }
    .may-player-page .micro { font-size: 13px; gap: 8px 12px; }
    .may-player-page section { padding: 48px 0; }
    .may-player-page .section-head { gap: 18px; margin-bottom: 26px; }
    .may-player-page .section-head h2,
    .may-player-page .cta h2 { font-size: clamp(32px, 8vw, 46px); line-height: 1.1; }
    .may-player-page .section-desc { font-size: 16px; line-height: 1.7; }
    .may-player-page .feature-grid { gap: 12px; }
    .may-player-page .feature { padding: 22px; border-radius: 20px; }
    .may-player-page .feature.big { grid-template-columns: 1fr; gap: 18px; min-height: 0; }
    .may-player-page .feature.small { grid-column: span 12; min-height: 0; }
    .may-player-page .feature.tall { min-height: 0; }
    .may-player-page .feature-icon { margin-bottom: 20px; }
    .may-player-page .feature h3 { font-size: 23px; }
    .may-player-page .feature p,
    .may-player-page .download-card p,
    .may-player-page .cta p { font-size: 16px; line-height: 1.65; }
    .may-player-page .download-card { min-height: 0; padding: 22px; gap: 24px; border-radius: 20px; }
    .may-player-page .platform-icon { width: 48px; height: 48px; margin-bottom: 20px; }
    .may-player-page .download-card h3 { font-size: 30px; }
    .may-player-page .download-bottom { gap: 10px; }
    .may-player-page .cta { min-height: 0; padding: 36px 22px; border-radius: 22px; }
    .may-player-page .player-discussions { padding: 36px 0 52px; }
    .may-player-page .visual-stage > .player-rating-row { width: 100%; margin-bottom: 18px; }
    .may-player-page .visual-stage > .player-rating-row .project-rating-aside { width: 100%; flex-basis: 100%; }
    .may-player-page .visual-stage > .player-rating-row .project-rating-summary { padding: 14px 16px; }
    .may-player-page .visual-stage > .player-rating-row .project-rating-form { max-width: none; }
}

@media (max-width: 575px) {
    .project-comments .project-comment.content-block { display: grid; grid-template-columns: 1fr; gap: 0; padding: 18px 16px; }
    .project-comments .project-comment .comment-avatar { display: none; }
    .project-comments .comment-form-bottom { align-items: stretch; flex-direction: column; gap: 12px; }
    .project-comments .comment-form-bottom .link-button { width: 100%; justify-content: center; }
    .sg-page .sg-grid .sg-entry { grid-template-columns: 80px minmax(0, 1fr); gap: 14px; padding: 16px; }
    .sg-page .sg-cover { width: 80px; }
    .sg-page .sg-copy h2 { font-size: 19px; line-height: 1.4; }
    .about-page .team-card { padding: 18px; }
    .may-player-page .visual-stage { min-height: 0; margin: 0; }
    .may-player-page .hero-devices { height: 350px; margin-top: 16px; }
    .may-player-page .desktop-device { top: 98px; }
    .may-player-page .player-device { top: 20px; width: 126px; }
    .may-player-page .platform-chip.pc { top: 67px; font-size: 10px; }
    .may-player-page .platform-chip.mobile { top: -8px; font-size: 10px; }
    .may-player-page .device-note { display: none; }
}
