/**
 * BESTPICK volleyball mobile styles
 *
 * 적용 페이지:
 * - /volleyball/index.php
 * - /volleyball/games.php
 * - /volleyball/league.php
 * - /volleyball/team.php
 * - /volleyball/match.php
 *
 * 반드시 volleyball.css 다음에 불러옵니다.
 * 모든 규칙은 768px 이하에서만 적용됩니다.
 */

@media (max-width: 768px) {
    /* 공통 */
    .bp-volleyball {
        width: 100%;
        min-width: 0;
        overflow-x: hidden;
        padding:0;
    }


    .bp-volleyball *,
    .bp-volleyball *::before,
    .bp-volleyball *::after {
        box-sizing: border-box;
    }

    .bp-volleyball img {
        max-width: 100%;
    }

    .bp-volleyball h1,
    .bp-volleyball h2,
    .bp-volleyball h3,
    .bp-volleyball p {
        overflow-wrap: anywhere;
    }

    .bp-volleyball-panel,
    .bp-volleyball-catalog-section,
    .bp-volleyball-empty {
        min-width: 0;
        border-radius: 17px;
    }

    .bp-volleyball-panel,
    .bp-volleyball-catalog-section {
        padding: 17px 13px;
    }

    .bp-volleyball-panel > h2,
    .bp-volleyball-panel > h3,
    .bp-volleyball-catalog-section > h2 {
        margin: 0 0 14px;
        font-size: 1rem;
        line-height: 1.35;
    }

    .bp-volleyball-section-heading {
        display: block;
        margin-bottom: 14px;
    }

    .bp-volleyball-section-heading h2 {
        margin: 0 0 6px;
        font-size: 1rem;
        line-height: 1.35;
    }

    .bp-volleyball-section-heading p {
        margin: 0;
        font-size: .75rem;
        line-height: 1.55;
        word-break: keep-all;
    }

    .bp-volleyball .bp-inline-ad-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
        margin: 14px 0;
    }

    /* 메인 히어로 */
    .bp-volleyball-hero {
        display: block;
        min-width: 0;
        padding: 22px 16px;
        border-radius: 19px;
    }

    .bp-volleyball-eyebrow {
        display: block;
        margin-bottom: 6px;
        font-size: .85rem;
        line-height: 1.2;
    }

    .bp-volleyball-hero h1 {
        margin: 5px 0 8px;
        font-size: 1.5rem;
        line-height: 1.25;
    }

    .bp-volleyball-hero p {
        margin: 0;
        font-size: .85rem;
        line-height: 1.55;
        word-break: keep-all;
    }

    /* index.php 리그 목록 */
    .bp-volleyball-catalog-section {
        margin-top: 14px;
    }

    .bp-volleyball-league-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .bp-volleyball-league-grid > a {
        display: grid;
        grid-template-columns: 42px minmax(0, 1fr);
        align-items: center;
        gap: 9px;
        min-width: 0;
        padding: 12px 10px;
        border-radius: 14px;
    }

    .bp-volleyball-league-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        overflow: hidden;
        border-radius: 11px;
    }

    .bp-volleyball-league-logo img {
        width: 36px;
        height: 36px;
        object-fit: contain;
    }

    .bp-volleyball-league-grid > a > span:last-child {
        min-width: 0;
    }

    .bp-volleyball-league-grid strong,
    .bp-volleyball-league-grid small,
    .bp-volleyball-league-grid em {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bp-volleyball-league-grid strong {
        font-size: .85rem;
        line-height: 1.3;
    }

    .bp-volleyball-league-grid small,
    .bp-volleyball-league-grid em {
        margin-top: 3px;
        font-size: .75rem;
        line-height: 1.25;
    }

    /* games.php 날짜 및 리그 필터 */
    .bp-volleyball-date-nav {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr) 72px;
        align-items: center;
        gap: 7px;
        margin: 14px 0;
    }

    .bp-volleyball-date-nav > a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0 8px;
        font-size: .76rem;
        line-height: 1;
        white-space: nowrap;
    }

    .bp-volleyball-date-nav form {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 48px;
        gap: 6px;
        min-width: 0;
    }

    .bp-volleyball-date-nav input[type="date"],
    .bp-volleyball-date-nav button {
        min-width: 0;
        min-height: 42px;
        font-size: .75rem;
    }

    .bp-volleyball-date-nav input[type="date"] {
        width: 100%;
        padding: 0 7px;
    }

    .bp-volleyball-date-nav button {
        padding: 0 7px;
    }

    .bp-volleyball-league-tabs {
        display: flex;
        gap: 7px;
        margin: 0 -2px 14px;
        padding: 0 2px 4px;
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .bp-volleyball-league-tabs::-webkit-scrollbar {
        display: none;
    }

    .bp-volleyball-league-tabs a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        min-height: 40px;
        padding: 0 13px;
        font-size: .76rem;
        line-height: 1;
        white-space: nowrap;
    }

    /* 경기 목록 공통 */
    .bp-volleyball-game-list {
        display: grid;
        gap: 8px;
    }

    .bp-volleyball-game-list > h2,
    .bp-volleyball-game-list > h3 {
        margin: 14px 0 8px;
        font-size: 1rem;
        line-height: 1.35;
    }

    .bp-volleyball-game-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "meta status"
            "teams teams";
        gap: 8px 10px;
        min-width: 0;
        padding: 11px 10px;
        border-radius: 13px;
    }

    .bp-volleyball-game-row-meta {
        grid-area: meta;
        min-width: 0;
    }

    .bp-volleyball-game-row-meta time,
    .bp-volleyball-game-row-meta small {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bp-volleyball-game-row-meta time {
        font-size: .85rem;
        line-height: 1.3;
    }

    .bp-volleyball-game-row-meta small {
        margin-top: 3px;
        font-size: .75rem;
        line-height: 1.2;
    }

    .bp-volleyball-game-row > em {
        grid-area: status;
        display: inline-flex;
        align-items: center;
        justify-content: flex-end;
        min-height: 23px;
        margin: 0;
        font-size: .75rem;
        line-height: 1;
        white-space: nowrap;
    }

    .bp-volleyball-game-row-teams {
        grid-area: teams;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1fr);
        align-items: center;
        gap: 5px;
        min-width: 0;
    }

    .bp-volleyball-game-row-teams > span {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 6px;
        min-width: 0;
    }

    .bp-volleyball-game-row-teams > span:last-child {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .bp-volleyball-game-row-teams b {
        min-width: 0;
        overflow: hidden;
        font-size: .85rem;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bp-volleyball-game-row-teams strong,
    .bp-volleyball-game-row-teams i {
        font-size: .85rem;
        line-height: 1;
        white-space: nowrap;
    }

    .bp-volleyball-game-row-teams i {
        text-align: center;
    }

    /* league.php / team.php 상단 */
    .bp-volleyball-entity-hero {
        display: grid !important;
        grid-template-columns: 70px minmax(0, 1fr) !important;
        align-items: center;
        gap: 13px;
        width: 100%;
        min-width: 0;
        padding: 20px 14px;
        border-radius: 19px;
    }

    .bp-volleyball-entity-hero > img {
        width: 70px;
        height: 70px;
        object-fit: contain;
    }

    .bp-volleyball-entity-hero > div {
        min-width: 0;
    }

    .bp-volleyball-entity-hero h1 {
        margin: 5px 0 7px;
        min-width: 0;
        overflow: hidden;
        font-size: 1.5rem;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bp-volleyball-entity-hero span,
    .bp-volleyball-entity-hero p {
        min-width: 0;
        overflow: hidden;
        font-size: .85rem;
        line-height: 1.4;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bp-volleyball-entity-hero form,
    .bp-volleyball-entity-hero select {
        grid-column: 1 / -1;
        width: 100%;
    }

    .bp-volleyball-entity-hero select {
        min-height: 42px;
        padding: 0 12px;
        font-size: .75rem;
    }

    /* 순위표 */
    .bp-volleyball-table-wrap,
    .bp-volleyball-standing-wrap {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .bp-volleyball-standings,
    .bp-volleyball-table {
        min-width: 720px;
    }

    .bp-volleyball-standings th,
    .bp-volleyball-standings td,
    .bp-volleyball-table th,
    .bp-volleyball-table td {
        padding: 9px 8px;
        font-size: .85rem;
        white-space: nowrap;
    }

    .bp-volleyball-standing-group > h3 {
        margin: 14px 0 8px;
        font-size: .85rem;
        line-height: 1.35;
    }

    /* 팀 목록 */
    .bp-volleyball-team-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .bp-volleyball-team-grid > a,
    .bp-volleyball-team-card {
        min-width: 0;
        padding: 12px 10px;
        border-radius: 14px;
    }

    .bp-volleyball-team-grid img,
    .bp-volleyball-team-card img {
        width: 42px;
        height: 42px;
        object-fit: contain;
    }

    .bp-volleyball-team-grid strong,
    .bp-volleyball-team-card strong {
        min-width: 0;
        overflow: hidden;
        font-size: .82rem;
        line-height: 1.3;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* 최근 경기 / 예정 경기 세로 배치 */
    .bp-volleyball-two-column {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
        width: 100%;
        min-width: 0;
    }

    .bp-volleyball-two-column > section {
        width: 100%;
        min-width: 0;
    }

    /* team.php 통계 */
    .bp-volleyball-metric-grid {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 9px;
        width: 100%;
        min-width: 0;
        margin: 14px 0;
    }

    .bp-volleyball-metric-grid > div {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-width: 0;
        min-height: 82px;
        padding: 12px 6px;
        text-align: center;
    }

    .bp-volleyball-metric-grid span,
    .bp-volleyball-metric-grid strong {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        line-height: 1.2;
        text-align: center;
    }

    .bp-volleyball-metric-grid span {
        min-height: 2.4em;
        font-size: .85rem;
        word-break: keep-all;
    }

    .bp-volleyball-metric-grid strong {
        min-height: 1.2em;
        font-size: 1rem;
        white-space: nowrap;
    }

    .bp-volleyball-team-standing {
        min-width: 0;
        font-size: .85rem;
    }

    /* match.php 경기 상세 */
    .bp-volleyball-analysis {
        min-width: 0;
    }

    .bp-volleyball-match-hero {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "league status"
            "date date";
        gap: 6px 10px;
        padding: 14px 12px;
        border-radius: 15px;
    }

    .bp-volleyball-match-hero > a {
        grid-area: league;
        min-width: 0;
        overflow: hidden;
        font-size: .75rem;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bp-volleyball-match-hero > time {
        grid-area: date;
        font-size: .75rem;
    }

    .bp-volleyball-match-hero > span {
        grid-area: status;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 23px;
        padding: 3px 7px;
        font-size: .75rem;
        line-height: 1;
        white-space: nowrap;
    }

    .bp-volleyball-scoreboard {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr);
        align-items: center;
        gap: 7px;
        min-width: 0;
        padding: 18px 10px;
        border-radius: 18px;
    }

    .bp-volleyball-score-team {
        display: grid;
        justify-items: center;
        min-width: 0;
        text-align: center;
    }

    .bp-volleyball-score-team img {
        width: 58px;
        height: 58px;
        object-fit: contain;
        border-radius: 14px;
    }

    .bp-volleyball-score-team strong {
        width: 100%;
        margin-top: 8px;
        overflow: hidden;
        font-size: .85rem;
        line-height: 1.25;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bp-volleyball-score-team b {
        margin-top: 6px;
        font-size: 1rem;
        line-height: 1;
    }

    .bp-volleyball-score-team small {
        margin-top: 5px;
        font-size: .75rem;
        line-height: 1;
    }

    .bp-volleyball-versus {
        font-size: .85rem;
        text-align: center;
    }

    /* 승패 예상 그래프 */
    .bp-volleyball-probability-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "label value"
            "bar bar";
        align-items: center;
        column-gap: 10px;
        row-gap: 6px;
        min-width: 0;
        margin-top: 0;
        font-size: .85rem;
    }

    .bp-volleyball-probability-row + .bp-volleyball-probability-row {
        margin-top: 14px;
    }

    .bp-volleyball-probability-row > span {
        grid-area: label;
        justify-self: start;
    }

    .bp-volleyball-probability-row > b {
        grid-area: value;
        justify-self: end;
    }

    .bp-volleyball-probability-row > div {
        grid-area: bar;
        width: 100%;
        height: 9px;
        margin: 0;
        overflow: hidden;
        border-radius: 999px;
    }

    .bp-volleyball-probability-row > div > i {
        display: block;
        height: 100%;
        border-radius: inherit;
    }

    /* 배당 */
    .bp-volleyball-odds-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        align-items: stretch;
        gap: 10px !important;
        width: 100%;
        min-width: 0;
    }

    .bp-volleyball-odds-group {
        display: grid !important;
        grid-template-rows: 32px auto !important;
        align-content: start;
        width: 100%;
        min-width: 0;
        height: 100%;
        padding: 12px;
    }

    .bp-volleyball-odds-label {
        display: flex !important;
        align-items: center;
        min-height: 32px;
        height: 32px;
        margin: 0;
        font-size: .85rem;
        line-height: 1.2;
        white-space: nowrap;
    }

    .bp-volleyball-odds-options {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        grid-auto-rows: 50px;
        gap: 10px !important;
        width: 100%;
        min-width: 0;
        margin-top: 10px;
    }

    .bp-volleyball-odd-item {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) auto !important;
        align-items: center;
        gap: 8px;
        width: 100%;
        min-width: 0;
        min-height: 50px;
        height: 50px;
        padding: 10px 12px;
    }

    .bp-volleyball-odd-item span,
    .bp-volleyball-odd-item strong {
        display: flex;
        align-items: center;
        min-width: 0;
        margin: 0;
        font-size: .75rem;
        line-height: 1.2;
    }

    .bp-volleyball-odd-item strong {
        justify-content: flex-end;
        white-space: nowrap;
    }

    /* 경기 분석 / 경기 정보 세로 */
    .bp-volleyball-analysis-info-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 14px !important;
        width: 100%;
        min-width: 0;
    }

    .bp-volleyball-analysis-info-grid > * {
        width: 100%;
        min-width: 0;
    }

    .bp-volleyball-analysis-copy {
        margin: 0;
        font-size: .85rem;
        line-height: 1.7;
        word-break: keep-all;
    }

    .bp-volleyball-info-list > div {
        display: grid;
        grid-template-columns: 90px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        min-width: 0;
        min-height: 46px;
        padding: 10px 12px;
    }

    .bp-volleyball-info-list > div > span,
    .bp-volleyball-info-list > div > strong {
        display: flex;
        align-items: center;
        min-width: 0;
        min-height: 24px;
        margin: 0;
        line-height: 1.3;
    }
    .bp-volleyball-comparison h3{font-size:.85rem;}
    .bp-volleyball-comparison dt{font-size:.85rem;}
    .bp-volleyball-comparison dd{font-size:.85rem;}
    .bp-volleyball-info-list > div > span {
        justify-content: flex-start;
    }

    .bp-volleyball-info-list > div > strong {
        justify-content: flex-end;
        text-align: right;
    }

    .bp-volleyball-info-list span {
        font-size: .85rem;
    }

    .bp-volleyball-info-list strong {
        min-width: 0;
        overflow-wrap: anywhere;
        font-size: .85rem;
        text-align: right;
    }

    .bp-volleyball-comparison,
    .bp-volleyball-pick-points {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .bp-volleyball-h2h-summary {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .bp-volleyball-h2h-summary > div {
        min-width: 0;
        padding: 11px 5px;
        text-align: center;
    }

    .bp-volleyball-h2h-summary span,
    .bp-volleyball-h2h-summary strong {
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0;
        line-height: 1.15;
    }

    .bp-volleyball-h2h-summary span {
        min-height: 2.3em;
        font-size: .75rem;
    }

    .bp-volleyball-h2h-summary strong {
        margin-top: 5px;
        font-size: .85rem;
    }

    .bp-volleyball-analysis-games > a {
        display: grid;
        grid-template-columns: 60px minmax(0, 1fr) 35px minmax(0, 1fr);
        align-items: center;
        gap: 5px;
        min-height: 52px;
        padding: 10px 6px;
        font-size: .75rem;
        line-height: 1.25;
        text-align: center;
    }

    .bp-volleyball-analysis-games > a > * {
        min-width: 0;
        margin: 0;
        line-height: 1.25;
    }

    .bp-volleyball-analysis-games > a > :nth-child(2),
    .bp-volleyball-analysis-games > a > :nth-child(4) {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bp-volleyball-pick-points > div {
        min-width: 0;
        padding: 13px;
        border-radius: 12px;
    }

    .bp-volleyball-pick-points strong {
        font-size: .85rem;
        line-height: 1.35;
    }

    .bp-volleyball-pick-points p {
        margin: 5px 0 0;
        font-size: .75rem;
        line-height: 1.55;
        word-break: keep-all;
    }

    .bp-volleyball-empty {
        width: 100%;
        min-width: 0;
        min-height: 76px;
        padding: 20px 12px;
        font-size: .75rem;
        text-align: center;
    }

    .bp-standing-rank{font-size:.85rem;}
    .bp-standing-record{font-size:.85rem;}
    .bp-standing-rate{font-size:.85rem;}
    .bp-volleyball-probability-row span{font-size:.85rem;}
    .bp-volleyball-probability-row b{font-size:.85rem;}
}
