*{box-sizing:border-box}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background:#f8f9fa;margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}#root{min-height:100vh}a{color:#1a73e8;text-decoration:none}a:hover{text-decoration:underline}button{font-family:inherit}img{max-width:100%}.header{color:#fff;z-index:1000;background:linear-gradient(135deg,#1a1a2e 0%,#16213e 100%);padding:1.5rem 0;position:sticky;top:0;box-shadow:0 2px 10px #0000004d}.header-content{max-width:1200px;margin:0 auto;padding:0 2rem}.header-title{color:#fff;text-decoration:none;display:block}.header-title h1{margin:0;font-size:1.75rem;font-weight:700}.header-subtitle{opacity:.8;margin:.25rem 0 0;font-size:.9rem}.header-title:hover h1{opacity:.9}@media (width<=768px){.header{padding:1rem 0}.header-content{padding:0 1rem}.header-title h1{font-size:1.5rem}}.news-card{cursor:pointer;background:#fff;border-radius:12px;flex-direction:column;transition:transform .2s,box-shadow .2s;display:flex;overflow:hidden;box-shadow:0 2px 8px #0000001a}.news-card:hover{transform:translateY(-4px);box-shadow:0 8px 24px #00000026}.news-card-image{background:#f0f0f0;width:100%;height:180px;overflow:hidden}.news-card-image img{object-fit:cover;width:100%;height:100%}.news-card-placeholder{color:#bbb;background:linear-gradient(135deg,#f5f7fa 0%,#e4e8ec 100%);justify-content:center;align-items:center;width:100%;height:100%;display:flex}.news-card-content{flex-direction:column;flex:1;padding:16px;display:flex}.news-card-meta{flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:8px;display:flex}.news-card-source{color:#666;background:#f5f5f5;border-radius:4px;width:fit-content;padding:4px 8px;font-size:12px;display:inline-block}.news-card-country{color:#fff;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%);border-radius:4px;align-items:center;gap:4px;padding:4px 8px;font-size:12px;display:inline-flex}.news-card-title{-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0 0 8px;font-size:16px;font-weight:600;line-height:1.4;display:-webkit-box;overflow:hidden}.news-card-description{color:#666;-webkit-line-clamp:3;-webkit-box-orient:vertical;flex:1;margin:0 0 12px;font-size:14px;line-height:1.5;display:-webkit-box;overflow:hidden}.news-card-footer{color:#999;justify-content:space-between;align-items:center;font-size:12px;display:flex}.news-card-author{text-overflow:ellipsis;white-space:nowrap;max-width:120px;overflow:hidden}.search-bar{gap:12px;margin-bottom:24px;display:flex}.search-input-wrapper{flex:1;position:relative}.search-icon{color:#999;width:20px;height:20px;position:absolute;top:50%;left:16px;transform:translateY(-50%)}.search-input{border:2px solid #e0e0e0;border-radius:12px;outline:none;width:100%;padding:14px 44px;font-size:16px;transition:border-color .2s}.search-input:focus{border-color:#1a73e8}.search-input:disabled{cursor:not-allowed;background:#f5f5f5}.search-clear{cursor:pointer;color:#999;background:0 0;border:none;padding:4px;position:absolute;top:50%;right:12px;transform:translateY(-50%)}.search-clear svg{width:18px;height:18px}.search-clear:hover{color:#666}.search-button{color:#fff;cursor:pointer;white-space:nowrap;background:#1a73e8;border:none;border-radius:12px;padding:14px 28px;font-size:16px;font-weight:600;transition:background .2s}.search-button:hover:not(:disabled){background:#1557b0}.search-button:disabled{cursor:not-allowed;background:#ccc}.search-date{cursor:pointer;border:2px solid #e0e0e0;border-radius:12px;outline:none;padding:14px 16px;font-size:16px;transition:border-color .2s}.search-date:focus{border-color:#1a73e8}.search-date:disabled{cursor:not-allowed;background:#f5f5f5}@media (width<=600px){.search-bar{flex-direction:column}.search-button{width:100%}}.loading-container{flex-direction:column;justify-content:center;align-items:center;padding:60px 20px;display:flex}.loading-spinner{margin-bottom:16px}.spinner{border:4px solid #f0f0f0;border-top-color:#1a73e8;border-radius:50%;width:48px;height:48px;animation:1s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.loading-text{color:#666;margin:0;font-size:16px}.empty-state{text-align:center;flex-direction:column;justify-content:center;align-items:center;padding:60px 20px;display:flex}.empty-icon{background:#f5f5f5;border-radius:50%;justify-content:center;align-items:center;width:80px;height:80px;margin-bottom:20px;display:flex}.empty-icon svg{color:#999;width:40px;height:40px}.empty-state h3{color:#333;margin:0 0 8px;font-size:18px}.empty-state p{color:#666;max-width:300px;margin:0;font-size:14px}.empty-state.error .empty-icon{background:#ffebee}.empty-state.error .empty-icon svg{color:#d32f2f}.country-selector{min-height:calc(100vh - 200px);padding:0}.layout-container{gap:2rem;min-height:calc(100vh - 200px);display:flex}.sidebar{background:#fff;border-radius:16px;flex-shrink:0;width:260px;max-height:calc(100vh - 180px);padding:1.5rem;position:sticky;top:100px;overflow-y:auto;box-shadow:0 2px 12px #0000000f}.sidebar::-webkit-scrollbar{width:6px}.sidebar::-webkit-scrollbar-track{background:#f1f1f1;border-radius:3px}.sidebar::-webkit-scrollbar-thumb{background:#ccc;border-radius:3px}.sidebar-title{color:#333;border-bottom:2px solid #667eea;margin:0 0 1.5rem;padding-bottom:.75rem;font-size:1.25rem}.sidebar-region{margin-bottom:1.25rem}.sidebar-region-title{color:#666;align-items:center;gap:.5rem;margin:0 0 .5rem;font-size:.9rem;font-weight:600;display:flex}.region-icon{font-size:1rem}.country-list{flex-direction:column;gap:.25rem;display:flex}.country-item{cursor:pointer;text-align:left;color:#444;background:0 0;border:none;border-radius:8px;align-items:center;gap:.75rem;width:100%;padding:.625rem .75rem;transition:all .15s;display:flex}.country-item:hover{color:#667eea;background:#f0f2ff}.country-item.active{color:#fff;background:linear-gradient(135deg,#667eea 0%,#764ba2 100%)}.country-item .country-flag{font-size:1.25rem}.country-item .country-name{font-size:.9rem;font-weight:500}.main-area{flex:1;min-width:0}.search-section{background:linear-gradient(135deg,#1a1a2e 0%,#16213e 100%);border-radius:0 0 20px 20px;margin:0 -24px 1.5rem;padding:2rem;box-shadow:0 4px 20px #00000026}.search-section .search-bar{max-width:700px;margin:0 auto;display:block}.content-area{padding:0 .5rem}.content-title{color:#333;border-bottom:3px solid #667eea;margin:0 0 1.5rem;padding-bottom:.75rem;font-size:1.5rem;display:inline-block}@media (width<=1024px){.layout-container{flex-direction:column}.sidebar{flex-wrap:wrap;gap:1rem;width:100%;max-height:none;padding:1rem;display:flex;position:static}.sidebar-title{width:100%;margin-bottom:.5rem}.sidebar-region{margin-bottom:0}.country-list{flex-flow:wrap}.country-item{width:auto;padding:.5rem .75rem}.country-item .country-name{display:none}.search-section{margin:0 -16px 1rem;padding:1.5rem 1rem}}@media (width<=768px){.news-grid{grid-template-columns:1fr;gap:1rem}.content-title{font-size:1.25rem}}.country-news-page{flex-direction:column;min-height:100vh;display:flex}.country-news-header{color:#fff;z-index:100;background:linear-gradient(135deg,#1a1a2e 0%,#16213e 100%);justify-content:space-between;align-items:center;gap:1rem;padding:1rem 2rem;display:flex;position:sticky;top:0;box-shadow:0 2px 10px #0000004d}.back-link{color:#fff;border-radius:8px;align-items:center;gap:.5rem;padding:.5rem 1rem;font-size:.9rem;text-decoration:none;transition:background-color .2s;display:flex}.back-link:hover{background-color:#ffffff1a}.country-title{align-items:center;gap:.75rem;display:flex}.country-flag{font-size:2rem}.country-title h1{margin:0;font-size:1.5rem;font-weight:600}.country-news-header .refresh-button{color:#fff;cursor:pointer;background:#ffffff1a;border:none;border-radius:50%;justify-content:center;align-items:center;padding:.5rem;transition:background-color .2s;display:flex}.country-news-header .refresh-button:hover:not(:disabled){background:#fff3}.country-news-header .refresh-button:disabled{opacity:.5;cursor:not-allowed}.country-news-header .refresh-button svg{width:24px;height:24px}.country-news-content{flex:1;width:100%;max-width:1200px;margin:0 auto;padding:2rem}.last-update-text{color:#666;text-align:right;margin:1rem 0;font-size:.85rem}@media (width<=768px){.country-news-header{flex-wrap:wrap;padding:1rem}.country-title h1{font-size:1.2rem}.country-news-content{padding:1rem}}.news-detail-page{max-width:800px;margin:0 auto;padding:20px}.detail-header{margin-bottom:20px}.back-link{color:#666;align-items:center;gap:8px;font-size:14px;text-decoration:none;transition:color .2s;display:inline-flex}.back-link:hover{color:#333}.back-link svg{width:20px;height:20px}.detail-content{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px #00000014}.detail-image{width:100%;height:400px;overflow:hidden}.detail-image img{object-fit:cover;width:100%;height:100%}.detail-header-info{border-bottom:1px solid #eee;padding:24px}.detail-meta{align-items:center;gap:12px;margin-bottom:12px;display:flex}.detail-source{color:#666;background:#f0f0f0;border-radius:16px;padding:4px 12px;font-size:13px}.detail-country{color:#888;font-size:13px}.detail-title{color:#1a1a1a;margin:0 0 16px;font-size:28px;font-weight:700;line-height:1.4}.detail-info{color:#888;flex-wrap:wrap;gap:16px;font-size:14px;display:flex}.detail-body{padding:24px}.detail-description{color:#333;margin:0 0 20px;font-size:18px;font-weight:500;line-height:1.6}.detail-text{color:#444;white-space:pre-wrap;font-size:16px;line-height:1.8}.detail-text:after{content:"";height:20px;display:block}.detail-actions{border-top:1px solid #eee;gap:12px;padding:20px 24px;display:flex}.detail-button{cursor:pointer;border:none;border-radius:8px;align-items:center;gap:8px;padding:12px 24px;font-size:15px;font-weight:500;transition:all .2s;display:inline-flex}.detail-button svg{width:18px;height:18px}.detail-button.primary{color:#fff;background:#2563eb}.detail-button.primary:hover{background:#1d4ed8}.detail-error{text-align:center;padding:60px 20px}.detail-error h2{color:#666;margin-bottom:20px}@media (width<=600px){.news-detail-page{padding:12px}.detail-image{height:250px}.detail-header-info{padding:16px}.detail-title{font-size:22px}.detail-body{padding:16px}.detail-description{font-size:16px}.detail-text{font-size:15px}}.app{background:linear-gradient(#f8f9fa 0%,#e8ecf1 100%);flex-direction:column;min-height:100vh;display:flex}.main-content{flex:1;padding-bottom:40px}.container{max-width:1200px;margin:0 auto;padding:0 24px}.news-grid{grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:24px;display:grid}.footer{text-align:center;background:#fff;border-top:1px solid #e0e0e0;margin-top:auto;padding:20px}.footer p{color:#666;margin:0;font-size:14px}@media (width<=768px){.news-grid{grid-template-columns:1fr;gap:16px}.container{padding:0 16px}}
