/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #ffffff;
    color: #1a1a1a;
    line-height: 1.4;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Breaking News Banner */
.breaking-banner {
    background: linear-gradient(90deg, #000000, #000000);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.breaking-label {
    background-color: #FFFFFF;
    color: #000000;
    font-size: 11px;
    font-weight: 900;
    padding: 10px 20px;
    letter-spacing: 1px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.ticker-wrapper {
    flex: 1;
    overflow: hidden;
    padding: 0 20px;
}

.ticker-text {
    display: flex;
    align-items: center;
    gap: 0;
    animation: scroll-left 5s linear infinite;
    white-space: nowrap;
    color: #ffffff;
    font-size: 13px;
    font-weight: 500;
}

.ticker-text span {
    padding: 10px 0;
}

.ticker-text .separator {
    margin: 0 20px;
    opacity: 0.5;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.breaking-banner:hover .ticker-text {
    animation-play-state: paused;
}

/* Header */
.header {
    background-color: #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 28px;
    width: auto;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.search-btn,
.menu-btn {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
}

.menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-btn span {
    width: 20px;
    height: 2px;
    background-color: #ffffff;
    display: block;
}

/* Score Ticker */
.score-ticker {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    overflow-x: auto;
}

.ticker-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    gap: 30px;
}

.game-card {
    min-width: 140px;
    padding-right: 30px;
    border-right: 1px solid #e5e5e5;
}

.game-card:last-child {
    border-right: none;
}

.league-label {
    font-size: 10px;
    font-weight: 700;
    color: #666666;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.teams {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.team {
    display: flex;
    align-items: center;
    gap: 8px;
}

.team img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.team-name {
    font-size: 13px;
    font-weight: 700;
    min-width: 30px;
}

.time {
    font-size: 11px;
    color: #666666;
    margin-left: auto;
}

.channel {
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    background-color: #1a1a1a;
    padding: 2px 6px;
    border-radius: 2px;
    margin-left: auto;
}

.odds {
    font-size: 10px;
    color: #666666;
    margin-top: 8px;
}

/* Navigation Tabs */
.tabs-nav {
    background-color: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    overflow-x: auto;
}

.tabs-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    gap: 8px;
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    border: 1px solid #e5e5e5;
    border-radius: 20px;
    transition: background-color 0.2s;
}

.tab:hover {
    background-color: #f5f5f5;
}

.tab img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.more-tab {
    color: #666666;
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

/* Featured Section */
.featured-section {
    grid-column: 1;
}

.section-title {
    font-size: 18px;
    font-weight: 900;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.story-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
}

.story-card.large {
    grid-row: span 1;
}

.story-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 15px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #ffffff;
}

.story-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffd700;
    margin-bottom: 8px;
    display: block;
}

.story-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.story-meta {
    font-size: 10px;
    color: #999999;
    text-transform: uppercase;
}

/* Sidebar */
.sidebar {
    grid-column: 2;
    grid-row: span 2;
}

.headlines {
    margin-bottom: 30px;
}

.headline-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
}

.headline-icon {
    color: #1a1a1a;
    flex-shrink: 0;
}

.headline-item p {
    font-size: 14px;
    line-height: 1.4;
    color: #1a1a1a;
}

.headline-item:hover p {
    color: #0066cc;
}

.newsletter-box {
    background-color: #f5f5f5;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
}

.newsletter-box h3 {
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 15px;
}

.newsletter-img {
    max-width: 200px;
    margin-bottom: 15px;
}

.newsletter-box p {
    font-size: 13px;
    color: #666666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.newsletter-btn {
    width: 100%;
    padding: 12px 20px;
    background-color: #ffffff;
    border: 1px solid #1a1a1a;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.newsletter-btn:hover {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Live Section */
.live-section {
    grid-column: 1 / -1;
}

.live-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.live-card {
    cursor: pointer;
}

.live-thumbnail {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 12px;
}

.live-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-icon {
    position: absolute;
    bottom: 10px;
    left: 10px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-icon svg {
    margin-left: 3px;
}

.live-time {
    font-size: 11px;
    color: #666666;
}

.live-title {
    font-size: 14px;
    font-weight: 700;
    margin: 5px 0 10px;
}

.channel-tags {
    display: flex;
    gap: 8px;
}

.tag {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
}

.tag.re-air {
    background-color: #e5e5e5;
    color: #666666;
}

.tag.channel {
    background-color: #1a1a1a;
    color: #ffffff;
}

/* Highlights Section */
.highlights-section {
    grid-column: 1 / -1;
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.highlight-card {
    cursor: pointer;
}

.highlight-card img {
    width: 100%;
    aspect-ratio: 9/16;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.highlight-title {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

/* Live Articles Section */
.live-articles-section {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #0d0d0d, #1a1a1a);
    margin: 30px -20px;
    padding: 40px 40px;
    border-radius: 0;
}

.live-articles-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: #ff4444;
    letter-spacing: 1px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #ff4444;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

.live-articles-header h2 {
    font-size: 24px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
}

.live-articles-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.live-article {
    display: flex;
    gap: 20px;
    background-color: #252525;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.live-article:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.live-article.featured-article {
    grid-column: 1 / -1;
    flex-direction: row;
}

.live-article .article-image {
    position: relative;
    flex-shrink: 0;
}

.live-article.featured-article .article-image {
    width: 45%;
}

.live-article:not(.featured-article) .article-image {
    width: 140px;
    height: 100%;
}

.live-article .article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 180px;
}

.live-article.featured-article .article-image img {
    min-height: 280px;
}

.live-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #ff4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 1px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.7);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(255, 68, 68, 0);
    }
}

.article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-category {
    font-size: 11px;
    font-weight: 700;
    color: #ffd700;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 12px;
}

.live-article.featured-article .article-content h3 {
    font-size: 24px;
}

.article-excerpt {
    font-size: 14px;
    color: #999999;
    line-height: 1.5;
    margin-bottom: 15px;
}

.article-meta {
    display: flex;
    gap: 20px;
    font-size: 12px;
    color: #666666;
}

.update-time {
    color: #ff4444;
}

.comments {
    color: #666666;
}

/* Latest News Section */
.latest-news-section {
    grid-column: 1 / -1;
    margin-top: 40px;
}

.latest-news-section .section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #1a1a1a;
    padding-bottom: 15px;
    margin-bottom: 0;
}

.view-all {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
}

.view-all:hover {
    text-decoration: underline;
}

.news-feed {
    display: flex;
    flex-direction: column;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e5e5e5;
    cursor: pointer;
    transition: background-color 0.2s;
}

.news-item:hover {
    background-color: #f9f9f9;
    margin: 0 -20px;
    padding: 20px;
}

.news-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
    color: #999999;
}

.time-value {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
}

.time-period {
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.news-content {
    flex: 1;
}

.news-category {
    font-size: 10px;
    font-weight: 700;
    color: #c41230;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: block;
}

.news-content h4 {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #1a1a1a;
}

.news-item:hover .news-content h4 {
    color: #0066cc;
}

.news-image {
    flex-shrink: 0;
}

.news-image img {
    width: 100px;
    height: 65px;
    object-fit: cover;
    border-radius: 6px;
}

/* Sport Sections */
.sport-section {
    grid-column: 1 / -1;
    margin-top: 20px;
}

.sport-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.sport-header.nfl-draft {
    background: linear-gradient(135deg, #4a7c10, #2d5a0f);
}

.sport-header.mlb {
    background: linear-gradient(135deg, #002d62, #001f44);
}

.sport-header img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.sport-header h2 {
    font-size: 22px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
}

.sport-content {
    padding: 0 10px;
}

.subsection-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 900;
    margin-bottom: 20px;
}

.more-link {
    font-size: 12px;
    font-weight: 700;
    color: #1a1a1a;
}

.more-link:hover {
    text-decoration: underline;
}

.sport-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

.sport-card {
    cursor: pointer;
}

.sport-card.featured {
    grid-row: span 2;
}

.sport-card.featured {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.sport-card.featured img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 3/4;
}

.sport-card.featured .sport-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #ffffff;
}

.sport-card.featured .sport-overlay h4 {
    font-size: 16px;
    font-weight: 700;
}

.sport-card:not(.featured) img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}

.sport-card h4 {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.sport-card .meta {
    font-size: 11px;
    color: #666666;
    text-transform: uppercase;
}

/* Footer */
.footer {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 50px 20px 30px;
    margin-top: 50px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333333;
}

.footer-section h4 {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    font-size: 13px;
    color: #999999;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 30px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    justify-content: center;
}

.footer-links a {
    font-size: 12px;
    color: #999999;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-legal {
    text-align: center;
    margin-bottom: 20px;
}

.footer-legal p {
    font-size: 11px;
    color: #666666;
    line-height: 1.6;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icon {
    color: #999999;
    transition: color 0.2s;
}

.social-icon:hover {
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        grid-column: 1;
        grid-row: auto;
    }

    .featured-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .live-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sport-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .live-articles-grid {
        grid-template-columns: 1fr;
    }

    .live-article.featured-article {
        flex-direction: column;
    }

    .live-article.featured-article .article-image {
        width: 100%;
    }

    .live-article:not(.featured-article) {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .ticker-content {
        gap: 20px;
    }

    .tabs-container {
        padding: 10px 15px;
    }

    .tab {
        padding: 8px 12px;
        font-size: 11px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .live-grid {
        grid-template-columns: 1fr;
    }

    .highlights-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sport-grid {
        grid-template-columns: 1fr;
    }

    .sport-card.featured {
        grid-row: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .section-title {
        font-size: 16px;
    }

    .breaking-label {
        padding: 10px 12px;
        font-size: 10px;
    }

    .ticker-text {
        font-size: 12px;
    }

    .live-articles-section {
        padding: 30px 20px;
        margin: 20px -20px;
    }

    .live-articles-header h2 {
        font-size: 18px;
    }

    .live-article {
        flex-direction: column;
    }

    .live-article:not(.featured-article) .article-image {
        width: 100%;
        height: 180px;
    }

    .article-content h3 {
        font-size: 16px;
    }

    .live-article.featured-article .article-content h3 {
        font-size: 18px;
    }

    .news-item {
        flex-wrap: wrap;
    }

    .news-time {
        min-width: 40px;
    }

    .news-image img {
        width: 80px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    .header-content {
        padding: 10px 15px;
    }

    .logo-img {
        height: 22px;
    }

    .game-card {
        min-width: 120px;
        padding-right: 20px;
    }

    .highlights-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .highlight-card img {
        aspect-ratio: 9/14;
    }

    .highlight-title {
        font-size: 11px;
    }

    .sport-header {
        padding: 15px 20px;
    }

    .sport-header h2 {
        font-size: 18px;
    }

    .breaking-label {
        padding: 8px 10px;
        font-size: 9px;
    }

    .ticker-text {
        font-size: 11px;
    }

    .live-articles-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .news-content h4 {
        font-size: 13px;
    }

    .news-image {
        display: none;
    }

    .article-excerpt {
        display: none;
    }
}

/* Scrollbar Styling */
.score-ticker::-webkit-scrollbar,
.tabs-nav::-webkit-scrollbar {
    height: 0;
}

/* Animations */
.story-card,
.live-card,
.highlight-card,
.sport-card {
    transition: transform 0.2s;
}

.story-card:hover,
.live-card:hover,
.highlight-card:hover,
.sport-card:hover {
    transform: translateY(-3px);
}
