@namespace url(http://www.w3.org/1999/xhtml);

/*ADKILL: ----------------------------------------------------- */
@-moz-document domain("nicovideo.jp") {
    a[href="?p=premium_top&sec=bar"],     /* ãƒ—ãƒ¬ãƒŸã‚¢ãƒ ç™»éŒ²ãƒªãƒ³ã‚¯ */
    #live12,
    img[src*="/ads"],
    div[id*=banner],
    [class^=ads_],
    [id^=ads_],
    [id^=web_pc_] {
        display: none !important;
    }
}
@-moz-document url-prefix("http://www.nicovideo.jp/") {
/*PAGEHEADER: ------------------------------------------------- */
    #PAGEHEADER {
        height: 70px !important;
    }
    .topline {
        background: #333 !important;
        width: 100% !important;
    }
    .topline a {
        text-decoration: none !important;
    }
    #topline_menu {
        display: table-cell !important ;
    }
    /* å³ä¸Š */
    #migiue  {
        font-size : 12px       !important;
        display   : table-cell !important;
        width     : auto       !important;
        overflow  : hidden     !important;
        /*background: #EEE !important;*/
        /*background: url("http://res.nicovideo.jp/img/migiue/fkd_left.gif") no-repeat !important;*/
    }
    /* ãƒ‹ã‚³ãƒ‹ã‚³å‹•ç”»ãƒ­ã‚´ */
    #PAGEHEADER > TABLE:first-child + DIV + SCRIPT + TABLE > TBODY > TR > TD:first-child > TABLE > TBODY > TR > TD:first-child,
    #PAGEHEADER > TABLE:first-child + DIV + SCRIPT + TABLE > TBODY > TR > TD:first-child > TABLE > TBODY > TR > TD[style="width: 48px;"]:first-child + TD
    /*#PAGEHEADER > TABLE:first-child + DIV + SCRIPT + TABLE > TBODY > TR > TD:first-child > TABLE > TBODY > TR > TD:not(:last-child) */
    {
        display: none !important;
    }
    /* æ¤œç´¢ãƒãƒ¼ */
    #PAGEHEADER > DIV.tool_bg_top,
    #PAGEHEADER > DIV.tool_bg_top > DIV.tool_bg_bottom {
        background: none !important;
        position: relative !important;
        bottom: 23px !important;
        left: 100px !important;
        width: 0px !important;
        white-space: nowrap !important;
    }
    /* æ¤œç´¢ãƒœãƒƒã‚¯ã‚¹ */
    #bar_search {
        padding: 0px !important;
    }
    /* ã‚­ãƒ¼ãƒ¯ãƒ¼ãƒ‰ãƒ»ã‚¿ã‚°ãƒœã‚¿ãƒ³ */
    IMG[width="120"][height="21"][usemap="#sw_target"][name="sw_target"][alt="æ¤œç´¢åˆ‡æ›¿"][src="http://res.nicovideo.jp/img/base/tool/switch_k.png"] {
        height: 18px !important;
        width: 100px !important;
    }
    /* æ¤œç´¢ãƒœã‚¿ãƒ³ */
    INPUT[type="image"][alt="æ¤œç´¢"][src="http://res.nicovideo.jp/img/base/tool/submit_search.png"][name="submit"] {
        height: 16px !important;
    }
    /* æ¤œç´¢ãƒãƒ¼ã®ç„¡é§„ãªæ–‡å­— */
    #PAGEHEADER > DIV.tool_bg_top > DIV.tool_bg_bottom > FORM > TABLE > TBODY > TR > TD:first-child,
    #PAGEHEADER > DIV.tool_bg_top > DIV.tool_bg_bottom > FORM > TABLE > TBODY > TR > TD:first-child + TD + TD,
    #PAGEHEADER > DIV.tool_bg_top > DIV.tool_bg_bottom > FORM > TABLE > TBODY > TR > TD:first-child + TD + TD + TD + TD { display: none !important;
    }
    /* è¡Œå‹•å±¥æ­´ */
    #last_action a,
    #last_action_disabled a,
    #last_action_enabled a {
        color: #222 !important;
    }
/*PAGEBODY: --------------------------------------------------- */
    body {
        background: #EEE5DE        !important;
    }
    #PAGEBODY {
        background: #EEE5DE        !important;
    }
    .content_672 {
        background: #EEE5DE        !important;
    }
/*VIDEODATA: -------------------------------------------------- */
    /* å¹ãå‡ºã— */
    .vinfo_last_res {
        /*display: none !important;*/
    }
    .thumb_frm {
        /*background: #EEE !important;*/
        border: 2px solid #777 !important;
        -moz-border-radius: 10px !important;
        background: #FFF url("http://www.niconicommons.jp/images/index/login_bg.gif") repeat-x !important;
    }
    /* ã‚µãƒ ãƒã‚¤ãƒ« */
    .video_w96,
    .video_w48,
    .video_w80 {
        width : 130px !important;
        height: 100px !important;
    }
    .vinfo_description, /* å‹•ç”»æƒ…å ± */
    #category_recent .thumb_frm td:last-child p:last-child.TXT10 {
        /*background: #333333 url(http://www.nicovideo.jp/img/my/prof_bg.gif) repeat-x !important;*/
        display            : block          !important;
        color              : #333           !important;
        background         : #F7F7F7        !important;
        max-height         : 45px           !important; 
        overflow           : hidden         !important; 
        -moz-border-radius : 8px            !important; 
        border             : 1px solid #999 !important; 
        margin-left        : 10px           !important; 
        padding            : 5px            !important; 
    }
/*PAGEFOOTER: ------------------------------------------------- */
    #PAGEFOOTER {
        display: none !important;
        /*
         *color      : #333           !important; 
         *background : #585D60        !important; 
         *margin-top : 10px           !important; 
         *border     : 2px solid #999 !important; 
         *-moz-border-radius: 5px     !important;
         */
    }
}
/*ãƒ©ãƒ³ã‚­ãƒ³ã‚°: ------------------------------------------------- */
@-moz-document url-prefix("http://www.nicovideo.jp/ranking") {
    a.video {
        display: inline !important;
    }
    #ranking-name STRONG,
    #ranking-name + P > STRONG,
    #ranking-name + P > A {
        font-size: 12px !important;
    }
    .content_672 {
        width: auto !important;
        border: 2px solid #999 !important;
    }
    .thumb_frm,
    .thumb_frm_rank_1,
    .thumb_frm_rank_2 {
        width        : 900px          !important;
        border-top   : 1px solid #444 !important;
        border-right : 2px solid #444 !important;
        border-bottom: 3px solid #444 !important;
        border-left  : 1px solid #444 !important;
        margin-right: 30px !important;
        margin-left: 30px !important;
        -moz-border-radius: 5px !important;
    }
    .thumb_frm p + h3,
    .thumb_frm_rank_1 p + h3,
    .thumb_frm_rank_2 p + h3 {
        margin-top: 5px !important;
        margin-bottom: 5px !important;
    }
    /* æŠ•ç¨¿è€…ã‚³ãƒ¡ãƒ³ãƒˆ */ 
    .thumb_frm p + h3 + p,
    .thumb_frm_rank_1 p + h3 + p,
    .thumb_frm_rank_2 p + h3 + p {
        background : #F7F7F7           !important;
        margin-top : 10px               !important;
        padding    : 5px               !important;
        border     : 1px solid #999 !important;
        -moz-border-radius: 5px !important;
    }
    .content_312 {
        display: none !important;
    }
}
/*å‹•ç”»ãƒšãƒ¼ã‚¸: ------------------------------------------------- */
@-moz-document url-prefix("http://www.nicovideo.jp/watch") {
    /* æŠ•ç¨¿è€…ã‚³ãƒ¡ãƒ³ãƒˆ */
    #des_2 {
        height: auto !important;
    }
    #des_2 table {
        display: inline !important;
    }
    .video_des {
        color     : #333 !important;
        background: #EEE !important;
        -moz-border-radius: 8px  !important;
    }
    .video_des_top {
        display: none !important;
    }
    #PAGEHEADER div[style="position: relative; text-align: right;"] {
        display: none !important;
    }
    /* ã‚³ãƒŸãƒ¥ãƒ‹ãƒ†ã‚£ãƒªãƒ³ã‚¯  */
    .chcm_w60[src*="http://icon.nicovideo.jp/community/"]:hover {
        position: absolute !important;
        width: 128px !important;
        height: 128px !important;
    }
    .chcm_w60[src="http://res.nicovideo.jp/img/watch/chacom_img_blank.gif"] {
        display: none !important;
    }

    /* ç™»éŒ²ã‚¿ã‚°  */
    .tag_txt nobr:not(:last-child) a.nicopedia {
        text-decoration: none !important;
    }
    .tag_txt nobr:not(:last-child) a.nicopedia:hover {
        text-decoration: underline !important;
    }

    /* å¸‚å ´  */
    .ichiba_frm {
        color: #333 !important;
        border: none !important;
    }
    a.ichiba_item[href*="nicovideo.jp/item/dw"] {
        color: magenta !important;
    }
    a.ichiba_item[href*="amazon"] {
        color: darkorange !important;
    }
    a.ichiba_item[href*="yahoo"] {
        color: tomato !important;
    }
    a.ichiba_item[href*="ggood"] {
        color: lightgreen !important;
    }
    .ichiba_hotitem,
    .bpn_frm,
    .list_table {
        background: #CCC url("http://www.nicovideo.jp/img/btn/bg_submit_01.gif") repeat-x !important;
        border: 2px solid #444 !important;
        -moz-border-radius: 20px !important;
    }
    .search_col {
        color: #333 !important;
    }
    img[usemap="#ichiba_TOP"],
    img[usemap="#ichiba_BTM"] {
        display: none !important;
    }
}

/* æ¤œç´¢ãƒšãƒ¼ã‚¸: ------------------------------------------------- */
@-moz-document url-prefix("http://www.nicovideo.jp/search"),
               url-prefix("http://www.nicovideo.jp/tag"),
               url-prefix("http://www.nicovideo.jp/hotlist"),
               url-prefix("http://www.nicovideo.jp/recent"),
               url-prefix("http://www.nicovideo.jp/newarrival"),
               url-prefix("http://www.nicovideo.jp/related_tag"),
               url-prefix("http://www.nicovideo.jp/myvideo") {
    #search_words,
    .search_word {
        font-size: 12px !important;
    }
    /* ãƒ¡ã‚¤ãƒ³ãƒšã‚¤ãƒ³ */
    .content_672 {
        width: 980px !important;
        border: 2px solid #999 !important;
    }
    /* å‹•ç”»ãƒ‡ãƒ¼ã‚¿ï¼ˆ2åˆ—è¡¨ç¤ºï¼‰ */
    .thumb_frm[style="width: 312px;"],
    .thumb_frm_rank_1[style="width: 312px;"],
    .thumb_frm_rank_2[style="width: 312px;"] {
        width: 460px !important;
    }
    /* å‹•ç”»ãƒ‡ãƒ¼ã‚¿ï¼ˆ4åˆ—è¡¨ç¤ºï¼‰ */
    .thumb_frm[style="width: 144px;"],
    .thumb_frm_rank_1[style="width: 144px;"],
    .thumb_frm_rank_2[style="width: 144px;"] {
        width: 220px !important;
    }

    /* ã‚µãƒ–ãƒšã‚¤ãƒ³ */
    .content_312 {
        width: 0px !important;
        position: relative !important;
        bottom: 78px !important;
        right: 330px !important;
        overflow: visible !important;
    }
    #PAGEBODY > DIV.content_312 > DIV:first-child,
    #PAGEBODY > DIV.content_312 > TABLE[width="100%"][cellspacing="4"][cellpadding="0"][border="0"][style="margin-bottom: 8px;"][summary=""],
    #PAGEBODY > DIV.content_312 > DIV:first-child + SCRIPT + STYLE + TABLE + TABLE,
    #PAGEBODY > DIV.content_312 > SCRIPT[type="text/javascript"] + SCRIPT[type="text/javascript"] + DIV.mb8p4 {
        display: none !important;
    }
    /* ãƒãƒ£ãƒ³ãƒãƒ«å‹•ç”» */
    /* æœ€ä¸Šä½TABLE */
    #PAGEBODY > DIV.content_312 > DIV:first-child + SCRIPT + STYLE + TABLE {
        padding: 0 !important;
        margin: 0 !important;
        background: #EEE !important;
    }
    /* ã‚¿ã‚¤ãƒˆãƒ« */
    #PAGEBODY > DIV.content_312 > DIV:first-child + SCRIPT + STYLE + TABLE > TBODY > TR:first-child > TD {
        white-space: nowrap !important;
        font-size: 0 !important;
    }
    /* ã‚¿ã‚¤ãƒˆãƒ«å¤ªæ–‡å­— */
    #PAGEBODY > DIV.content_312 > DIV:first-child + SCRIPT + STYLE + TABLE > TBODY > TR:first-child > TD > STRONG:first-child {
        font-size: 11px !important;
    }
    #PAGEBODY > DIV.content_312 > DIV:first-child + SCRIPT + STYLE + TABLE > TBODY > TR:first-child > TD > STRONG:last-child {
        font-size: 11px !important;
    }
    #PAGEBODY > DIV.content_312 > DIV:first-child + SCRIPT + STYLE + TABLE > TBODY > TR:first-child > TD > STRONG:last-child:before {
        content: "ã«é–¢ã™ã‚‹ãƒãƒ£ãƒ³ãƒãƒ«å‹•ç”»ï¼š" !important;
    }
    /* æŠ˜ã‚Šç•³ã¿ */
    #PAGEBODY > DIV.content_312 > DIV:first-child + SCRIPT + STYLE + TABLE > TBODY > TR:first-child + TR,
    #PAGEBODY > DIV.content_312 > DIV:first-child + SCRIPT + STYLE + TABLE > TBODY > TR:first-child + TR + TR,
    #PAGEBODY > DIV.content_312 > DIV:first-child + SCRIPT + STYLE + TABLE > TBODY > TR:first-child + TR + TR + TR,
    #PAGEBODY > DIV.content_312 > DIV:first-child + SCRIPT + STYLE + TABLE > TBODY > TR:last-child {
        visibility: collapse !important;
    }
    #PAGEBODY > DIV.content_312 > DIV:first-child + SCRIPT + STYLE + TABLE > TBODY:hover > TR:first-child + TR,
    #PAGEBODY > DIV.content_312 > DIV:first-child + SCRIPT + STYLE + TABLE > TBODY:hover > TR:first-child + TR + TR,
    #PAGEBODY > DIV.content_312 > DIV:first-child + SCRIPT + STYLE + TABLE > TBODY:hover > TR:first-child + TR + TR + TR,
    #PAGEBODY > DIV.content_312 > DIV:first-child + SCRIPT + STYLE + TABLE > TBODY:hover > TR:first-child + TR + TR + TR + TR {
        visibility: visible !important;
    }
    /* å¤§ç™¾ç§‘ */
    /* æœ€ä¸Šä½DIV */
    #PAGEBODY > DIV.content_312 > SCRIPT[type="text/javascript"] + DIV.mb8p4 {
        margin: 0 !important;
        padding: 0 !important;
    }
    /* å†…å®¹DIV */
    #related_nicopedia {
        color: #333 !important;
    }
    /* ã‚¿ã‚¤ãƒˆãƒ« */
    #related_nicopedia > TABLE > TBODY > TR:first-child > TD.TXT12 {
        white-space: nowrap !important;
        font-size: 0px !important;
    }
    /* ã‚¿ã‚¤ãƒˆãƒ«å¤ªæ–‡å­— */
    #related_nicopedia > TABLE > TBODY > TR:first-child > TD.TXT12 > STRONG {
        font-size: 11px !important;
    }
    #related_nicopedia > TABLE > TBODY > TR:first-child > TD.TXT12 > STRONG:first-child:after {
        content: "ã«é–¢ã™ã‚‹è¨˜äº‹ï¼š" !important;
    }
    /* æŠ˜ã‚Šç•³ã¿ */
    #related_nicopedia > TABLE > TBODY > TR:first-child + TR,
    #related_nicopedia > TABLE > TBODY > TR:first-child + TR + TR {
        visibility: collapse !important;
    }
    #related_nicopedia:hover > TABLE > TBODY > TR:first-child + TR,
    #related_nicopedia:hover > TABLE > TBODY > TR:first-child + TR + TR {
        visibility: visible !important;
    }
    /* è¨˜äº‹ã®å†…å®¹ */
    #related_nicopedia_body,
    #related_nicopedia_footer {
        width: 270px !important;
    }
    /* ä¸Šéƒ¨ç”»åƒãƒ»ä¸‹éƒ¨ç”»åƒ */
    .frm_pedia_top,
    .frm_pedia_btm {
        display: none !important;
    }
    /* æ–°ç€å‹•ç”»ã®ã‚¿ã‚¤ãƒˆãƒ« */
    #PAGEBODY > DIV.content_312 > DIV:first-child + SCRIPT + DIV > #related_nicopedia > TABLE > TBODY > TR:first-child > TD.TXT12 {
        font-size: 11px !important;
    }
    /* ãƒãƒ£ãƒ³ãƒãƒ«ï¼†ã‚³ãƒŸãƒ¥ãƒ‹ãƒ†ã‚£ */
    /* æœ€ä¸Šä½DIV */
    #PAGEBODY > DIV.content_312 > DIV:last-child {
        padding: 0 !important;
    }
    /* ã‚¿ã‚¤ãƒˆãƒ« */
    #PAGEBODY > DIV.content_312 > DIV:last-child > DIV.frm_chacom_bg > TABLE > TBODY > TR:first-child {
        white-space: nowrap !important;
    }
    #PAGEBODY > DIV.content_312 > DIV:last-child > DIV.frm_chacom_bg > TABLE > TBODY > TR:first-child > TD {
        font-size: 0 !important;
    }
    /* ã‚¿ã‚¤ãƒˆãƒ«å¤ªæ–‡å­— */
    #PAGEBODY > DIV.content_312 > DIV:last-child > DIV.frm_chacom_bg > TABLE > TBODY > TR:first-child > TD > STRONG {
        font-size: 11px !important;
    }
    #PAGEBODY > DIV.content_312 > DIV:last-child > DIV.frm_chacom_bg > TABLE > TBODY > TR:first-child > TD > STRONG + STRONG:before {
        content: "ã«é–¢ã™ã‚‹ãƒãƒ£ãƒ³ãƒãƒ«ï¼†ã‚³ãƒŸãƒ¥ãƒ‹ãƒ†ã‚£ ï¼š" !important;
    }
    /* æŠ˜ã‚Šç•³ã¿ */
    #PAGEBODY > DIV.content_312 > DIV:last-child > DIV.frm_chacom_bg > TABLE > TBODY > TR:first-child + TR,
    #PAGEBODY > DIV.content_312 > DIV:last-child > DIV.frm_chacom_bg > TABLE > TBODY > TR:first-child + TR + TR,
    #PAGEBODY > DIV.content_312 > DIV:last-child > DIV.frm_chacom_bg > TABLE > TBODY > TR:first-child + TR + TR + TR,
    #PAGEBODY > DIV.content_312 > DIV:last-child > DIV.frm_chacom_bg > TABLE > TBODY > TR:first-child + TR + TR + TR + TR,
    #PAGEBODY > DIV.content_312 > DIV:last-child > DIV.frm_chacom_bg > TABLE > TBODY > TR:first-child + TR + TR + TR + TR + TR,
    #PAGEBODY > DIV.content_312 > DIV:last-child > DIV.frm_chacom_bg > TABLE > TBODY > TR:last-child
    {
        visibility: collapse !important;
    }
    #PAGEBODY > DIV.content_312 > DIV:last-child > DIV.frm_chacom_bg:hover > TABLE > TBODY > TR:first-child + TR,
    #PAGEBODY > DIV.content_312 > DIV:last-child > DIV.frm_chacom_bg:hover > TABLE > TBODY > TR:first-child + TR + TR,
    #PAGEBODY > DIV.content_312 > DIV:last-child > DIV.frm_chacom_bg:hover > TABLE > TBODY > TR:first-child + TR + TR + TR,
    #PAGEBODY > DIV.content_312 > DIV:LAST-CHILD > DIV.frm_chacom_bg:hover > TABLE > TBODY > TR:first-child + TR + TR + TR + TR,
    #PAGEBODY > DIV.content_312 > DIV:LAST-CHILD > DIV.frm_chacom_bg:hover > TABLE > TBODY > TR:first-child + TR + TR + TR + TR + TR,
    #PAGEBODY > DIV.content_312 > DIV:last-child > DIV.frm_chacom_bg:hover > TABLE > TBODY > TR:last-child
    {
        visibility: visible !important;
    }
    /* ã‚³ãƒŸãƒ¥ãƒ‹ãƒ†ã‚£ãŒç„¡ã„å ´åˆã®è¡¨ç¤º */
    #PAGEBODY > DIV.content_312 > DIV:last-child > DIV.frm_chacom_bg > TABLE > TBODY > TR:first-child > TD > DIV.rel_com_frm {
        display: none !important;
    }
    /* ã‚³ãƒŸãƒ¥ãƒ‹ãƒ†ã‚£ã®æ–°è¦ä½œæˆãƒªãƒ³ã‚¯ */
    #PAGEBODY > DIV.content_312 > DIV:last-child > DIV.frm_chacom_bg > TABLE > TBODY > TR:first-child + TR:last-child {
        visibility: visible !important;
    }
    /* ä¸Šéƒ¨ç”»åƒãƒ»ä¸‹éƒ¨ç”»åƒ */
    .frm_chacom_top,
    .frm_chacom_btm {
        display: none !important;
    }
    /* ãƒ‹ã‚³ãƒ‹åºƒå‘Š */
    /* æœ€ä¸Šä½ID */
    #nicoads {
        width: 0 !important;
        height: 0 !important;
        position: absolute !important;
        top: 0 !important;
        overflow: visible !important;
    }
    /* å®Ÿéš›ã®è¡¨ç¤ºéƒ¨åˆ† */
    .frm_uad_bg {
        width: 70px !important;
        height: 15px !important;
        font-size: 12px !important;
        background: #EEE !important;
        position: relative !important;
        top: 130px !important;
        left: 250px !important;
        border: solid 1px #999 !important;
    }
    .frm_uad_bg:before {
       content: "ãƒ‹ã‚³ãƒ‹åºƒå‘Š" !important;
    }
    /* æŠ˜ã‚Šç•³ã¿ */
    .frm_uad_bg > TABLE > TBODY > #uad_container {
        visibility: collapse !important;
    }
    .frm_uad_bg:hover > TABLE > TBODY > #uad_container {
        visibility: visible !important;
    }
    /* ã‚µãƒ ãƒã‚¤ãƒ«æ‹¡å¤§ */
    .uad_img:hover {
        width: 130px !important;
        height: 100px !important;
    }
    /* ä¸Šéƒ¨ç”»åƒãƒ»ä¸‹éƒ¨ç”»åƒ */
    IMG[class="frm_uad_top"],
    IMG[class="frm_uad_btm"] {
        display: none !important;
    }
}

/* ãƒžã‚¤ãƒªã‚¹ãƒˆ: ------------------------------------------------- */
@-moz-document url-prefix("http://www.nicovideo.jp/mylist") {
    #mylists,
    #mylistitems {
        margin-left: 130px !important;
    }
    .memo {
        -moz-border-radius: 5px !important;
    }
    .content_672 {
        width: 980px !important;
        border: 2px solid #999 !important;
    }
    .content_312 {
        display: none !important;
    }
}

/* è¦–è´å±¥æ­´ãƒ»ãƒžã‚¤ãƒ¡ãƒ¢ãƒªãƒ¼: ------------------------------------- */
@-moz-document url-prefix("http://www.nicovideo.jp/history"),
               url-prefix("http://www.nicovideo.jp/mymemory") {
    .content_672 {
        width: 980px !important;
    }
    .content_672 h3 + .TXT12 {
        background : #F7F7F7           !important;
        color: #333 !important;
        margin-top : 10px               !important;
        padding    : 4px               !important;
        border     : 1px solid #999 !important;
        -moz-border-radius: 5px !important;
    }
    .content_312 {
        display: none !important;
    }
    table[width="672"] {
        margin-left: 140px !important;
    }
}
