.vn-latest-posts { margin: 0 auto 12px; max-width: 420px; }
.vn-wrap * { box-sizing: border-box; margin: 0; padding: 0; }
.vn-wrap {
font-family: 'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;
display: flex;
justify-content: center;
align-items: flex-start;
padding: 30px 20px;
width: 100%;
}
.vn-container {
width: 100%;
max-width: 420px;
display: flex;
flex-direction: column;
gap: 14px;
margin: 0 auto;
}
.vn-category-wrap {
background: #34857f;
border-radius: 14px;
padding: 6px 8px;
}
.vn-category-select {
width: 100%;
background: #34857f;
border: 2px solid #34857f;
border-radius: 10px;
color: white;
font-size: 18px;
font-weight: 700;
padding: 12px 16px;
appearance: none;
-webkit-appearance: none;
cursor: pointer;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 14px center;
background-size: 22px;
text-align: left;
text-align-last: left;
letter-spacing: 0.5px;
}
.vn-category-select.vn-category-placeholder {
text-align: center;
text-align-last: center;
}
.vn-category-select option,
.vn-category-select optgroup {
background: #34857f;
color: white;
text-align: left;
}
.vn-tts-row {
display: flex;
align-items: center;
justify-content: flex-start;
flex-wrap: wrap;
gap: 8px 10px;
background: rgba(0,0,0,0.12);
border-radius: 12px;
padding: 8px 10px;
width: 100%;
}
.vn-tts-label {
font-size: 13px;
font-weight: 700;
color: rgba(255,255,255,0.9);
white-space: nowrap;
}
.vn-tts-voices {
display: flex;
align-items: center;
gap: 6px;
flex: 1;
flex-wrap: wrap;
}
.vn-tts-voice-btn {
min-width: 36px;
height: 34px;
padding: 0 8px;
border-radius: 8px;
border: 2px solid rgba(255,255,255,0.35);
background: rgba(255,255,255,0.12);
color: #fff;
font-size: 14px;
font-weight: 800;
cursor: pointer;
line-height: 1;
}
.vn-tts-voice-btn:hover { background: rgba(255,255,255,0.22); }
.vn-tts-voice-btn.vn-tts-voice-active {
background: rgba(255,255,255,0.35);
border-color: #fff;
}
.vn-tts-mute-btn {
width: 40px;
height: 34px;
border-radius: 8px;
border: 2px solid rgba(255,255,255,0.35);
background: rgba(255,255,255,0.12);
color: #fff;
font-size: 18px;
cursor: pointer;
line-height: 1;
flex-shrink: 0;
}
.vn-tts-mute-btn:hover { background: rgba(255,255,255,0.22); }
.vn-tts-mute-btn.vn-tts-muted { opacity: 0.55; }
.vn-time-select option     { background: #106F68; color: white; }
.vn-word-card {
background: white;
border-radius: 20px;
padding: 40px 30px 36px;
text-align: center;
box-shadow: 0 4px 20px rgba(0,0,0,0.15);
min-height: 200px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
}
.vn-viet-word     { font-size: 53px; font-weight: 900; color: #111; letter-spacing: -1px; line-height: 1.1; }
.vn-pronunciation { font-size: 23px; color: #aaa; font-weight: 400; }
.vn-korean-meaning { font-size: 28px; font-weight: 700; color: #111; margin-top: 4px; }
.vn-example-box {
background: #106F68;
border-radius: 18px;
padding: 20px 22px;
text-align: center;
}
.vn-example-viet   { color: white; font-size: 20px; font-weight: 700; line-height: 1.5; margin-bottom: 6px; }
.vn-example-korean { color: rgba(255,255,255,0.85); font-size: 17px; font-weight: 400; line-height: 1.5; }
.vn-controls {
display: flex;
align-items: center;
justify-content: center;
gap: 14px;
padding: 8px 0 4px;
}
.vn-time-select {
background: rgba(255,255,255,0.25);
border: 2px solid rgba(255,255,255,0.25);
border-radius: 8px;
color: white;
font-size: 14px;
font-weight: 700;
padding: 7px 28px 7px 12px;
appearance: none;
-webkit-appearance: none;
cursor: pointer;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
background-repeat: no-repeat;
background-position: right 6px center;
background-size: 16px;
min-width: 80px;
}
.vn-btn-group {
display: flex;
align-items: center;
gap: 4px;
background: rgba(255,255,255,0.15);
border-radius: 8px;
padding: 0 8px;
height: 34px;
}
.vn-btn {
background: none;
border: none;
cursor: pointer;
color: white;
display: flex;
align-items: center;
justify-content: center;
width: 24px;
height: 100%;
border-radius: 4px;
transition: background 0.15s;
font-size: 13px;
}
.vn-btn:hover  { background: rgba(255,255,255,0.2); }
.vn-btn.active { background: rgba(255,255,255,0.3); }
.vn-btn-close {
background: rgba(255,255,255,0.25);
border: none;
border-radius: 8px;
height: 34px;
padding: 0 12px;
color: white;
font-size: 13px;
font-weight: 600;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
gap: 4px;
margin-left: 6px;
transition: background 0.15s;
white-space: nowrap;
}
.vn-btn-close:hover { background: rgba(255,255,255,0.4); }
.vn-progress-wrap {
background: #34857f;
border-radius: 99px;
height: 3.75px;
overflow: hidden;
}
.vn-progress-bar {
height: 100%;
background: white;
border-radius: 99px;
transition: width 0.5s linear;
width: 100%;
}
.vn-hidden { display: none !important; }
@keyframes vnFadeIn {
from { opacity: 0; transform: translateY(8px); }
to   { opacity: 1; transform: translateY(0); }
}
.vn-fade-in { animation: vnFadeIn 0.35s ease; }
.vn-widget-outer-hidden { display: none !important; }
.vn-mode-btn {
height: 34px;
padding: 0 14px;
border: 2px solid rgba(255,255,255,0.4);
border-radius: 8px;
background: rgba(255,255,255,0.15);
color: #fff;
font-size: 14px;
font-weight: 700;
cursor: pointer;
transition: background 0.2s, border-color 0.2s;
white-space: nowrap;
}
.vn-mode-btn:hover {
background: rgba(255,255,255,0.25);
border-color: rgba(255,255,255,0.6);
}
.vn-mode-btn[aria-pressed="true"] {
background: rgba(255,255,255,0.35);
border-color: rgba(255,255,255,0.8);
}
.vn-example-box { display: flex; flex-direction: column; }
.vn-wrap.vn-mode-hanbe .vn-word-card .vn-korean-meaning { order: 1; }
.vn-wrap.vn-mode-hanbe .vn-word-card .vn-viet-word { order: 2; }
.vn-wrap.vn-mode-hanbe .vn-word-card .vn-pronunciation { order: 3; }
.vn-wrap.vn-mode-hanbe .vn-example-box .vn-example-korean { order: 1; }
.vn-wrap.vn-mode-hanbe .vn-example-box .vn-example-viet { order: 2; } @media (max-width: 768px) {
#vn-widget-outer { margin: 0; padding: 0; }
.vn-wrap {
padding-top: 12px;
padding-bottom: 20px;
padding-left: 16px;
padding-right: 16px;
width: 100%;
}
.vn-container {
margin-left: 0;
margin-right: 0;
gap: 10px;
width: 100%;
}
.vn-category-wrap {
padding: 4px 6px;
border-radius: 12px;
}
.vn-category-select {
padding: 8px 12px;
padding-right: 36px;
font-size: 16px;
}
}
@media (max-width: 480px) {
#vn-widget-outer { margin: 0; padding: 0; }
.vn-wrap {
padding-top: 8px;
padding-bottom: 16px;
padding-left: 12px;
padding-right: 12px;
width: 100%;
}
.vn-container { gap: 8px; width: 100%; }
.vn-category-wrap { padding: 3px 5px; }
.vn-category-select {
padding: 6px 10px;
padding-right: 32px;
font-size: 15px;
}
} .vn-fullscreen-overlay { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: flex-start; justify-content: center; padding: 0; margin: 0; box-sizing: border-box; direction: ltr; }
.vn-fullscreen-overlay[hidden] { display: none !important; }
.vn-fullscreen-close { display: none !important; }
.vn-fullscreen-inner { width: 100%; max-width: 480px; max-height: 100%; overflow: auto; padding: 0; margin: 0 auto; box-sizing: border-box; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; direction: ltr; }
.vn-fullscreen-overlay .vn-wrap { width: 100%; margin: 0; padding-top: 30px; padding-bottom: 24px; padding-left: 20px; padding-right: 20px; min-height: auto; justify-content: center; align-items: center; box-sizing: border-box; }
.vn-fullscreen-overlay .vn-container { margin-left: auto; margin-right: auto; max-width: 420px; }
@media (max-width: 768px) {
.vn-fullscreen-overlay .vn-wrap { padding-left: 16px; padding-right: 16px; padding-bottom: 20px; }
}
@media (max-width: 480px) {
.vn-fullscreen-overlay .vn-wrap { padding-left: 12px; padding-right: 12px; padding-bottom: 16px; }
}