/*
Theme Name: WP Lineup
Theme URI: https://test.metagree.co.kr/
Author: Codex
Author URI: https://test.metagree.co.kr/
Description: WordPress theme for the lineup application (migrated from legacy lineup).
Version: 1.0.0
Text Domain: wp-lineup
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

:root {
    --Primary-color: #006241;
    --Primary-Light-color: #3f906c;
    --Primary-Dark-color: #00371a;
    --border-color: #A5B5A5;
    --Secondary-color: #3b494b;
    --Menu-color: #007B6D;
    --Textbox-Background-color: #e9e9e9;
    --wl-topbar-height: 50px;
    --wl-footer-height: 50px;
    --wl-width: 800px;
    --wl-site-width:1024px;
}

/* Base reset (keep minimal; main styles live in style.css) */
body {
    margin: 0;
    padding: 0;
}

/* Login page layout + social buttons (moved from functions.php) */
body.login {
    background: #f6f6f6;
}

#login {
    width: 100%;
    max-width: 380px;
    margin: 40px auto 0;
    padding: 0 16px;
    box-sizing: border-box;
}

body.login #loginform {
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

body.login #loginform input[type="text"],
body.login #loginform input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
}

/* Keep login button directly under password field. */
body.login #loginform p.login-username { order: 1; }
body.login #loginform p.login-password { order: 2; }
body.login #loginform p.submit {
    order: 3;
    float: none;
    margin-top: 8px;
}
body.login #loginform p.forgetmenot {
    order: 4;
    float: none;
    margin-top: 8px;
}
body.login #loginform .wp-lineup-social { order: 5; }
body.login #loginform .wp-lineup-register { order: 6; }

body.login #loginform .wp-lineup-login-actions {
    order: 3;
    width: 100%;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.login #loginform .wp-lineup-login-actions p.forgetmenot {
    order: initial;
    margin: 0;
}

body.login #loginform .wp-lineup-login-actions p.submit {
    order: initial;
    margin: 0;
    margin-left: auto;
}

.wp-lineup-social {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

.wp-lineup-social .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 6px;
    color: #222;
    font-weight: 600;
    border: 1px solid rgba(0, 0, 0, 0.08);
    text-decoration: none;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
}

.wp-lineup-social .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.wp-lineup-social .kakao {
    background: #FEE500;
    color: #000;
}

.wp-lineup-social .naver {
    background: #03C75A;
    color: #fff;
}

.wp-lineup-social .line {
    background: #06c755;
    color: #fff;
}

.wp-lineup-register {
    margin: 14px 0;
    text-align: center;
}

.wp-lineup-register a {
    display: block;
    padding: 10px 12px;
    border: 1px solid #ddd;
    font-size: 16px;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    background: #fff;
    transition: background-color 0.2s ease;
}

.wp-lineup-register a:hover {
    background: #f3f3f3;
}

body.login .privacy-policy-page-link,
body.login .privacy-policy-link {
    display: none !important;
}


    /* body 기본 여백 제거 및 가운데 정렬 */
body {
        margin: 0 auto;
        padding: 0;
        max-width: 100%;
        font-family: 'Noto Sans KR', sans-serif;
        text-align: center;
    }

    a {
        text-decoration: none;
        color: inherit;
    }

    /* page-wrapper & container layout */
    #page-wrapper.wl-shell {
        margin: 0 auto;
        width: 100%;
        min-height: 100vh;
        display: flex;
        justify-content: center;
    }

.wl-container {
        width: 100%;
        max-width: 1024px;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        padding-top: var(--wl-topbar-height);
        padding-bottom: var(--wl-footer-height);
    }

    /* header */
    #header.site-header {
        margin: 0 auto;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        max-width: 100%;
        box-sizing: border-box;
        z-index: 100;
    }

    #header.site-header .wl-topbar {
        margin: 0 auto;
    }

    .wl-topbar {
        position: relative;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        max-width: var(--wl-site-width);
        margin: 0 auto;
        box-sizing: border-box;
        height: var(--wl-topbar-height);
        z-index: 100;
        background-color: var(--Primary-color);
        color: white;
        font-weight: 500;
    }

    .wl-site-title {
        font-size: 20px;
        font-weight: 500;
    }

    /* footer 가운데 정렬 */
    .wl-footer {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        max-width: var(--wl-site-width);
        margin: 0 auto;
        height: var(--wl-footer-height);
        z-index: 100;
        color: white;
        font-size: 20px;
        font-weight: 500;
        background-color: var(--Primary-color);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #main.site-main {
        flex: 1 1 auto;
        overflow-y: auto;
        overflow-x: hidden;
        max-width: 100%;
    }

    #main.site-main * {
        box-sizing: border-box;
    }


    .wl-lang-toggle {
        line-height: 50px;
        vertical-align: middle;
        font-size: 13px;
    }

    /* 로그인 아이콘 스타일 */
    .wl-icon-button {
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        width: 36px;
        height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: relative;
        border-radius: 50%;
        overflow: hidden;
    }

    .wl-icon-button:hover {
        opacity: 0.8;
    }

    .wl-icon-button img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
        display: block;
        position: relative;
        z-index: 1;
    }

    /* 프로필 아이콘에 아바타가 있을 때 기본 아이콘 숨기기 */
    .wl-icon-button.wl-icon-button--profile img {
        position: absolute;
        top: 0;
        left: 0;
    }

    .wl-icon-button.wl-icon-button--profile::before,
    .wl-icon-button.wl-icon-button--profile::after {
        display: none;
    }

    /* 로그인 버튼: Material Icons person */
    .wl-icon-button.wl-icon-button--login .material-icons {
        font-size: 28px;
        color: #fff;
    }

    .wl-icon-button.wl-icon-button--login::before,
    .wl-icon-button.wl-icon-button--login::after {
        display: none;
    }

    /* top_menu 레이아웃 */
    .wl-topbar {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0;
    }

    .wl-topbar > div:first-child {
        flex-shrink: 0;
        display: flex;
        align-items: center;
    }

    .wl-topbar > div:nth-child(2) {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        font-size: 20px;
    }

    .wl-topbar > div:last-child {
        flex-shrink: 0;
        margin-left: auto;
    }

    /* 햄버거 버튼 스타일 */
    .wl-menu-toggle {
        background: transparent;
        border: none;
        cursor: pointer;
        font-size: 0;
        color: #fff;
        border-radius: 4px;
        display: inline-block;
        vertical-align: middle;
        margin-left: 10px;
        position: relative;
        z-index: 10;
        width: 44px;
        height: 44px;
        line-height: 1;
    }

    .wl-menu-toggle:hover {
        opacity: 0.7;
    }

    /* 햄버거 아이콘 (CSS로 직접 그리기) */
    .wl-menu-toggle::before,
    .wl-menu-toggle::after,
    .wl-menu-toggle span {
        content: '';
        display: block;
        width: 24px;
        height: 3px;
        background: #fff;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        transition: all 0.3s;
    }

    .wl-menu-toggle::before {
        top: 12px;
    }

    .wl-menu-toggle span {
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .wl-menu-toggle::after {
        bottom: 12px;
    }

    /* Font Awesome 아이콘 숨기기 */
    .wl-menu-toggle .fa,
    .wl-menu-toggle .screen-reader-text {
        display: none;
    }

    /* 슬라이드 메뉴 오버레이 */
    .wl-menu-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998;
        display: none;
    }

    .wl-menu-overlay.active {
        display: block;
    }

    /* 슬라이드 메뉴 */
    .wl-drawer {
        position: fixed;
        top: 0;
        width: 300px;
        height: 100vh;
        background: #fff;
        z-index: 999;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
        overflow-y: auto;
        visibility: hidden;
    }

    .wl-drawer.active {
        visibility: visible;
    }

    /* 메뉴 헤더 (닫기 버튼 포함) */
    .wl-drawer__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }

    .wl-drawer__title {
        font-size: 18px;
        font-weight: bold;
        margin: 0;
    }

    .wl-drawer__close {
        background: none;
        border: none;
        font-size: 0;
        cursor: pointer;
        color: #333;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    /* X 아이콘 (CSS로 직접 그리기) */
    .wl-drawer__close::before,
    .wl-drawer__close::after {
        content: '';
        position: absolute;
        width: 20px;
        height: 2px;
        background: #333;
        top: 50%;
        left: 50%;
    }

    .wl-drawer__close::before {
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .wl-drawer__close::after {
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .wl-drawer__close i,
    .wl-drawer__close .fa {
        display: none;
    }

    .wl-drawer__close:hover::before,
    .wl-drawer__close:hover::after {
        background: #000;
    }

    /* 메뉴 내용 */
    .wl-drawer__content {
        padding: 20px;
    }

    .wl-drawer__list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .wl-drawer__list li {
        margin: 0;
        padding: 0;
    }

    .wl-drawer__list a {
        display: block;
        padding: 12px 0;
        text-decoration: none;
        color: #333;
        border-bottom: 1px solid #eee;
    }

    .wl-drawer__list a:hover {
        color: #0073aa;
    }

    .wl-drawer__list .sub-menu {
        list-style: none;
        margin: 0;
        padding-left: 20px;
    }

    .wl-drawer__list .sub-menu a {
        padding: 8px 0;
        font-size: 14px;
    }

    .wl-drawer--left {
        left: max(0px, calc((100vw - var(--wl-site-width)) / 2));
        right: auto;
    }

    /* 오른쪽 프로필 메뉴 */
    .wl-drawer--right {
        left: auto;
        right: max(0px, calc((100vw - var(--wl-site-width)) / 2));
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    }

    /* index.php 스타일 */
    .wl-link-row {
        width: 95%;
        display: block;
        border-bottom: 1px solid #A5B5A5;
        margin: 0 auto;
        padding: 5px;
    }

    .wl-hero {
        height: 150px;
        margin: 0 auto;
        margin-bottom: 10px;
        background-image: URL('images/baseball-background.jpg');
        background-size: 100%;
        background-repeat: no-repeat;
        text-shadow: 1px 1px 1px black;
        display: flex;
        flex-direction: column;
    }

    /* footer.php 스타일 */
    .wl-footer__item {
        flex: 1 1 0;
        height: 100%;
        text-align: center;
        line-height: 50px;
        align-items: center;
        justify-content: center;
        color: silver;
    }

    .wl-footer__item.wl-footer__item--active {
        color: white;
    }

    /* 모바일 반응형 스타일 */
@media screen and (max-width: 1023px) {
        /* 전체 레이아웃 */
        body {
            font-size: 14px;
            -webkit-text-size-adjust: 100%;
            -webkit-tap-highlight-color: transparent;
}

    }

/* team / place shared styles (ported from legacy lineup) */
table.wl-table {
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-size: 15px;
  color: #1f2933;
  background-color: #ffffff;
  max-width: 800px;
  width: 100%;
  vertical-align: middle;
  border-collapse: separate;
  border-spacing: 0;
  text-align: center;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

table.wl-table tr {
  height: 44px;
  text-align: left;
}

table.wl-table th {
  width: 30%;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #e2e8f0;
  background: #f1f5f9;
  color: #334155;
  font-weight: 600;
  padding: 8px 12px;
}

table.wl-table td {
  padding: 8px 12px;
  vertical-align: middle;
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

table.wl-table tr:last-child td,
table.wl-table tr:last-child th {
  border-bottom: none;
}

table.wl-table input[type="text"],
table.wl-table input[type="email"],
table.wl-table input[type="number"],
table.wl-table input.wl-input {
  width: 100%;
  max-width: 100%;
  height: 36px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

table.wl-table input[type="text"]:focus:not([readonly]),
table.wl-table input[type="email"]:focus:not([readonly]),
table.wl-table input[type="number"]:focus:not([readonly]),
table.wl-table input.wl-input:focus:not([readonly]) {
  border-color: #007B6D;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 123, 109, 0.16);
  outline: none;
}

table.wl-table input[type="text"][readonly],
table.wl-table input[type="email"][readonly],
table.wl-table input[type="number"][readonly],
table.wl-table input.wl-input[readonly] {
  cursor: default;
  outline: none;
}

/* lineup screen styles (merged from lineup_style.css) */
.wrapper {
  background: #fff;
  border-radius: 3px;
  margin: 0 auto;
}

.starterContainer,
.benchContainer {
  min-width: 300px;
  width: 95%;
  background: #ffffff;
  margin: 0 auto 12px auto;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.wl-table-wrap {
  margin: 12px auto;
  max-width: 800px;
  width: 95%;
}

#starterContainer {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

#bench_table {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.bench-title {
  background-color: var(--Menu-color);
  height: 40px;
  color: white;
  line-height: 40px;
  font-weight: bold;
}

.lineup_title {
  background: linear-gradient(135deg, #0f766e, #0b4f4a);
  font-weight: 600;
  color: #ffffff;
  height: 44px;
  line-height: 44px;
  display: flex;
  border-bottom: 1px solid #0f766e;
}

.lineup_submenu {
  border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.benchContainer .lineup_submenu {
  border-top: 1px solid rgba(255, 255, 255, 0.4);
}

.lineup_submenu:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.4);
}

.lineup_title,
.bench-title {
  font-size: 1rem;
}

.starterContainer .order {
  min-width: 35px;
  max-width: 70px;
  width: 20%;
}

.starterContainer .position {
  min-width: 50px;
  width: 20%;
}

.starterContainer .pitcher-position {
  min-width: 85px;
  max-width: 170px;
  width: 40%;
}

.starterContainer .player {
  min-width: 80px;
  width: 100%;
}

.starterContainer .number {
  min-width: 50px;
  width: 20%;
}

.starterContainer .elite {
  min-width: 50px;
  max-width: 70px;
  width: 20%;
}

.starterContainer .order,
.starterContainer .position,
.starterContainer .pitcher-position,
.starterContainer .player,
.starterContainer .number,
.starterContainer .elite,
.benchContainer .order,
.benchContainer .player,
.benchContainer .number,
.benchContainer .position,
.benchContainer .inning,
.benchContainer .elite {
  display: flex;
  align-items: center;
  justify-content: center;
}

.benchContainer .order {
  min-width: 35px;
  max-width: 70px;
  width: 20%;
}

.benchContainer .position {
  min-width: 50px;
  width: 20%;
}

.benchContainer .player {
  min-width: 80px;
  width: 100%;
}

.benchContainer .number {
  min-width: 50px;
  width: 20%;
}

.benchContainer .inning {
  min-width: 65px;
  max-width: 70px;
  width: 20%;
}

.benchContainer .elite {
  min-width: 50px;
  max-width: 70px;
  width: 20%;
}

.pitcher {
  width: 30%;
  vertical-align: middle;
  text-align: center;
  background-color: var(--Menu-color);
  border-radius: 15px;
  height: 30px;
  color: white;
  line-height: 30px;
}

.item {
  color: #1f2933;
  display: flex;
  height: 44px;
  line-height: 44px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  background: #ffffff;
}

.wl-inline-select {
  display: block;
  width: 95%;
  height: 30px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 10px;
  outline: none;
  background-color: rgb(233, 233, 233);
  text-align: center;
  text-align-last: center;
  cursor: pointer;
}

.item_hover:hover {
  background-color: #ecfdf3;
  color: #0f766e;
}

.wrapper .item:last-child {
  margin-bottom: 0px;
}

.wrapper .item i {
  font-size: 18px;
  cursor: pointer;
}

/* swap-wrap: swap과 remove_circle 토글 */
.swap-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  min-width: 32px;
}

.swap-wrap .remove_circle {
  display: none;
}

.swap-wrap.show-remove .swap {
  display: none;
}

.swap-wrap.show-remove .remove_circle {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 스왑 핸들: 마우스·터치 드래그로 순서 변경 */
.starterContainer .swap,
.benchContainer .swap {
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.starterContainer .swap:active,
.benchContainer .swap:active {
  cursor: grabbing;
}

.highlight {
  background-color: #007B6D;
  opacity: 0.6;
}

.ground {
  position: relative;
  max-width: 500px;
  width: 95%;
  min-width: 300px;
  margin: 10px auto;
}

div.pos {
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  color: yellow;
}

.player_name {
  text-overflow: ellipsis;
  overflow: hidden;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.players div {
  max-height: 40px;
}

.positionNum {
  background-color: red;
  border-radius: 50%;
  display: inline-block;
  line-height: 17px;
  text-align: center;
  width: 17px;
  height: 17px;
  opacity: 0.7;
  margin-left: 5px;
}

.players {
  display: flex;
  position: absolute;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 90px;
  min-width: 70px;
  min-height: 60px;
  border-radius: 15px;
  padding: 2px;
  background-color: rgba(0, 100, 0, 0.5);
  font-size: 13px;
  opacity: 0.9;
  color: white;
}

.players:hover {
  background-color: #1b5e20;
}

.player-1 {
  top: 55%;
  left: 50%;
  transform: translateX(-50%);
}

.player-2 {
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
}

.player-3 {
  top: 57%;
  right: 5%;
}

.player-4 {
  top: 38%;
  right: 20%;
}

.player-5 {
  top: 57%;
  left: 5%;
}

.player-6 {
  top: 38%;
  left: 20%;
}

.player-7 {
  top: 20%;
  left: 5%;
}

.player-8 {
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
}

.player-9 {
  top: 20%;
  right: 5%;
}

.player-10 {
  bottom: 3%;
}

.dugout-home {
  bottom: 19%;
  background-color: #00600f;
  opacity: 0.8;
}

div.dugout {
  font-weight: bold;
  color: blue;
}

.circle_elite_view,
.circle_elite,
.circle_batter,
.circle_switch_hitter,
.circle_switch_pitcher,
.circle_pitcher {
  border-radius: 50%;
  display: inline-block;
  line-height: 20px;
  text-align: center;
  width: 20px;
  height: 20px;
  font-size: 12px;
  color: white;
  margin-left: 2px;
}

.circle_switch_hitter {
  background-color: orangered;
}

.circle_switch_pitcher {
  background-color: orange;
}

.circle_batter {
  background-color: orangered;
}

.circle_pitcher {
  background-color: orange;
}

.circle_elite {
  background-color: #bf360c;
}

.circle_elite_view {
  background-color: var(--Primary-Light-color);
}

.option {
  float: right;
  font-size: 10px;
}

.datetimepicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  width: 100%;
  max-width: 220px;
  height: 30px;
  min-width: 0;
  white-space: nowrap;
}

.datetimepicker_text {
  flex: 1 1 auto;
  min-width: 0;
  height: 30px;
  background-color: #ddd;
}

.datetimepicker span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.text_position_pitcher {
  width: 100%;
  margin-left: 10px;
  background-color: var(--Menu-color);
  border-radius: 15px;
  text-align: center;
  color: white;
}

.item .text_position,
.item .text_player,
.item .text_number {
  width: 95%;
  border-radius: 15px;
  text-align: center;
  font-size: 16px;
  border: none;
  outline: none;
}

.item .text_order {
  font-size: 16px;
  width: 25px;
  background-color: transparent;
  text-align: center;
  border: 0;
  outline: none;
  box-shadow: none;
}

#screenshot input[type="text"],
#screenshot input[type="number"],
#screenshot input[type="checkbox"] {
  border: none ;
  box-shadow: none ;
  height: 30px;
}

.text_number:focus,
.text_player:focus {
  color: green;
  background-color: #ddd;
}

.bg_color_transparent {
  background-color: transparent;
}

.bg_color_blank {
  background-color: #e9e9e9;
}

.bg_color_silver {
  background-color: silver;
}

.inning_selector,
select.director,
select[name="place"] {
  font-size: 14px;
  line-height: 1.2;
  height: 32px;
  padding: 4px 14px 4px 12px;
  border-radius: 999px;
  border: none;
  background-color: #f1f5f9;
  color: #0f172a;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #0f766e 50%),
    linear-gradient(135deg, #0f766e 50%, transparent 50%);
  background-position:
    calc(100% - 12px) 50%,
    calc(100% - 7px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  text-align-last: center;
  text-align: center;
  transition: box-shadow 0.15s ease, background-color 0.15s ease;
}

.inning_selector:focus,
select.director:focus,
select[name="place"]:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
  outline: none;
}

.inning_selector:disabled,
select.director:disabled,
select[name="place"]:disabled {
  background-color: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
  opacity: 1;
}

#dugout > label {
  padding: 0 3px;
}

#menu {
  width: 95%;
  max-width: 800px;
  margin: 0 auto;
  text-align: right;
}

#menu .material-icons,
#menu .lineup_submenu {
  cursor: pointer;
}

/* material-icons: 진한 그린 */
.material-icons {
  color: #0a5c54;
}

.wl-button-group button {
  background-color: #007B6D;
  color: #ffffff;
  padding: 8px 14px;
  height: 36px;
  border-radius: 8px;
  border: none;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 123, 109, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.wl-button {
  min-width: 72px;
  height: 36px;
  padding: 0 8px;
  border-radius: 8px;
  border: none;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  margin: 0 10px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  background-color: #007B6D;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 123, 109, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.wl-button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 123, 109, 0.2);
  background-color: #006a5f;
}

.wl-button--confirm {
  height: 36px;
  padding: 0 14px;
  margin-left: 6px;
  border-radius: 8px;
  box-sizing: border-box;
  border: none;
  background-color: #007B6D;
  color: #ffffff;
  font-size: 14px;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  font-weight: 500;
  box-shadow: 0 4px 10px rgba(0, 123, 109, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.wl-button--confirm:active,
.wl-button-group button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 123, 109, 0.2);
  background-color: #006a5f;
}

.wl-lineup-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.wl-place {
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  margin-bottom: 5px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.wl-place__name {
  font-size: 14px;
  line-height: 20px;
}

.wl-place__options {
  display: flex;
  flex-direction: row;
  gap: 4px;
  align-items: center;
}

.wl-place__option {
  display: inline-block;
  padding: 0 5px;
  font-size: 10px;
  height: 15px;
  line-height: 15px;
  border-radius: 25px 25px;
  color: white;
  background-color: #007B6D;
  opacity: 0.5;
  margin-right: 2px;
}

.wl-place__option--bat {
  background-color: #0a5c54;
  opacity: 0.9;
}

.wl-place__option--spike {
  background-color: #0a5c54;
  opacity: 0.9;
}

.wl-input {
  min-width: 50%;
  height: 36px;
  text-align: left;
  outline: none;
}

.wl-char-count {
  font-size: 0.85em;
  color: #64748b;
  margin-left: 6px;
}
.wl-char-count[aria-invalid="true"] {
  color: #c53030;
}

.wl-manager {
  width: 100%;
  box-sizing: border-box;
  margin-left: 0;
  margin-top: 8px;
}

.wl-manager__title {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: 28px;
  vertical-align: middle;
  background-color: #007B6D;
  border: 1px solid #007B6D;
  font-size: 13px;
  border-radius: 5px 5px 0 0;
  opacity: 0.8;
  color: white;
  text-align: center;
  padding: 5px;
}

.wl-manager__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 8px 8px;
  background: #ffffff;
}

.wl-manager__note {
  width: 100%;
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
  text-align: left;
}

.wl-manager__controls .wl-input {
  flex: 1 1 220px;
  min-width: 160px;
}

.wl-manager .wl-card__body {
  width: 100%;
  box-sizing: border-box;
  padding: 10px;
  display: grid;
  gap: 8px;
  background: #ffffff;
}

.wl-manager .wl-card__body > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wl-manager .wl-card__body > div input.wl-input,
.wl-manager .wl-card__body > div input[type="text"] {
  flex: 1 1 240px;
  min-width: 180px;
}

.wl-manager .wl-card__body > div .wl-button--confirm {
  flex: 0 0 auto;
}

.wl-homepage {
  display: grid;
  gap: 8px;
}

.wl-homepage__help {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
  text-align: left;
}

.wl-homepage__help ul {
  margin: 4px 0 0 0;
  padding-left: 0;
  list-style-position: inside;
}

.wl-homepage__help li::marker {
  font-size: 0.85em;
}

.wl-homepage__help li {
  padding-left: 2px;
}

.wl-homepage__input {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.wl-homepage__input .wl-input {
  flex: 1 1 240px;
  min-width: 180px;
}

.wl-homepage__list {
  display: grid;
  gap: 6px;
}

.wl-homepage__item {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}

.wl-homepage__link {
  color: #0f766e;
  text-decoration: none;
  display: block;
  overflow-wrap: anywhere;
  flex: 1 1 auto;
  min-width: 0;
}

.wl-homepage__del {
  flex: 0 0 auto;
  height: 22px;
  padding: 0 8px;
  margin-left: 4px;
  font-size: 11px;
  border-radius: 6px;
  box-shadow: none;
}

.wl-check {
  vertical-align: middle;
  margin-bottom: 6px;
}

.wl-main {
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
  font-size: 16px;
}

.wl-card {
  margin: 0 auto;
  padding: 5px;
  padding-top: 10px;
  max-width: var(--wl-width);
}

.wl-card + .wl-card {
  margin-top: 20px;
}

.wl-card__title {
  width: 100%;
  display: block;
  height: 42px;
  line-height: 42px;
  vertical-align: middle;
  background: linear-gradient(135deg, #0f766e, #0b4f4a);
  border: 1px solid #0f766e;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-radius: 12px 12px 0 0;
  padding: 0 14px;
}

.wl-card__title--with-link {
  position: relative;
  text-align: center;
}

.wl-card__title--with-link .wl-card__title-text {
  margin: 0;
  font-size: 15px;
}

.wl-card__title-link {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.wl-card__title-link .material-icons {
  font-size: 24px;
  color: #fff;
}

.wl-card__title-link:hover,
.wl-card__title-link:focus {
  opacity: 0.85;
  color: #fff;
}

.wl-card__title-link:hover .material-icons,
.wl-card__title-link:focus .material-icons {
  color: #fff;
}

.wl-card__body {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 12px 12px;
  margin-bottom: 20px;
  padding:  12px 5px;
  margin-left: 0;
  margin-right: 0;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.wl-cursor {
  cursor: pointer;
}

.wl-table-list__head td {
  background-color: var(--Primary-Light-color) !important;
  color: #ffffff !important;
  font-weight: 600;
  text-align: left;
}

table.wl-table tr.wl-table-list__head td {
  background-color: var(--Primary-Light-color) !important;
  color: #ffffff !important;
}

.wl-team-list__no {
  width: 56px;
  text-align: center;
  color: #64748b;
  font-weight: 600;
}

.wl-team-list__director {
  color: #64748b;
  font-size: 12px;
  margin-left: 6px;
}

.wl-team-list td {
  text-align: center;
}

.wl-team-list td a {
  display: block;
  width: 100%;
  text-align: center;
}

.wl-team-list td span {
  display: inline-block;
  width: 100%;
  text-align: center;
}

.wl-team-list .wl-table-list__head td {
  text-align: center;
  background: var(--Primary-Light-color);
  color: #ffffff;
}

.wl-team-search {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 0 12px 0;
  width: 95%;
  max-width: var(--wl-width);
  box-sizing: border-box;
  margin: 0 auto;
}

.wl-team-search__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 38px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 14px;
  font-family: 'Roboto', 'Noto Sans KR', sans-serif;
  color: #0f172a;
  box-sizing: border-box;
}

.wl-team-search__input:focus {
  border-color: #007B6D;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 123, 109, 0.16);
  outline: none;
}

.wl-team-search__button {
  flex: 0 0 auto;
  height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  border: none;
  background-color: #007B6D;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 123, 109, 0.25);
}

.wl-team-search__button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(0, 123, 109, 0.2);
  background-color: #006a5f;
}

.wl-pagination {
  color: #0f766e;
  font-size: 13px;
  padding: 8px 0 0 0;
  text-align: center;
}

.wl-pagination ul {
  padding-inline-start: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
}

.wl-pagination ul li {
  display: inline-flex;
  list-style-type: none;
  margin: 0;
  line-height: 1;
}

@media screen and (max-width: 1023px) {
  .wl-pagination {
    width: 100%;
  }

  .wl-pagination ul {
    justify-content: center;
    gap: 6px;
    margin: 0 auto;
  }

  .wl-pagination ul li {
    flex: 0 0 auto;
  }

  .wl-pagination a,
  .wl-pagination__current {
    padding: 3px 0;
  }
}

.wl-pagination a {
  color: #0f766e;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  min-height: 0;
  min-width: 0;
  height: 24px;
  line-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wl-pagination__current {
  font-weight: 700;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0f766e;
  border-radius: 999px;
  padding: 0 8px;
  height: 24px;
  min-height: 0;
  line-height: 24px;
}

.wl-my-team__list td {
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
}

.wl-my-team__list td span {
  display: inline-block;
  width: 100%;
  text-align: center;
}

.wl-my-team__list td a {
  display: flex;
  width: 100%;
  height: 100%;
  text-align: center;
  align-items: center;
  justify-content: center;
}

/* add_circle 아이콘 공통: 색상 #0f766e, 사이즈 36px */
.material-icons.wl-icon-add {
  font-size: 36px !important;
  width: 36px;
  height: 36px;
  color: #0a5c54;
  cursor: pointer;
}

.wl-my-team__add {
  margin-top: 10px;
}

.wl-player-select {
  display: none;
}

.is-selecting .wl-player-select {
  display: table-cell;
}

.wl-team-menu {
  position: fixed;
  top: var(--wl-topbar-height, 50px);
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  max-width: var(--wl-width);
  margin: 0 auto;
  padding: 10px 6px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.wl-main:has(.wl-team-menu) {
  padding-top: 52px;
}

.wl-team-menu__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.wl-team-menu__item:first-child {
  margin-left: auto;
}

.wl-team-menu__item:last-child {
  margin-right: auto;
}

.wl-team-menu__item.is-active {
  background: #0f766e;
  color: #ffffff;
}

.wl-player-toolbar {
  width: 100%;
  min-width: 300px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 6px 0 10px 0;
}

.wl-player-toolbar__count {
  margin-right: auto;
  font-weight: 600;
  color: #0f172a;
}

.wl-player-toolbar--actions {
  justify-content: flex-end;
}

.wl-player-toolbar .wl-button,
.wl-player-toolbar .wl-button--confirm {
  height: 34px;
  padding: 0 12px;
  margin: 0;
}

.wl-player-toolbar button,
.wl-player-toolbar input[type="button"] {
  height: 34px;
  line-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.wl-player-toolbar .wl-button {
  background-color: #1f7a3f;
  box-shadow: 0 4px 10px rgba(31, 122, 63, 0.25);
}

.wl-player-toolbar .wl-button:active {
  background-color: #176130;
  box-shadow: 0 2px 6px rgba(31, 122, 63, 0.2);
}

.wl-player-toolbar .wl-button--confirm {
  background-color: #1f7a3f;
  box-shadow: 0 4px 10px rgba(31, 122, 63, 0.25);
}

.wl-player-toolbar .wl-button--confirm:active {
  background-color: #176130;
  box-shadow: 0 2px 6px rgba(31, 122, 63, 0.2);
}

.wl-player-toolbar .wl-button--danger {
  background-color: #41a9d9;
  box-shadow: 0 4px 10px rgba(217, 72, 65, 0.25);
}

.wl-player-toolbar .wl-button--danger:active {
  background-color: #b63b35;
  box-shadow: 0 2px 6px rgba(217, 72, 65, 0.2);
}

.wl-player-toolbar .wl-button--neutral {
  background-color: #64748b;
  box-shadow: 0 4px 10px rgba(100, 116, 139, 0.25);
}

.wl-player-toolbar .wl-button--neutral:active {
  background-color: #475569;
  box-shadow: 0 2px 6px rgba(100, 116, 139, 0.2);
}

.wl-player-list .wl-card__body {
  padding-top: 10px;
}

.wl-player-list__table td {
  text-align: center;
}

.wl-player-list__table td:first-child {
  text-align: center;
}

@media screen and (max-width: 1023px) {
        #page-wrapper.wl-shell {
            max-width: 100%;
            padding: 0;
        }

        #header.site-header {
            max-width: 100%;
        }

        /* 헤더 및 메뉴 */
        .wl-topbar {
            padding: 10px 15px;
        }

        .wl-site-title {
            font-size: 20px !important;
        }

        .wl-icon-button {
            width: 32px;
            height: 32px;
        }

        /* 슬라이드 메뉴 모바일 최적화 */
        .wl-drawer,
        .wl-drawer--right {
            width: 280px;
            max-width: 85vw;
        }

        .wl-drawer__header {
            padding: 12px 15px;
        }

        .wl-drawer__title {
            font-size: 16px;
        }

        .wl-drawer__close {
            width: 28px;
            height: 28px;
        }

        .wl-drawer__content {
            padding: 15px;
        }

        .wl-drawer__list a {
            padding: 15px 0;
            font-size: 16px;
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        }

        /* 버튼 터치 영역 확대 */
        .wl-menu-toggle {
            width: 44px;
            height: 44px;
            min-width: 44px;
            min-height: 44px;
        }

        button, a, .wl-icon-button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        /* 로그인 버튼 모바일 최적화 */
        .wl-auth-group {
            min-height: 50px;
            padding: 12px 15px;
        }

        /* 텍스트 크기 조정 */
        .wl-lang-toggle {
            font-size: 12px;
        }

        /* 배경 이미지 모바일 최적화 */
        .wl-hero {
            height: 120px;
            background-size: cover;
            background-position: center;
        }

        /* 터치 스크롤 최적화 */
        .wl-drawer,
        .wl-drawer--right {
            -webkit-overflow-scrolling: touch;
            overscroll-behavior: contain;
        }

        /* 안드로이드 웹뷰 최적화 */
        * {
            -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
        }

        input, textarea, select {
            font-size: 16px; /* iOS 줌 방지 */
        }
    }

    /* 작은 모바일 (480px 이하) */
    @media screen and (max-width: 600px) {
        .wl-topbar {
            padding: 8px 10px;
        }

        .wl-site-title {
            font-size: 20px !important;
        }

        .wl-drawer,
        .wl-drawer--right {
            width: 100%;
            max-width: 100%;
        }

        .wl-hero {
            height: 100px;
        }
    }

    /* 가로 모드 최적화 */
    @media screen and (max-width: 1023px) and (orientation: landscape) {
        .wl-drawer,
        .wl-drawer--right {
            width: 320px;
        }
    }

    /* 드래그 핸들만 선택 방지 */
    .swap {
        -webkit-user-select: none;
        user-select: none;
    }

.wl-badge-new {
    display: inline-block;
    padding: 1px 5px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    background-color: #e53e3e;
    border-radius: 3px;
    vertical-align: middle;
    margin-right: 4px;
}

/* KBoard: Powered by 숨김 */
.kboard-default-poweredby,
.kboard-thumbnail-poweredby,
.kboard-avatar-poweredby,
.kboard-contact-form-poweredby,
.kboard-media-poweredby {
    display: none !important;
}

.wl-card__body .kboard-list,
.wl-card__body .kboard-default-list,
.wl-card__body .kboard-thumbnail-list,
.wl-card__body .kboard-avatar-list {
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

/* KBoard latest: keep title compact on narrow screens */
.wl-card__body #kboard-default-latest table {
    table-layout: fixed;
    width: 100%;
}

.wl-card__body #kboard-default-latest .kboard-latest-title {
    min-width: 0;
}

.wl-card__body #kboard-default-latest .kboard-latest-title a,
.wl-card__body #kboard-default-latest .kboard-latest-title .kboard-default-cut-strings {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media screen and (max-width: 600px) {
    .wl-card__body #kboard-default-latest .kboard-latest-date {
        width: 64px;
        font-size: 12px;
    }

    .wl-card__body #kboard-default-latest .kboard-latest-title {
        font-size: 13px;
    }
}
